Modèle:Carte/PNJ : Différence entre versions
| [version vérifiée] | [version vérifiée] |
| Ligne 5 : | Ligne 5 : | ||
}} | }} | ||
| | | | ||
| − | <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);"> | + | {{#ifeq:{{PAGENAME}}|Donjon des araignées 2 |
| + | |<div class="popInfo" style="position: absolute; top: calc({{#expr:{{{y|}}}-216}}/714*100% + 0.5px); left: calc({{#expr:{{{x|0}}}-29}}/714*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}}} | ||
| + | |red=#7ae75d | ||
| + | |blue=#88daf1 | ||
| + | }}; overflow: hidden;">[[Image:Casepnj.png|{{{size|7}}}px|link={{{Nom}}}]]</div> | ||
| + | {{IconeHelp|Version=2|Tel=True|{{{Nom}}} ({{{x}}}, {{{y}}})|style=width: max-content; bottom: {{#expr:10 + {{{size|7}}}}}px; transform: translate({{#expr:-({{{x|0}}}-29)/714%);}} | ||
| + | </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 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 | ||
| Ligne 11 : | Ligne 19 : | ||
}}; overflow: hidden;">[[Image:Casepnj.png|{{{size|7}}}px|link={{{Nom}}}]]</div> | }}; overflow: hidden;">[[Image:Casepnj.png|{{{size|7}}}px|link={{{Nom}}}]]</div> | ||
{{IconeHelp|Version=2|Tel=True|{{{Nom}}} ({{{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|{{{Nom}}} ({{{x}}}, {{{y}}})|style=width: max-content; bottom: {{#expr:10 + {{{size|7}}}}}px; transform: translate({{#expr:-{{{x|0}}}/{{CarteCoord|1=x|2={{PAGENAME}}}}*100}}%);}} | ||
| − | </div>}}</includeonly> | + | </div>}}}}</includeonly> |