Template:NPC: Difference between revisions
Jump to navigation
Jump to search
(updated documentation) |
(switched the disabling bit to "-") |
||
Line 5: | Line 5: | ||
|width="15%"|'''Status:'''||{{#switch:{{lc:{{{alive}}}}}|y|yes=Alive|n|no=Dead|u=Unknown}}{{#switch:{{lc:{{{status}}}}}|y|yes=Alive|n|no=Dead|u=Unknown}}{{#if:{{{alive|}}}{{{status|}}}||''Unknown''}} |
|width="15%"|'''Status:'''||{{#switch:{{lc:{{{alive}}}}}|y|yes=Alive|n|no=Dead|u=Unknown}}{{#switch:{{lc:{{{status}}}}}|y|yes=Alive|n|no=Dead|u=Unknown}}{{#if:{{{alive|}}}{{{status|}}}||''Unknown''}} |
||
|- |
|- |
||
{{#if:{{{alias|}}} |
{{#if:{{{alias|}}}|{{!}}'''Aliases:'''{{!}}{{!}}{{{alias}}}{{#if:{{{alias2|}}}|, {{{alias2}}}}}{{#if:{{{alias3|}}}|, {{{alias3}}}}}{{#if:{{{alias4|}}}|, {{{alias4}}}}}{{#if:{{{alias5|}}}|, {{{alias5}}}}}}} |
||
|- |
|- |
||
{{# |
{{#switch:{{lc:{{{guild}}}}}|n|-=|{{!}}'''Guild:'''{{!}}{{!}}{{#if:{{{guild|}}}|[[guild is::{{lc:{{{guild}}}}}|{{{guild}}}]]|''Unknown''}}}} |
||
|- |
|- |
||
|'''Race:'''||{{#If:{{{race|}}}|[[race is::{{{race}}}]]|''Unknown''}} |
|'''Race:'''||{{#If:{{{race|}}}|[[race is::{{{race}}}]]|''Unknown''}} |
||
|- |
|- |
||
|'''Gender:'''||{{#switch:{{lc:{{{gender}}}}}|m|male=Male|f|female=Female|''Unknown''}} |
|'''Gender:'''||{{#switch:{{lc:{{{gender}}}}}|-=NA|m|male=Male|f|female=Female|''Unknown''}} |
||
|- |
|- |
||
{{# |
{{#switch:{{lc:{{{location}}}}}|n|-=|{{#switch:{{lc:{{{status}}}}}|n|no=|{{#switch:{{lc:{{{alive}}}}}|n|no=|{{!}}'''Location:'''{{!}}{{!}}{{#If:{{{location|}}}|[[{{{location}}}]] {{#if:{{{map|}}}|([[found on map::RanikMap{{{map}}}|Ranik Map {{{map}}}]])|}}|''Unknown''}}}}}}}} |
||
|- |
|- |
||
{{#if:{{{type|}}}|{{!}}'''Type:'''{{!}}{{!}}{{{type}}}{{#If:{{{type2|}}}|, {{{type2}}}}}{{#If:{{{type3|}}}|, [[{{{type3}}}]]}}{{#If:{{{type4|}}}|, [[{{{type4}}}]]}}{{#If:{{{type5|}}}|, [[{{{type5}}}]]}}}} |
{{#if:{{{type|}}}|{{!}}'''Type:'''{{!}}{{!}}{{{type}}}{{#If:{{{type2|}}}|, {{{type2}}}}}{{#If:{{{type3|}}}|, [[{{{type3}}}]]}}{{#If:{{{type4|}}}|, [[{{{type4}}}]]}}{{#If:{{{type5|}}}|, [[{{{type5}}}]]}}}} |
||
Line 20: | Line 20: | ||
|- |
|- |
||
{{#if:{{{relat|}}}|{{!}}'''Relatives:'''{{!}}{{!}}[[{{{relat}}}]]{{#If:{{{relat2|}}}|, [[{{{relat2}}}]]}}{{#If:{{{relat3|}}}|, [[{{{relat3}}}]]}}{{#If:{{{relat4|}}}|, [[{{{relat4}}}]]}}{{#If:{{{relat5|}}}|, [[{{{relat5}}}]]}}}} |
{{#if:{{{relat|}}}|{{!}}'''Relatives:'''{{!}}{{!}}[[{{{relat}}}]]{{#If:{{{relat2|}}}|, [[{{{relat2}}}]]}}{{#If:{{{relat3|}}}|, [[{{{relat3}}}]]}}{{#If:{{{relat4|}}}|, [[{{{relat4}}}]]}}{{#If:{{{relat5|}}}|, [[{{{relat5}}}]]}}}} |
||
|}<includeonly>[[page type is::npc| ]][[Category:NPCs]]{{#if:{{{race|}}}|[[Category:{{{race}}}]]|[[Category:Unknown Race]]}}{{# |
|}<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> |
Revision as of 18:54, 2 December 2008
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.
Note: This page is not currently set up to automatically generate {{incomplete}} tags, but will be soon.
Variable | Supported Values | Usage |
---|---|---|
name | Name if different from pagename | |
alias# | Any names besides the current one in use. | |
guild | ||
race | ||
gender | m/f | |
status | y/n/u | To be compatable with previous versions, "y" means alive, "n" means dead, and "u" means unknown. |
location | location name OR n |
Where the NPC is found, or "n" if not applicable. |
map | number | Which map the NPC can be found on. |
type# | Any special status they have. | |
assoc# | name | Any associates of note. |
relat# | name | Any relatives. |
{{NPC |name= |alias= |alias2= |alias3= |alias4= |alias5= |guild= |race= |gender= |status= |location= |map= |type= |type2= |type3= |type4= |type5= |assoc= |assoc2= |assoc3= |assoc4= |assoc5= |relat= |relat2= |relat3= |relat4= |relat5= }}