Format:MapCoords: Diferență între versiuni

[versiune neverificată][versiune neverificată]
Linia 1: Linia 1:
 
<!-- Format:MapCoords -->
 
<!-- Format:MapCoords -->
<div> <!-- Controls overall alignment -->
+
<div style="display: inline-block"> <!-- This controls the overall alignment: left, right, or center -->
     <div style="position: relative"> <!-- Keeps the content centered -->
+
     <div style="position: relative;"> <!-- Inline-block keeps it centered in parent -->
         [[{{{image}}}|frameless|300px]] <!-- Keep thumb but add a class for custom styling -->
+
         [[{{{image}}}|frameless]] <!-- Remove thumb and use frameless for precise positioning -->
  
 
         <!-- Point 1 -->
 
         <!-- Point 1 -->
 
         {{#if: {{{x1|}}}{{{y1|}}} |
 
         {{#if: {{{x1|}}}{{{y1|}}} |
         <div class="animated-point" style="position: absolute; top: calc({{{y1}}}px * 0.2929); left: calc({{{x1}}}px * 0.2929);"></div>
+
         <div class="animated-point" style="top: {{{y1}}}px; left: {{{x1}}}px;"></div>
        }}
 
        {{#if: {{{x2|}}}{{{y2|}}} |
 
        <div class="animated-point" style="position: absolute; top: calc({{{y2}}}px); left: calc({{{x2}}}px + 37px);"></div>
 
 
         }}
 
         }}
 
     </div>
 
     </div>
 
</div>
 
</div>

Versiunea de la data 27 septembrie 2024 18:55

       [[{{{image}}}|frameless]]