Template:NPC: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
{{#switch:{{lc:{{{location}}}}}|n|-=|{{#if:{{#switch:{{lc:{{{status}}}}}|h|n|no=1}}{{#switch:{{lc:{{{alive}}}}}|n|no=1}}| |{{!}}'''Location:'''{{!}}{{!}}{{#If:{{{location|}}}|[[{{{location}}}]]{{#if:{{#show: [[{{{location}}}]] | ?Found in}} | {{#arraymap:{{#ask: [[{{{location}}}]]|mainlabel=-|link=none|?Found in=}}|,|x|[[found in::x| ]]|}}|}} {{#if:{{{map|}}}|{{#switch:{{{map}}}|-=|([[found on map::RanikMap{{{map}}}|Ranik Map {{{map}}}]]{{#if:{{#show: [[RanikMap{{{map}}}]] | ?Found in}} | {{#arraymap:{{#ask: [[RanikMap{{{map}}}]]|mainlabel=-|link=none|?Found in=}}|,|x|[[found in::x| ]]|}}|}})}}|<includeonly>[[missing::Infobox entry for map location| ]]</includeonly>}}|<includeonly>[[missing::Infobox entry for location|''Unknown'']]</includeonly>}}}}}} |
{{#switch:{{lc:{{{location}}}}}|n|-=|{{#if:{{#switch:{{lc:{{{status}}}}}|h|n|no=1}}{{#switch:{{lc:{{{alive}}}}}|n|no=1}}| |{{!}}'''Location:'''{{!}}{{!}}{{#If:{{{location|}}}|[[{{{location}}}]]{{#if:{{#show: [[{{{location}}}]] | ?Found in}} | {{#arraymap:{{#ask: [[{{{location}}}]]|mainlabel=-|link=none|?Found in=}}|,|x|[[found in::x| ]]|}}|}} {{#if:{{{map|}}}|{{#switch:{{{map}}}|-=|([[found on map::RanikMap{{{map}}}|Ranik Map {{{map}}}]]{{#if:{{#show: [[RanikMap{{{map}}}]] | ?Found in}} | {{#arraymap:{{#ask: [[RanikMap{{{map}}}]]|mainlabel=-|link=none|?Found in=}}|,|x|[[found in::x| ]]|}}|}})}}|<includeonly>[[missing::Infobox entry for map location| ]]</includeonly>}}|<includeonly>[[missing::Infobox entry for location|''Unknown'']]</includeonly>}}}}}} |
||
|- |
|- |
||
{{#if:{{{type|}}}|{{#ifeq:{{{type}}}|-||{{!}}'''Type:'''{{!}}{{!}}{{{type}}}{{#If:{{{type2|}}}|, {{{type2}}}}}{{#If:{{{type3|}}}|, |
{{#if:{{{type|}}}|{{#ifeq:{{{type}}}|-||{{!}}'''Type:'''{{!}}{{!}}{{{type}}}{{#If:{{{type2|}}}|, {{{type2}}}}}{{#If:{{{type3|}}}|, {{{type3}}}}}{{#If:{{{type4|}}}|, {{{type4}}}}}{{#If:{{{type5|}}}|, {{{type5}}}}}}}}} |
||
|- |
|- |
||
{{#if:{{{assoc|}}}|{{!}}'''Associates:'''{{!}}{{!}}{{#arraymap:{{{assoc}}}{{#If:{{{assoc2|}}}|,{{{assoc2}}}}}{{#If:{{{assoc3|}}}|,{{{assoc3}}}}}{{#If:{{{assoc4|}}}|,{{{assoc4}}}}}{{#If:{{{assoc5|}}}|,{{{assoc5}}}}}|,|x|[[associates with::x]]}}}} |
{{#if:{{{assoc|}}}|{{!}}'''Associates:'''{{!}}{{!}}{{#arraymap:{{{assoc}}}{{#If:{{{assoc2|}}}|,{{{assoc2}}}}}{{#If:{{{assoc3|}}}|,{{{assoc3}}}}}{{#If:{{{assoc4|}}}|,{{{assoc4}}}}}{{#If:{{{assoc5|}}}|,{{{assoc5}}}}}|,|x|[[associates with::x]]}}}} |
||
Line 23: | Line 23: | ||
|- |
|- |
||
{{#if:{{{task|}}}|{{!}}'''Tasks:'''{{!}}{{!}}{{#arraymap:{{{task}}}|,|x|[[gives task type::x]]}}}} |
{{#if:{{{task|}}}|{{!}}'''Tasks:'''{{!}}{{!}}{{#arraymap:{{{task}}}|,|x|[[gives task type::x]]}}}} |
||
|}<includeonly>[[page type is::npc| ]][[rare source::true| ]]{{cat|NPCs}}{{#switch:{{lc:{{{guild}}}}}|n|-=|{{#if:{{{guild|}}}|{{cat|{{{guild}}}}}}}}}{{#switch:{{lc:{{{alive}}}}}|y|yes={{Cat|Alive}}|n|no={{Cat|Dead}}}}{{#switch:{{lc:{{{status}}}}}|y|yes={{cat|Alive}}|n|no={{cat|Dead}}|h={{cat|Historical Figures}}}}{{IfMatch |
|||
|}<includeonly>[[page type is::npc| ]][[rare source::true| ]]{{cat|NPCs}}{{#switch:{{lc:{{{guild}}}}}|n|-=|{{#if:{{{guild|}}}|{{cat|{{{guild}}}}}}}}}{{#switch:{{lc:{{{alive}}}}}|y|yes={{Cat|Alive}}|n|no={{Cat|Dead}}}}{{#switch:{{lc:{{{status}}}}}|y|yes={{cat|Alive}}|n|no={{cat|Dead}}|h={{cat|Historical Figures}}}}{{IfMatch|author|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{Cat|Author}}}}{{IfMatch|child of kalestraum|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Children of Kalestraum}}[[member of::Children of Kalestraum| ]]}}{{IfMatch|emperor|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Emperor}}}}{{IfMatch|ferdahl|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Ferdahl}}}}{{IfMatch|guard|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Guards}}}}{{IfMatch|guild leader|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Guild Leaders}}}}{{IfMatch|merchant|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Merchant}}}}{{IfMatch|pirate|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Pirates}}}}{{IfMatch|ship captain|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Ship Captain}}}}{{IfMatch|shopowner|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Shopowner}}}}{{IfMatch|undead|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Undead}}}}{{IfMatch|y'shai|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Y'Shai}}[[member of::y'shai| ]]}}{{IfMatch|outcast|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Outcasts}}[[member of::outcasts| ]]}}{{IfMatch|dragon priest|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Dragon Priests}}[[member of::dragon priests| ]]}}{{IfMatch|monk of the crystal hand|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Monks of the Crystal Hand}}[[member of::monks of the crystal hand| ]]}}{{IfMatch|nomad of the arid steppe|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Nomads of the Arid Steppe}}[[member of::nomads of the arid steppe| ]]}}{{IfMatch|alterer|{{{type}}}|{{{type2}}}|{{{type3}}}|{{{type4}}}|{{{type5}}}|true={{cat|Alterers}}}}</includeonly><noinclude> |
|||
|author |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{Cat|Author}}}}{{IfMatch |
|||
|child of kalestraum |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Children of Kalestraum}}[[member of::Children of Kalestraum| ]]}}{{IfMatch |
|||
|emperor |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Emperor}}}}{{IfMatch |
|||
|ferdahl |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Ferdahl}}}}{{IfMatch |
|||
|guard |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Guards}}}}{{IfMatch |
|||
|guild leader |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Guild Leaders}}}}{{IfMatch |
|||
|merchant |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Merchant}}}}{{IfMatch |
|||
|pirate|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Pirates}}}}{{IfMatch |
|||
|ship captain|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Ship Captain}}}}{{IfMatch |
|||
|shopowner |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Shopowner}}}}{{IfMatch |
|||
|undead |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Undead}}}}{{IfMatch2 |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|y'shai|yshai|true={{cat|Y'Shai}}[[member of::y'shai| ]]}}{{IfMatch |
|||
|outcast |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Outcasts}}[[member of::outcasts| ]]}}{{ |
|||
IfMatch|dragon priest |
|||
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Dragon Priests}}[[member of::dragon priests| ]]}}{{IfMatch |
|||
|monk of the crystal hand|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Monks of the Crystal Hand}}[[member of::monks of the crystal hand| ]]}}{{IfMatch |
|||
|nomad of the arid steppe|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Nomads of the Arid Steppe}}[[member of::nomads of the arid steppe| ]]}}{{IfMatch |
|||
|alterer|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Alterers}}}}</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 /> |
Revision as of 18:23, 16 June 2014
NPC | |
---|---|
Status: | Unknown |
Guild: | Unknown |
Race: | Unknown |
Gender: | Unknown |
Location: |
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 | <race>/u | Use "u" if the race information is not given, but other information is. |
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, "u" means unknown, and "h" means a historical figure. |
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. |
task | craft,delivery,kill,kill boss,kill recovery, forage,recover,recover area,search,skinning |
What tasks the NPC gives. See Property:Gives task type for details. |
{{NPC |name= |alias= |guild= |race= |gender= |status= |location= |map= |type= |type2= |type3= |type4= |type5= |assoc= |relat= |task= }}