Difference between revisions of "Template:NPC"

From XilePK - Ragnarok Online Server
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
 
 
<includeonly>
 
<includeonly>
 
<div class="mainpage-contents tile-row">
 
<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">[[File:{{{1|Hat_shop.gif}}}|{{#if:{{{5|}}}|{{{5}}}x{{{6|}}}px|}}|link=#{{{2|npc-id}}}]]</div>
+
     <div class="tile-top tile-image nomobile">[[File:{{{1|Hat_shop.gif}}}|{{#if:{{{5|}}}|{{{5}}}px|}}|link=#{{{2|npc-id}}}|{{#ifexpr:{{{5|}}}>0|class="custom-size" data-width="{{{5}}}" data-height="{{{#if:{{{6|}}}|{{{6}}}|{{{5}}}}}" style="--custom-width:{{{5}}}px; --custom-height:{{#if:{{{6|}}}|{{{6}}}|{{{5}}}}}px;"|}}]]</div>
 
     <div class="tile-bottom link-button">
 
     <div class="tile-bottom link-button">
 
         <h2><span class="warp-copy" data-copy="@warp {{{2}}}">{{{3|Nome do NPC}}}</span></h2>
 
         <h2><span class="warp-copy" data-copy="@warp {{{2}}}">{{{3|Nome do NPC}}}</span></h2>
Line 9: Line 8:
 
     </div>
 
     </div>
 
</div>
 
</div>
</div>NOTOC</includeonly>
+
</div>
Este template permite adicionar um NPC com subtítulo.
+
</includeonly>
 
 
Parâmetros:
 
* 1 - Nome do arquivo de imagem (ex: Hat_shop.gif)
 
* 2 - ID do NPC para link interno (ex: super-hat-shop)
 
* 3 - Nome do NPC (ex: Super Hat Shop)
 
* 4 - Subtítulo/descrição do NPC (ex: Chapéus Mágicos)
 
 
 
Exemplo de uso:
 
{{NPC|Hat_shop.gif|super-hat-shop|Super Hat Shop|Chapéus Mágicos}}
 
 
 
[[Categoria: Predefinições]]
 
</noinclude>
 

Latest revision as of 17:14, 30 April 2025