Template:NPC: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (bug fix)
(added rmap function)
Line 13: 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||{{#ifeq:{{lc:{{{status}}}}}|n||{{#ifeq:{{lc:{{{alive}}}}}|n||{{!}}'''Location:'''{{!}}{{!}}{{#If:{{{location|}}}|[[{{{location}}}]]|''Unknown''}}}}}}}}
{{#ifeq:{{lc:{{{location}}}}}|n||{{#ifeq:{{lc:{{{status}}}}}|n||{{#ifeq:{{lc:{{{alive}}}}}|n||{{!}}'''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}}}]]}}}}

Revision as of 00:26, 26 October 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=
}}