Template:NPC: Difference between revisions
Jump to navigation
Jump to search
(updated to use arraymap for related to and associates) |
(added incomplete handling) |
||
| Line 1: | Line 1: | ||
{|class="wikitable" style="float:right; margin-left:1em;" |
{{#if:{{#show:{{FULLPAGENAME}}|?missing}}|{{incomplete}}}}{|class="wikitable" style="float:right; margin-left:1em;" |
||
|-style="height:40px" |
|-style="height:40px" |
||
! colspan="2" style="font-size:150%"|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} |
! colspan="2" style="font-size:150%"|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} |
||
|- |
|- |
||
|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''<includeonly>[[missing::Infobox entry for status| ]]</includeonly>}} |
||
|- |
|- |
||
{{#if:{{{alias|}}}|{{!}}'''Aliases:'''{{!}}{{!}}{{{alias}}}{{#if:{{{alias2|}}}|, {{{alias2}}}}}{{#if:{{{alias3|}}}|, {{{alias3}}}}}{{#if:{{{alias4|}}}|, {{{alias4}}}}}{{#if:{{{alias5|}}}|, {{{alias5}}}}}}} |
{{#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''}}}} |
{{#switch:{{lc:{{{guild}}}}}|n|-=|{{!}}'''Guild:'''{{!}}{{!}}{{#if:{{{guild|}}}|[[guild is::{{lc:{{{guild}}}}}|{{{guild}}}]]|''Unknown''<includeonly>[[missing::Infobox entry for guild| ]]</includeonly>}}}} |
||
|- |
|- |
||
|'''Race:'''||{{#If:{{{race|}}}|[[race is::{{{race}}}]]|''Unknown''}} |
|'''Race:'''||{{#If:{{{race|}}}|[[race is::{{{race}}}]]|''Unknown''<includeonly>[[missing::Infobox entry for race| ]]</includeonly>}} |
||
|- |
|- |
||
|'''Gender:'''||{{#switch:{{lc:{{{gender}}}}}|-=NA|m|male=Male|f|female=Female|''Unknown''}} |
|'''Gender:'''||{{#switch:{{lc:{{{gender}}}}}|-=NA|m|male=Male|f|female=Female|''Unknown''<includeonly>[[missing::Infobox entry for gender| ]]</includeonly>}} |
||
|- |
|- |
||
{{#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''}}}}}}}} |
{{#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}}}]])|<includeonly>[[missing::Infobox entry for map location| ]]</includeonly>}}|''Unknown''<includeonly>[[missing::Infobox entry for location| ]]</includeonly>}}}}}}}} |
||
|- |
|- |
||
{{#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 15:12, 12 January 2009
| 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 | -/(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=
|assoc2=
|assoc3=
|assoc4=
|assoc5=
|relat=
|relat2=
|relat3=
|relat4=
|relat5=
}}