Template:NPC: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (bug fixes) |
||
| Line 3: | Line 3: | ||
! colspan="2" style="font-size:150%"|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} |
! colspan="2" style="font-size:150%"|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} |
||
|- |
|- |
||
|width="15%"|''' |
|width="15%"|'''Status:'''||{{#switch:{{lc:{{{alive}}}}}|y|yes=Alive|n|no=Dead|u=Unknown|''Unknown''}} |
||
|- |
|- |
||
| ⚫ | |||
{{#ifeq:{{lc:{{{alias}}}}}|n|| |
|||
| ⚫ | |||
|- |
|- |
||
{{#ifeq:{{lc:{{{guild}}}}}|n|| |
{{#ifeq:{{lc:{{{guild}}}}}|n||{{!}}'''Guild:'''{{!}}{{!}}{{#if:{{{guild|}}}|[[{{{guild}}} guild]]|''Unknown''}}}} |
||
|'''Guild:'''||{{#if:{{{guild|}}}|[[{{{guild}}} guild]]|''Unknown''}}}} |
|||
|- |
|- |
||
|'''Race:'''||{{#If:{{{race|}}}|{{{race}}}|''Unknown''}} |
|'''Race:'''||{{#If:{{{race|}}}|{{{race}}}|''Unknown''}} |
||
| Line 15: | Line 13: | ||
|'''Gender:'''||{{#switch:{{lc:{{{gender}}}}}|m|male=Male|f|female=Female|''Unknown''}} |
|'''Gender:'''||{{#switch:{{lc:{{{gender}}}}}|m|male=Male|f|female=Female|''Unknown''}} |
||
|- |
|- |
||
|''' |
{{#ifeq:{{lc:{{{location}}}}}|n||{{!}}'''Location:'''{{!}}{{!}}{{#If:{{{location|}}}|[[{{{location}}}]]|''Unknown''}}}} |
||
|- |
|||
|- {{#ifeq:{{lc:{{{location}}}|n|| |
|||
{{!}}''' |
{{#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}}}]]}}}} |
|||
|- {{#if:{{{assoc|}}}| |
|- {{#if:{{{assoc|}}}| |
||
{{!}}'''Associates:'''{{!}}{{!}}[[{{{assoc}}}]]{{#If:{{{assoc2|}}}|, [[{{{assoc2}}}]]}}{{#If:{{{assoc3|}}}|, [[{{{assoc3}}}]]}}{{#If:{{{assoc4|}}}|, [[{{{assoc4}}}]]}}{{#If:{{{assoc5|}}}|, [[{{{assoc5}}}]]}}}} |
{{!}}'''Associates:'''{{!}}{{!}}[[{{{assoc}}}]]{{#If:{{{assoc2|}}}|, [[{{{assoc2}}}]]}}{{#If:{{{assoc3|}}}|, [[{{{assoc3}}}]]}}{{#If:{{{assoc4|}}}|, [[{{{assoc4}}}]]}}{{#If:{{{assoc5|}}}|, [[{{{assoc5}}}]]}}}} |
||
| Line 32: | Line 28: | ||
!Variable!!Supported Values!!Usage |
!Variable!!Supported Values!!Usage |
||
|- |
|- |
||
|name|| ||Name if different from pagename |
|||
|name |
|||
|- |
|- |
||
|alias#|| ||Any names besides the current one in use. |
|alias#|| ||Any names besides the current one in use. |
||
Revision as of 00:10, 5 June 2008
| NPC | |
|---|---|
| Status: | Unknown |
| Aliases: | 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 category {{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=
}}