Diferenças entre edições de "Predefinição:Mapa/NPC"

[edição verificada][edição verificada]
(Criou a página com "<includeonly>{{#ifexpr:{{{size|7}}} mod 2 = 0 |Catégorie:Informations manquantes {{Attention|1= Le paramètre '''size''' soit être un nombre impair. }} | {{#ifeq:{{PAG...")
 
Linha 1: Linha 1:
 
<includeonly>{{#ifexpr:{{{size|7}}} mod 2 = 0
 
<includeonly>{{#ifexpr:{{{size|7}}} mod 2 = 0
|[[Catégorie:Informations manquantes]]
+
|
 
{{Attention|1=
 
{{Attention|1=
 
Le paramètre '''size''' soit être un nombre impair.
 
Le paramètre '''size''' soit être un nombre impair.
Linha 13: Linha 13:
 
{{IconeHelp|Version=2|Tel=True|{{{Nome}}} ({{{x}}}, {{{y}}})|style=width: max-content; bottom: {{#expr:10 + {{{size|7}}}}}px; transform: translate({{#expr:-({{{x|0}}}-29)/714*100}}%);}}
 
{{IconeHelp|Version=2|Tel=True|{{{Nome}}} ({{{x}}}, {{{y}}})|style=width: max-content; bottom: {{#expr:10 + {{{size|7}}}}}px; transform: translate({{#expr:-({{{x|0}}}-29)/714*100}}%);}}
 
</div>
 
</div>
|<div class="popInfo" style="position: absolute; top: calc({{{y}}}/{{CarteCoord|1=y|2={{PAGENAME}}}}*100% + 0.5px); left: calc({{{x}}}/{{CarteCoord|1=x|2={{PAGENAME}}}}*100% + 0.5px); transform: translate(-{{#expr:floor({{{size|7}}}/2)}}px, -{{#expr:floor({{{size|7}}}/2)}}px);">
+
|<div class="popInfo" style="position: absolute; top: calc({{{y}}}/{{MapaCoord|1=y|2={{PAGENAME}}}}*100% + 0.5px); left: calc({{{x}}}/{{MapaCoord|1=x|2={{PAGENAME}}}}*100% + 0.5px); transform: translate(-{{#expr:floor({{{size|7}}}/2)}}px, -{{#expr:floor({{{size|7}}}/2)}}px);">
 
<div style="display: grid; justify-items: stretch; width: {{{size|7}}}px; height: {{{size|7}}}px; background: {{#switch:{{{color|red}}}
 
<div style="display: grid; justify-items: stretch; width: {{{size|7}}}px; height: {{{size|7}}}px; background: {{#switch:{{{color|red}}}
 
|red=#7ae75d
 
|red=#7ae75d
 
|blue=#88daf1
 
|blue=#88daf1
 
}}; overflow: hidden;">[[Image:Casepnj.png|{{{size|7}}}px|link={{{Nome}}}]]</div>
 
}}; overflow: hidden;">[[Image:Casepnj.png|{{{size|7}}}px|link={{{Nome}}}]]</div>
{{IconeHelp|Version=2|Tel=True|{{{Nome}}} ({{{x}}}, {{{y}}})|style=width: max-content; bottom: {{#expr:10 + {{{size|7}}}}}px; transform: translate({{#expr:-{{{x|0}}}/{{CarteCoord|1=x|2={{PAGENAME}}}}*100}}%);}}
+
{{IconeHelp|Version=2|Tel=True|{{{Nome}}} ({{{x}}}, {{{y}}})|style=width: max-content; bottom: {{#expr:10 + {{{size|7}}}}}px; transform: translate({{#expr:-{{{x|0}}}/{{MapaCoord|1=x|2={{PAGENAME}}}}*100}}%);}}
 
</div>}}}}</includeonly>
 
</div>}}}}</includeonly>

Revisão das 01h57min de 5 de dezembro de 2025