Difference between revisions of "Template:NPC"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
+ | <div class="mainpage-contents tile-row"> | ||
<div class="contents-equipment tile-halves"> | <div class="contents-equipment tile-halves"> | ||
<div class="tile-top tile-image nomobile"> | <div class="tile-top tile-image nomobile"> | ||
− | [[File:{{{1|Hat_shop.gif}}}|link=#{{{2|npc-id}}}|class=custom-size|data-width={{{5|}}}|data-height={{{6|}}}]] | + | <div class="gif-container" style="width:{{#if:{{{5|}}}|{{{5}}}px|auto}}; height:{{#if:{{{6|}}}|{{{6}}}px|{{#if:{{{5|}}}|{{{5}}}px|auto}}}};"> |
+ | [[File:{{{1|Hat_shop.gif}}}|link=#{{{2|npc-id}}}|class=custom-size|data-width={{{5|}}}|data-height={{#if:{{{6|}}}|{{{6}}}|{{{5|}}}}}]] | ||
+ | </div> | ||
</div> | </div> | ||
<div class="tile-bottom link-button"> | <div class="tile-bottom link-button"> | ||
Line 8: | Line 11: | ||
<div class="npc-subtitle">{{{4|Descrição do NPC}}}</div> | <div class="npc-subtitle">{{{4|Descrição do NPC}}}</div> | ||
</div> | </div> | ||
+ | </div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> |
Revision as of 15:19, 8 May 2025
Este é o template para exibir um NPC individual com sua imagem e informações.
Use-o da seguinte forma:
Parâmetros:
- 1: Nome do arquivo de imagem (exemplo: Hat_shop.gif)
- 2: Coordenadas no mapa (exemplo: xmas_in 174 104)
- 3: Nome do NPC
- 4: Descrição do NPC
- 5: Largura da imagem em pixels (opcional)
- 6: Altura da imagem em pixels (opcional)
Exemplo: