Difference between revisions of "Template:NPC"

From XilePK - Ragnarok Online Server
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<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}}}px|}}|link=#{{{2|npc-id}}}|{{#if:{{{5|}}}|class=npc-custom-size style="--custom-width:{{{5}}}px;"|}}]]</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>

Latest revision as of 17:14, 30 April 2025