Format:MapCoords: Diferență între versiuni

[versiune neverificată][versiune verificată]
 
(Nu s-au afișat 5 versiuni intermediare efectuate de alți 3 utilizatori)
Linia 1: Linia 1:
 
<div style="display: inline-block; position: relative;"> <!-- Centering and relative positioning -->
 
<div style="display: inline-block; position: relative;"> <!-- Centering and relative positioning -->
 
     <!-- Original wiki-style image format -->
 
     <!-- Original wiki-style image format -->
     [[{{{image}}}|thumb|300]]
+
     [[{{{image}}}|thumb]]
  
 
     <!-- Point 1 -->
 
     <!-- Point 1 -->
 
     {{#if: {{{x1|}}}{{{y1|}}} |
 
     {{#if: {{{x1|}}}{{{y1|}}} |
       {{#ifexpr: {{{width}}} > 300  
+
       {{#ifexpr: {{{width}}}>300
 
         |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y1}}}px * 300/{{{width}}}); left: calc(37px + {{{x1}}}px * 300/{{{width}}});"></div>
 
         |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y1}}}px * 300/{{{width}}}); left: calc(37px + {{{x1}}}px * 300/{{{width}}});"></div>
 
         |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y1}}}px); left: calc(37px + {{{x1}}}px);"></div>
 
         |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y1}}}px); left: calc(37px + {{{x1}}}px);"></div>
Linia 16: Linia 16:
 
         |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y2}}}px * 300/{{{width}}}); left: calc(37px + {{{x2}}}px * 300/{{{width}}});"></div>
 
         |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y2}}}px * 300/{{{width}}}); left: calc(37px + {{{x2}}}px * 300/{{{width}}});"></div>
 
         |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y2}}}px); left: calc(37px + {{{x2}}}px);"></div>
 
         |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y2}}}px); left: calc(37px + {{{x2}}}px);"></div>
 +
      }}
 +
    }}
 +
    <!-- Point 3 -->
 +
    {{#if: {{{x3|}}}{{{y3|}}} |
 +
      {{#ifexpr: {{{width}}} > 300
 +
        |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y3}}}px * 300/{{{width}}}); left: calc(37px + {{{x3}}}px * 300/{{{width}}});"></div>
 +
        |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y3}}}px); left: calc(37px + {{{x3}}}px);"></div>
 +
      }}
 +
    }}
 +
    <!-- Point 4 -->
 +
    {{#if: {{{x4|}}}{{{y4|}}} |
 +
      {{#ifexpr: {{{width}}} > 300
 +
        |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y4}}}px * 300/{{{width}}}); left: calc(37px + {{{x4}}}px * 300/{{{width}}});"></div>
 +
        |<div class="animated-point" style="position: absolute; top: calc(7px + {{{y4}}}px); left: calc(37px + {{{x4}}}px);"></div>
 
       }}
 
       }}
 
     }}
 
     }}
 
</div>
 
</div>

Versiunea curentă din 13 noiembrie 2024 14:22

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