Template:NPC: Difference between revisions
Jump to navigation
Jump to search
(Location hiding if listed as deceased) |
(modified alias field to disappear when there's no info) |
||
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|}}}|{{!}}'''Aliases:'''{{!}}{{!}}{{#if:{{{alias|}}}|{{{alias}}}|''Unknown''}}{{#if:{{{alias2|}}}|, {{{alias2}}}}}{{#if:{{{alias3|}}}|, {{{alias3}}}}}{{#if:{{{alias4|}}}|, {{{alias4}}}}}{{#if:{{{alias5|}}}|, {{{alias5}}}}}}} |
||
|- |
|- |
||
{{#ifeq:{{lc:{{{guild}}}}}|n| |{{!}}'''Guild:'''{{!}}{{!}}{{#if:{{{guild|}}}|[[{{{guild}}}]]|''Unknown''}}}} |
{{#ifeq:{{lc:{{{guild}}}}}|n| |{{!}}'''Guild:'''{{!}}{{!}}{{#if:{{{guild|}}}|[[{{{guild}}}]]|''Unknown''}}}} |
Revision as of 23:45, 8 June 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. |
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= |type= |type2= |type3= |type4= |type5= |assoc= |assoc2= |assoc3= |assoc4= |assoc5= |relat= |relat2= |relat3= |relat4= |relat5= }}