Template:NPC: Difference between revisions
From The Mana World
m Added unknown npc image |
Move categories to includeonly to prevent giving this template the NPC category |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
<table style="width:270px; float: right;" class="wikitable"> | <table style="width:270px; float: right;" class="wikitable"> | ||
<tr><th colspan="2">{{{Name}}}</th></tr> | <tr><th colspan="2">{{{Name}}}</th></tr> | ||
<tr><td colspan="2" align="center">{{{Image| | <tr><td colspan="2" align="center">{{{Image|[[Image:Unknown-npc.png|align=center]]}}}</td></tr> | ||
{{#ifeq:{{lc:{{{Object}}}}}|yes|<tr><th>Belongs to</th><td>{{{Owner|Unknown}}}</td></tr>| | |||
<tr><th>Gender</th><td> {{{Gender|Unknown}}} </td></tr> | <tr><th>Gender</th><td> {{{Gender|Unknown}}} </td></tr> | ||
<tr><th>Race</th><td> {{{Race|Unknown}}} </td></tr> | <tr><th>Race</th><td> {{{Race|Unknown}}} </td></tr> | ||
<tr><th>Location</th><td> {{{Location|Unknown}}} </td></tr> | {{#if:{{{Status|}}}|<tr><th>Status</th><td>{{{Status}}}</td></tr>}} | ||
{{#ifeq:{{lc:{{{Lore}}}}}|yes|<tr><th>Lore only</th><td>Yes</td></tr>|<tr><th>Location</th><td> {{{Location|Unknown}}} </td></tr>}} | |||
}} | |||
{{#ifeq:{{lc:{{{Shop}}}}}|yes|<tr><th>Shop</th><td>Yes</td></tr>}} | |||
{{#if:{{{Event|}}}|<tr><th>Event</th><td>{{{Event}}}</td></tr>}} | |||
</table> | </table> | ||
{{#ifeq:{{lc:{{{Lore}}}}}|yes|[[Category:Lore Character]]|[[Category:In-game Character]]}} | |||
{{#ifeq:{{lc:{{{Shop}}}}}|yes|[[Category:Shop]]}} | |||
{{#if:{{{Event|}}}|[[Category:Event Character]]}} | |||
[[Category:NPC]] | [[Category:NPC]] | ||
<noinclude> | </includeonly><noinclude> | ||
{{Template:{{PAGENAME}}/doc}} <!--this is to include documentation, without transcluding it in the page where template is used--> | {{Template:{{PAGENAME}}/doc}} <!--this is to include documentation, without transcluding it in the page where template is used--> | ||
[[Category:Content Template]] <!--this is to categorize the template. It will not be transcluded in the page where template is used--> | [[Category:Content Template]] <!--this is to categorize the template. It will not be transcluded in the page where template is used--> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:37, 13 July 2020
This is the main template that is to be used for NPCs documentation.
Translated templates are named .Xy:NPC where Xy is the standard abbreviation of language.
example: Template:.De:NPC
Note: {{I18n}} Template does not direct to translated template.
Usage[edit]
Copy the following code into your page.
Normal NPC[edit]
{{NPC
|Name = EJlol
|Image = [[Image:Image.png]]
|Gender = Male
|Race = [[Human]]
|Location = Earth
}}
By adding Shop = yes the NPC will get the Shop category.
Object NPC[edit]
{{NPC
|Name = EJlol's bag
|Image = [[Image:Image.png]]
|Object = Yes
|Location = Earth
|Owner = EJlol
}}
By adding Shop = yes the NPC will get the Shop category.
Lore NPC[edit]
{{NPC
|Name = EJlol
|Image = [[Image:Image.png]]
|Gender = Male
|Race = [[Human]]
|Lore = Yes
}}
NPC Categories[edit]
This is an overview of npc categories / definitions that we use at the wiki. The categories are added automatically by the template, so there is no need to add these manually.
- NPC: Any character that is described on the wiki (as important character in the Gasaron History), described in-game, or is actually in-game;
- Lore Character: At any point of time the NPC cannot be found in-game at all;
- In-game Character: At some point players were able to interact or talk to this NPC, or at least were able to see his body in-game, I guess;
- Event Character: Only available during events;
- Shop: In-game NPC that opens the shop window.
- Note: I'm not sure about NPCs where you can buy things through scripting/talking with the npc.