Template:NpcInfoBox/pt-br: Difference between revisions
From Ymirheim Wiki
(Created page with "Tipo") |
(Updating to match new version of source page) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:NpcInfoBox/styles.css"/> | <includeonly><templatestyles src="Template:InfoBox/styles.css"/><templatestyles src="Template:NpcInfoBox/styles.css"/> | ||
<div class=" | <div class="infobox-wrapper"> | ||
<div class="npc-infobox"> | <div class="infobox npc-infobox"> | ||
<div class="heading">{{#yh_data:npc_prototypes|{{{1}}}|GroupName}}</div> | <div class="heading">{{#yh_data:npc_prototypes|{{{1}}}|GroupName}}</div> | ||
<div class="heading">{{#yh_data:npc_prototypes|{{{1}}}|Name}}</div> | <div class="heading">{{#yh_data:npc_prototypes|{{{1}}}|Name}}</div> | ||
{{#if:{{{image|}}}|<div class=" | {{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image|}}}|280px]]</div>|}} | ||
<table class=" | <table class="infobox-table"> | ||
<tr> | |||
<th scope="row">Tipo</th> | <th scope="row">Tipo</th> | ||
<td>{{#yh_data:npc_types|{{#yh_data:npc_prototypes|{{{1}}}|Type}}|Type}}</td> | <td>{{#yh_data:npc_types|{{#yh_data:npc_prototypes|{{{1}}}|Type}}|Type}}</td> | ||
Line 29: | Line 30: | ||
</tr> | </tr> | ||
|}} | |}} | ||
{{#if:{{{occupation|}}}|<tr><th scope="row"> | {{#if:{{{occupation|}}}|<tr><th scope="row">Ocupação</th><td>{{{occupation|}}}</td></tr>|}} | ||
</table> | </table> | ||
</div> | </div> | ||
</div> | </div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This template can be used to display an information box about a specific NPC on a page. | This template can be used to display an information box about a specific NPC on a page. | ||
Line 73: | Line 73: | ||
| occupation = Magic Shop Keeper | | occupation = Magic Shop Keeper | ||
}}</nowiki></pre> | }}</nowiki></pre> | ||
[[Category:Game Data Templates{{#translation:}}]] | |||
</noinclude> | </noinclude> |
Latest revision as of 08:24, 9 July 2024
This template can be used to display an information box about a specific NPC on a page.
Usage
{{NpcInfoBox|NPC_ID}}
{{NpcInfoBox|NPC_ID|image=IMAGE_LINK}}
You have to supply the specific NPC ID, not the NPC name.
You can find the NPC ID by searching the NPC prototype in Ymirheim Translate (npc_prototypes component).
The NPC ID is contained in the string key. There can be multiple NPCs with the same name, those are variations. Please pick the first one.
For example, if you look up "Poporing" in Ymirheim Translate, you will see the NPC ID in the "Key" column (the portion before the forward slash).
Examples
Natali Klaret
Tipo | Humanóide |
---|---|
Raça | Ellr |
Tamanho | Médio |
Localização | Hoddmimis Magic Shop (D5) |
Ocupação | Magic Shop Keeper |
{{NpcInfoBox | 1001 | image = Natali Klaret.png | zone = [[Special:MyLanguage/Hoddmimis|Hoddmimis]] | location = Magic Shop | coordinates = D5 | occupation = Magic Shop Keeper }}