|
|
(84 révisions intermédiaires par 3 utilisateurs non affichées) |
Ligne 1 : |
Ligne 1 : |
− | {{#if:{{{Royaume|}}}|{{#vardefine:buttonStyle|border-top-left-radius: 0; border-bottom-left-radius:0; padding-left: 0;}}
| + | |
− | {{Modal|Largeur=2|Haut=True|Center={{{Center|}}}
| |
− | |1={{#vardefine:buttonStyle|}}{{#if:{{{Royaume|}}}|{{#switch:{{{Royaume}}}
| |
− | |Rouge=[[Image:Empireshinsoo.png|50px]]
| |
− | |Jaune=[[Image:Empirechunjo.png|50px]]
| |
− | |Bleu=[[Image:Empirejinno.png|50px]]
| |
− | }}}}{{{Carte|Nom}}}
| |
− | |2={{#vardefine:space|{{#replace:{{{Coord|}}}| |}}}}{{#vardefine:coordx|{{#sub:{{#var:space}}|1|{{#expr:{{#pos:{{#var:space}}|,}}-1}}}}}}{{#vardefine:coordy|{{#sub:{{#var:space}}|{{#expr:{{#pos:{{#var:space}}|,}}+1}}|{{#expr:{{#len:{{#var:space}}}}-3-{{#len:{{#var:coordx}}}}}}}}}}
| |
− | <div style="width: max-content; text-align: center;>'''[[{{{Carte}}}]]'''</div>
| |
− | <div style="margin: 10px 0;">'''Coordonnées''' : ({{#var:coordx}}, {{#var:coordy}})</div>
| |
− | <div style="width: 100%; overflow: auto; display: flex; margin-top: 10px;">
| |
− | <div class="cadreCarte" style="width: max-content; margin: 0 auto; position: relative;">[[Image:{{{ImageCarte}}}.png|link={{{Carte}}}]]
| |
− | <div style="position: absolute; left: calc({{#expr:{{#var:coordx}}/{{CarteCoord|1=x|2={{{Carte|}}}}}*100}}% + 4px); top: calc({{#expr:{{#var:coordy}}/{{CarteCoord|1=y|2={{{Carte|}}}}}*100}}% + 2px); height: 14px; aspect-ratio: 1; border: 4px solid red; transform: translate(-50%, -50%); border-radius: 50%;"></div>
| |
− | </div>
| |
− | </div>
| |
− | |buttonStyle={{#var:buttonStyle}}
| |
− | }}
| |