Difference between revisions of "Template:NPC"

From XilePK - Ragnarok Online Server
Jump to navigation Jump to search
Line 1: Line 1:
## Template:NPCs
 
 
 
```
 
```
 
<includeonly>
 
<includeonly>
<div class="mainpage-contents tile-row" style="gap: {{{gap|15px}}};">
 
{{{1|}}}
 
{{{2|}}}
 
{{{3|}}}
 
{{{4|}}}
 
{{{5|}}}
 
{{{6|}}}
 
{{{7|}}}
 
{{{8|}}}
 
{{{9|}}}
 
{{{10|}}}
 
{{{11|}}}
 
{{{12|}}}
 
{{{13|}}}
 
{{{14|}}}
 
{{{15|}}}
 
{{{16|}}}
 
{{{17|}}}
 
{{{18|}}}
 
</div>__NOTOC__
 
</includeonly>
 
 
<noinclude>
 
Este template serve como um contêiner para exibir vários NPCs lado a lado.
 
 
Use-o da seguinte forma:
 
{{NPCs|
 
{{NPC|Uber_Items.gif|xmas_in 174 104|Uber Items|Chapéus Mágicos}}|
 
{{NPC|2-2 Class.gif|potion-shop|Potion Shop|Poções de Cura}}|
 
{{NPC|2-2 Class.gif|weapon-shop|Weapon Shop|Armas Poderosas}}
 
}}
 
 
Você pode adicionar até 18 NPCs no mesmo contêiner. Eles serão exibidos lado a lado até o limite da tela e depois continuarão na próxima linha.
 
 
Parâmetros opcionais:
 
* gap: define o espaçamento entre os NPCs (padrão: 15px)
 
</noinclude>
 
```
 
 
## Template:NPC
 
 
```
 
<includeonly>
 
<div class="mainpage-contents tile-row">
 
 
<div class="contents-equipment tile-halves" data-width="{{{5|}}}">
 
<div class="contents-equipment tile-halves" data-width="{{{5|}}}">
 
     <div class="tile-top tile-image nomobile" style="{{#if:{{{6|}}}|--image-height:{{{6}}}px;|}}" data-height="{{{6|}}}">[[File:{{{1|Hat_shop.gif}}}|link=#{{{2|npc-id}}}]]</div>
 
     <div class="tile-top tile-image nomobile" style="{{#if:{{{6|}}}|--image-height:{{{6}}}px;|}}" data-height="{{{6|}}}">[[File:{{{1|Hat_shop.gif}}}|link=#{{{2|npc-id}}}]]</div>
Line 53: Line 7:
 
         <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>
 +
 
<noinclude>
 
<noinclude>
 
Este template exibe um NPC com uma imagem e informações.
 
Este template exibe um NPC com uma imagem e informações.
Line 68: Line 22:
 
{{NPC|Uber_Items.gif|xmas_in 174 104|Uber Items|Chapéus Mágicos|90|52}}
 
{{NPC|Uber_Items.gif|xmas_in 174 104|Uber Items|Chapéus Mágicos|90|52}}
 
</noinclude>
 
</noinclude>
```
 
 
## Exemplo de Uso na Página
 
 
```
 
{{NPCs|gap=2px|{{NPC|Uber_Items.gif|xmas_in 174 104|Uber Items|Special Equipment|179|120}}|
 
{{NPC|Cards-shop.gif|xmas_in 174 98|Cards|Common cards needed for<br> PvP/MvP|179|120}}|
 
{{NPC|Daggers.gif|xmas_in 176 99|Daggers|Common Daggers|179|120}}|
 
{{NPC|Swords.gif|xmas_in 176 103|Swords|Common Swords|179|120}}|
 
{{NPC|Axes.gif|xmas_in 176 101|Axes|Common Axes|179|120}}|
 
{{NPC|Staffs & Wands.gif|xmas_in 176 97|Staffs & Wands|Common Staffs & Wands|179|120}}|
 
{{NPC|Maces.gif|xmas_in 176 95|Maces|Common Maces|179|120}}|
 
{{NPC|Bows & Arrows.gif|xmas_in 171 106|Bows & Arrows|Common Bows & Arrows|179|120}}|
 
{{NPC|Hat shop.gif|xmas_in 160 98|Super Hat Shop 1|Common Hats|179|120}}|
 
{{NPC|Katars.gif|xmas_in 173 106|Katars|Common Katars|179|120}}|
 
{{NPC|Shields.gif|xmas_in 169 106|Shields|Common Shields|179|120}}|
 
{{NPC|Armors.gif|xmas_in 164 106|Armors|Common Armors|179|120}}|
 
{{NPC|Shoes.gif|xmas_in 167 106|Shoes|Common Shoes|179|120}}|
 
{{NPC|Garments.gif|xmas_in 168 104|Garments|Common Garments|179|120}}|
 
{{NPC|Accesories.gif|xmas_in 160 106|Accesories|Common Accesories|179|120}}|
 
{{NPC|2-2 Class.gif|xmas_in 176 90|2-2 Class|Common 2-2 Class|179|120}}|
 
{{NPC|Spears.gif|xmas_in 176 93|Spears|Common Spears|179|120}}|
 
{{NPC|Super Hat Shop 2.gif|xmas_in 160 98|Super Hat Shop 2|Common Hats|179|120}}
 
}}
 
 
```
 
```

Revision as of 16:24, 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: ```

Uber Items.gif


```

```