Template:NPC: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 14: Line 14:
|'''Gender:'''||{{#switch:{{lc:{{{gender}}}}}|-=NA|m|male=Male|f|female=Female|''Unknown''<includeonly>[[missing::Infobox entry for gender| ]]</includeonly>}}
|'''Gender:'''||{{#switch:{{lc:{{{gender}}}}}|-=NA|m|male=Male|f|female=Female|''Unknown''<includeonly>[[missing::Infobox entry for gender| ]]</includeonly>}}
|-
|-
{{#switch:{{lc:{{{location}}}}}|n|-=|{{#if:{{#switch:{{lc:{{{status}}}}}|n|no=1}}{{#switch:{{lc:{{{alive}}}}}|n|no=1}}| |{{!}}'''Location:'''{{!}}{{!}}{{#If:{{{location|}}}|[[{{{location}}}]]{{#if:{{#show: [[{{{location}}}]] | ?Found in}} | {{#ask: [[{{{location}}}]]|mainlabel=-|link=none|?Found in|format=template|template=Template:FoundIn}}|}} {{#if:{{{map|}}}|{{#switch:{{{map}}}|-=|([[found on map::RanikMap{{{map}}}|Ranik Map {{{map}}}]]{{#if:{{#show: [[RanikMap{{{map}}}]] | ?Found in}} | {{#ask: [[RanikMap{{{map}}}]]|mainlabel=-|link=none|?Found in|format=template|template=Template:FoundIn}}|}})}}|<includeonly>[[missing::Infobox entry for map location| ]]</includeonly>}}|<includeonly>[[missing::Infobox entry for location|''Unknown'']]</includeonly>}}}}}}}}
{{#switch:{{lc:{{{location}}}}}|n|-=|{{#if:{{#switch:{{lc:{{{status}}}}}|n|no=1}}{{#switch:{{lc:{{{alive}}}}}|n|no=1}}| |{{!}}'''Location:'''{{!}}{{!}}{{#If:{{{location|}}}|[[{{{location}}}]]{{#if:{{#show: [[{{{location}}}]] | ?Found in}} | {{#ask: [[{{{location}}}]]|mainlabel=-|link=none|?Found in|format=template|template=Template:FoundIn}}|}} {{#if:{{{map|}}}|{{#switch:{{{map}}}|-=|([[found on map::RanikMap{{{map}}}|Ranik Map {{{map}}}]]{{#if:{{#show: [[RanikMap{{{map}}}]] | ?Found in}} | {{#ask: [[RanikMap{{{map}}}]]|mainlabel=-|link=none|?Found in|format=template|template=Template:FoundIn}}|}})}}|<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|}}}|, [[{{{type3}}}]]}}{{#If:{{{type4|}}}|, [[{{{type4}}}]]}}{{#If:{{{type5|}}}|, [[{{{type5}}}]]}}}}}}
{{#if:{{{type|}}}|{{#ifeq:{{{type}}}|-||{{!}}'''Type:'''{{!}}{{!}}{{{type}}}{{#If:{{{type2|}}}|, {{{type2}}}}}{{#If:{{{type3|}}}|, [[{{{type3}}}]]}}{{#If:{{{type4|}}}|, [[{{{type4}}}]]}}{{#If:{{{type5|}}}|, [[{{{type5}}}]]}}}}}}

Revision as of 18:23, 26 February 2009

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
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, and "u" means unknown.
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.
{{NPC
|name=
|alias=
|alias2=
|alias3=
|alias4=
|alias5=
|guild=
|race=
|gender=
|status=
|location=
|map=
|type=
|type2=
|type3=
|type4=
|type5=
|assoc=
|relat=
}}