Difference between revisions of "Template:NPC"

From XilePK - Ragnarok Online Server
Jump to navigation Jump to search
Line 3: Line 3:
 
<div class="contents-equipment tile-halves" data-width="{{{5|}}}" data-height="{{{6|}}}">
 
<div class="contents-equipment tile-halves" data-width="{{{5|}}}" data-height="{{{6|}}}">
 
     <div class="tile-top tile-image nomobile" style="{{#if:{{{6|}}}|--image-height:{{{6}}}px;|}}">
 
     <div class="tile-top tile-image nomobile" style="{{#if:{{{6|}}}|--image-height:{{{6}}}px;|}}">
        <a href="#{{{2|npc-id}}}" class="warp-copy" data-copy="@warp {{{2}}}">
+
    <a href="#{{{2|npc-id}}}" class="warp-copy" data-copy="@warp {{{2}}}">
            [[File:{{{1|Hat_shop.gif}}}|link=]]
+
        [[File:{{{1|Hat_shop.gif}}}|link=]]
        </a>
+
    </a>
    </div>
+
</div>
 
     <div class="tile-bottom link-button" style="width:100%;">
 
     <div class="tile-bottom link-button" style="width:100%;">
 
         <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>

Revision as of 16:20, 9 May 2025


Este template exibe um NPC com uma imagem e informações. Parâmetros:

  • 1: Nome do arquivo de imagem (ex: Uber_Items.gif)
  • 2: ID do NPC para o comando warp (ex: xmas_in 174 104)
  • 3: Nome do NPC (ex: Uber Items)
  • 4: Descrição do NPC (ex: Chapéus Mágicos)
  • 5: Largura do container em pixels (ex: 90)
  • 6: Altura da área da imagem em pixels (ex: 52)

Exemplo de uso:

   <a href="#xmas_in 174 104" class="warp-copy" data-copy="@warp xmas_in 174 104">
       Uber Items.gif
   </a>