Template:NPC: Difference between revisions
Jump to navigation
Jump to search
(adapted to use Property:Pretty name is) |
m (doc modifications) |
||
Line 23: | Line 23: | ||
|}<includeonly>[[page type is::npc| ]][[Category:NPCs]]{{#if:{{{race|}}}|[[Category:{{{race}}}]]|[[Category:Unknown Race]]}}{{#switch:{{lc:{{{guild}}}}}|n|-=|{{#if:{{{guild|}}}|[[Category:{{{guild}}}]]}}}}{{#switch:{{lc:{{{alive}}}}}|y|yes=[[Category:Alive]]|n|no=[[Category:Dead]]}}{{#switch:{{lc:{{{status}}}}}|y|yes=[[Category:Alive]]|n|no=[[Category:Dead]]}}{{IfMatch|author|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Author]]}}{{IfMatch|child of kalestraum|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Children of Kalestraum]]}}{{IfMatch|emperor|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Emperor]]}}{{IfMatch|ferdahl|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Ferdahl]]}}{{IfMatch|guard|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Guards]]}}{{IfMatch|guild leader|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Guild Leaders]]}}{{IfMatch|merchant|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Merchant]]}}{{IfMatch|pirate|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Pirates]]}}{{IfMatch|ship captain|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Ship Captain]]}}{{IfMatch|shopowner|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Shopowner]]}}{{IfMatch|undead|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Undead]]}}{{IfMatch|y'shai|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Y'Shai]]}}{{IfMatch|outcast|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Outcasts]]}}{{IfMatch|dragon priest|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Dragon Priests]]}}{{IfMatch|monk of the crystal hand|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Monks of the Crystal Hand]]}}{{IfMatch|nomad of the arid steppe|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Nomads of the Arid Steppe]]}}</includeonly><noinclude> |
|}<includeonly>[[page type is::npc| ]][[Category:NPCs]]{{#if:{{{race|}}}|[[Category:{{{race}}}]]|[[Category:Unknown Race]]}}{{#switch:{{lc:{{{guild}}}}}|n|-=|{{#if:{{{guild|}}}|[[Category:{{{guild}}}]]}}}}{{#switch:{{lc:{{{alive}}}}}|y|yes=[[Category:Alive]]|n|no=[[Category:Dead]]}}{{#switch:{{lc:{{{status}}}}}|y|yes=[[Category:Alive]]|n|no=[[Category:Dead]]}}{{IfMatch|author|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Author]]}}{{IfMatch|child of kalestraum|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Children of Kalestraum]]}}{{IfMatch|emperor|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Emperor]]}}{{IfMatch|ferdahl|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Ferdahl]]}}{{IfMatch|guard|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Guards]]}}{{IfMatch|guild leader|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Guild Leaders]]}}{{IfMatch|merchant|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Merchant]]}}{{IfMatch|pirate|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Pirates]]}}{{IfMatch|ship captain|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Ship Captain]]}}{{IfMatch|shopowner|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Shopowner]]}}{{IfMatch|undead|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Undead]]}}{{IfMatch|y'shai|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Y'Shai]]}}{{IfMatch|outcast|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Outcasts]]}}{{IfMatch|dragon priest|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Dragon Priests]]}}{{IfMatch|monk of the crystal hand|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Monks of the Crystal Hand]]}}{{IfMatch|nomad of the arid steppe|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true=[[Category:Nomads of the Arid Steppe]]}}</includeonly><noinclude> |
||
==Usage Documentation== |
==Usage Documentation== |
||
The template is for use with both GMNPCs and standard atmospheric NPCs.<Br> |
The template is for use with both GMNPCs and standard atmospheric NPCs.<Br /> |
||
'''Note:''' This page is not currently set up to automatically generate <nowiki>{{incomplete}}</nowiki> tags, but will be soon. |
|||
{| border="1" cellpadding="1" style="clear:right;" |
{| border="1" cellpadding="1" style="clear:right;" |
||
Line 72: | Line 71: | ||
|type5= |
|type5= |
||
|assoc= |
|assoc= |
||
|assoc2= |
|||
|assoc3= |
|||
|assoc4= |
|||
|assoc5= |
|||
|relat= |
|relat= |
||
|relat2= |
|||
|relat3= |
|||
|relat4= |
|||
|relat5= |
|||
}} |
}} |
||
</pre> |
</pre> |
||
{{cat|Templates}} |
|||
[[Category:Templates|{{PAGENAME}}]] |
|||
</noinclude> |
</noinclude> |
Revision as of 13:21, 5 February 2009
NPC | |
---|---|
Status: | Unknown |
Guild: | Unknown |
Race: | Unknown |
Gender: | Unknown |
Location: | Unknown |
Usage Documentation
The template is for use with both GMNPCs and standard atmospheric NPCs.
Variable | Supported Values | Usage |
---|---|---|
name | Name if different from pagename | |
alias# | Any names besides the current one in use. | |
guild | -/(guild) | Use "-" if they have no guild. |
race | ||
gender | m/f/- | Use "-" if there's no discernable gender. |
status | y/n/u | To be compatable with previous versions, "y" means alive, "n" means dead, and "u" means unknown. |
location | location name OR - |
Where the NPC is found, or "-" if not applicable. |
map | number | Which map the NPC can be found on. |
type# | Any special status they have. | |
assoc | <name>,<page name2>|<name2>,... | Any NPC associates of note. |
relat | <name>,<page name2>|<name2>,... | Any NPC relatives. |
{{NPC |name= |alias= |alias2= |alias3= |alias4= |alias5= |guild= |race= |gender= |status= |location= |map= |type= |type2= |type3= |type4= |type5= |assoc= |relat= }}