Format:MapCoords: Diferență între versiuni

[versiune neverificată][versiune neverificată]
Linia 1: Linia 1:
<!-- Format:MapCoords -->
+
<div style="display: inline-block; position: relative;"> <!-- Centering and relative positioning -->
<div style="display: inline-block"> <!-- This controls the overall alignment: left, right, or center -->
+
     <!-- Original wiki-style image format -->
     <div style="position: relative;"> <!-- Inline-block keeps it centered in parent -->
+
    [[{{{image}}}|thumb]]
        [[{{{image}}}|thumb]] <!-- Remove thumb and use frameless for precise positioning -->
 
  
        <!-- Point 1 -->
+
    <!-- Point 1 -->
        {{#if: {{{x1|}}}{{{y1|}}} |
+
    {{#if: {{{x1|}}}{{{y1|}}} |
        <div class="animated-point" style="top: calc({{{y1}}}px * 0.3183); left: calc({{{x1}}}px * 0.3183);"></div>
+
    <div class="animated-point" style="position: absolute; top: calc({{{y1}}} / 1024 * 100%); left: calc({{{x1}}} / 1024 * 100%);"></div>
        }}
+
    }}
       
+
 
        <!-- Point 2 -->
+
    <!-- Point 2 -->
        {{#if: {{{x2|}}}{{{y2|}}} |
+
    {{#if: {{{x2|}}}{{{y2|}}} |
        <div class="animated-point" style="top: calc({{{y2}}}px * 0.3183); left: calc({{{x2}}}px * 0.3183);"></div>
+
    <div class="animated-point" style="position: absolute; top: calc({{{y2}}} / 1024 * 100%); left: calc({{{x2}}} / 1024 * 100%);"></div>
        }}
+
    }}
    </div>
 
 
</div>
 
</div>

Versiunea de la data 27 septembrie 2024 19:35

   [[{{{image}}}|thumb]]