Difference between revisions of "Template:NPCs"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| − | <div class=" | + | <div class="npc-grid"> |
{{{1|}}} | {{{1|}}} | ||
{{{2|}}} | {{{2|}}} | ||
| Line 19: | Line 19: | ||
{{{17|}}} | {{{17|}}} | ||
{{{18|}}} | {{{18|}}} | ||
| − | </div>__NOTOC__ | + | </div> |
| + | <style> | ||
| + | .npc-grid { | ||
| + | display: flex; | ||
| + | flex-wrap: wrap; | ||
| + | justify-content: flex-start; | ||
| + | gap: 10px; | ||
| + | } | ||
| + | |||
| + | .npc-grid .mainpage-contents.tile-row { | ||
| + | width: 150px; | ||
| + | margin: 0; | ||
| + | flex-shrink: 0; | ||
| + | flex-grow: 0; | ||
| + | } | ||
| + | |||
| + | .npc-grid .contents-equipment.tile-halves { | ||
| + | width: 100%; | ||
| + | } | ||
| + | </style> | ||
| + | __NOTOC__ | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Este template serve como um contêiner para exibir vários NPCs lado a lado. | Este template serve como um contêiner para exibir vários NPCs lado a lado. | ||
| Line 28: | Line 48: | ||
{{NPC|Weapon_shop.gif|weapon-shop|Weapon Shop|Armas Poderosas}} | {{NPC|Weapon_shop.gif|weapon-shop|Weapon Shop|Armas Poderosas}} | ||
}} | }} | ||
| − | + | Certifique-se de separar cada {{NPC}} com um pipe (|) e não adicionar pipe após o último NPC. | |
[[Categoria: Predefinições]] | [[Categoria: Predefinições]] | ||
</noinclude> | </noinclude> | ||
Revision as of 12:56, 2 May 2025
Este template serve como um contêiner para exibir vários NPCs lado a lado. Use-o da seguinte forma:
<style> .npc-grid {
display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px;
}
.npc-grid .mainpage-contents.tile-row {
width: 150px; margin: 0; flex-shrink: 0; flex-grow: 0;
}
.npc-grid .contents-equipment.tile-halves {
width: 100%;
} </style>
Certifique-se de separar cada
com um pipe (|) e não adicionar pipe após o último NPC.
