Difference between revisions of "Template:NPC"

From XilePK - Ragnarok Online Server
Jump to navigation Jump to search
 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<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" style="{{#if:{{{5|}}}|--container-width:{{{5}}}px;|}}">
    <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-top tile-image nomobile" style="{{#if:{{{6|}}}|--image-height:{{{6}}}px;|}}">[[File:{{{1|Hat_shop.gif}}}|{{#if:{{{5|}}}|{{{5}}}px|}}|link=#{{{2|npc-id}}}]]</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 10: Line 10:
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>
 +
<noinclude>
 +
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:
 +
{{NPC|Uber_Items.gif|xmas_in 174 104|Uber Items|Chapéus Mágicos|90|52}}
 +
</noinclude>

Latest revision as of 17:05, 8 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:

Uber Items.gif