From The Mana World
(Added documentation)
 
m (→‎Usage:: Fix title)
 
(7 intermediate revisions by 2 users not shown)
Line 10: Line 10:
''Note'': <nowiki>{{I18n}}</nowiki> Template does not direct to translated template.
''Note'': <nowiki>{{I18n}}</nowiki> Template does not direct to translated template.


'''Usage:'''
== Usage ==


Copy the following code into your page.
Copy the following code into your page.


Omitted values will be displayed with their default values or will not appear if they have none. If they are left blank, they will be displayed with a blank field.
=== Normal NPC ===
<pre>{{NPC
|Name          = EJlol
|Image        = [[Image:Image.png]]
|Gender        = Male
|Race          = [[Human]]
|Location      = Earth
}}
</pre>
By adding <code>Shop = yes</code> the NPC will get the Shop category.


<dl style="display:inline-block; padding-left:.75em; margin-left:0;">
=== Object NPC ===
<nowiki>{{NPC
<pre>{{NPC
|Name          = EJlol's bag
|Image        = [[Image:Image.png]]
|Object        = Yes
|Location      = Earth
|Owner        = EJlol
}}
</pre>
By adding <code>Shop = yes</code> the NPC will get the Shop category.
 
=== Lore NPC ===
<pre>{{NPC
|Name          = EJlol
|Name          = EJlol
|Image        = [[Image:Image.png]]
|Image        = [[Image:Image.png]]
|Gender        = Male
|Gender        = Male
|Race          = [[Human]]
|Race          = [[Human]]
|Location      = Earth
|Lore          = Yes
}}
}}
</nowiki>
</pre>
</dl>
 
== NPC Categories ==
 
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.
 
<!-- These aren't npc categories, todo: Transfer themto a correct place
 
* '''[[:Category:Quest|Quest]]''': These show up in the Quest window.
* '''[[:Category:Event|Event]]''': Events are 'quests' that can be only done during a specific timespan where the frequency of the timespan (if it has one) is annually or longer.
  - Note: frequency can be infinite as some events are only done once.
  - Note 2: I'm not sure whether events show up in the quest window, which is why I used quotation marks. -->
 
 
* '''[[:Category:NPC|NPC]]''': Any character that is described on the wiki (as important character in the Gasaron History), described in-game, or is actually in-game;
:* '''[[:Category:Lore Character|Lore Character]]''': At any point of time the NPC cannot be found in-game at all;
:* '''[[:Category:In-game Character|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;
:* '''[[:Category:Event Character|Event Character]]''': Only available during events;
:* '''[[:Category:Shop|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.


<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 14:42, 13 July 2020

50px-Template-info.png Template documentation :


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

Copy the following code into your page.

Normal NPC

{{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

{{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

{{NPC
|Name          = EJlol
|Image         = [[Image:Image.png]]
|Gender        = Male
|Race          = [[Human]]
|Lore          = Yes
}}

NPC Categories

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.