Template:NPC: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:{{#show:{{FULLPAGENAME}}|?missing}}|{{incomplete}}}}
{{#if:{{#show:{{FULLPAGENAME}}|?missing}}|{{incomplete}}|}}
{|class="wikitable" style="float:right; margin-left:1em;width:350px;"
{|class="wikitable" style="float:right; margin-left:1em;width:350px;"
|- style="height:40px"
|- style="height:40px"
! colspan="2" style="font-size:150%"|{{#if:{{{name|}}}|[[pretty name is::{{{name}}}]]|[[pretty name is::{{PAGENAME}}]]}}<includeonly>{{#if:{{{rev|}}}|[[review::{{{rev}}}| ]]|[[review::0| ]]}}</includeonly>
! colspan="2" style="font-size:150%"|{{#if:{{{image|}}}|[[{{{image}}}]]<br />}}{{#if:{{{name|}}}|[[pretty name is::{{{name}}}]]|[[pretty name is::{{PAGENAME}}]]}}<includeonly>{{#if:{{{rev|}}}|[[review::{{{rev}}}| ]]|[[review::0| ]]}}</includeonly>
|-
|-
|width="15%"|'''Status:'''||{{#switch:{{lc:{{{alive}}}}}|y|yes=[[status is::alive|Alive]]|n|no=[[status is::dead|Dead]]|u=[[status is::unknown|Unknown]]|h=[[status is::historical figure|Historical Figure]]}}{{#switch:{{lc:{{{status}}}}}|y|yes=[[status is::alive|Alive]]|n|no=[[status is::dead|Dead]]|u=[[status is::unknown|Unknown]]|h=[[status is::historical figure|Historical Figure]]}}{{#if:{{{alive|}}}{{{status|}}}||''Unknown''<includeonly>[[missing::Infobox entry for status| ]]</includeonly>}}
|width="15%"|'''{{#if:{{{pstatus|}}}|Prime|}} Status:'''||{{#switch:{{lc:{{{alive}}}}}|y|yes=[[status is::alive|Alive]]|n|no=[[status is::dead|Dead]]|u=[[status is::unknown|Unknown]]|h=[[status is::historical figure|Historical Figure]]}}{{#switch:{{lc:{{{status}}}}}|a|alive|y|yes=[[status is::alive|Alive]]|d|dead|n|no=[[status is::dead|Dead]]|u=[[status is::unknown|Unknown]]|h=[[status is::historical figure|Historical Figure]]}}{{#if:{{{alive|}}}{{{status|}}}||''Unknown''<includeonly>[[missing::Infobox entry for status| ]]</includeonly>}}
|-{{#if:{{{pstatus|}}}|
{{!}}width="15%"{{!}}'''Platinum Status:'''{{!}}{{!}}{{#switch:{{lc:{{{alive}}}}}|y|yes=[[status is::alive|Alive]]|n|no=[[status is::dead|Dead]]|u=[[status is::unknown|Unknown]]|h=[[status is::historical figure|Historical Figure]]}}{{#switch:{{lc:{{{status}}}}}|a|alive|y|yes=[[status is::alive|Alive]]|d|dead|n|no=[[status is::dead|Dead]]|u=[[status is::unknown|Unknown]]|h=[[status is::historical figure|Historical Figure]]}}|}}
|-
|-
{{#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''<includeonly>[[missing::Infobox entry for guild| ]]</includeonly>}}}}
{{#switch:{{lc:{{{guild}}}}}|n|-=|{{!}}'''Guild:'''{{!}}{{!}}{{#if:{{{guild|}}}|[[guild is::{{{guild}}}]]|''Unknown''<includeonly>[[missing::Infobox entry for guild| ]]</includeonly>}}}}
|-
|-
{{#switch:{{lc:{{{race}}}}}|n|-=|{{!}}{{!}}'''Race:'''{{!}}{{!}}{{#If:{{{race|}}}|{{#switch:{{{race}}}|u=[[race is::Unknown]]|[[race is::{{{race}}}]]}}|''Unknown''<includeonly>[[missing::Infobox entry for race| ]]</includeonly>}}}}
{{#switch:{{lc:{{{race}}}}}|n|-=|{{!}}{{!}}'''Race:'''{{!}}{{!}}{{#If:{{{race|}}}|{{#switch:{{{race}}}|u=[[race is::Unknown]]|[[race is::{{{race}}}]]}}|''Unknown''<includeonly>[[missing::Infobox entry for race| ]]</includeonly>}}}}
Line 24: Line 26:
|-
|-
{{#if:{{{task|}}}|{{!}}'''Tasks:'''{{!}}{{!}}{{#arraymap:{{{task}}}|,|@@@@|[[gives task type::@@@@]]}}}}
{{#if:{{{task|}}}|{{!}}'''Tasks:'''{{!}}{{!}}{{#arraymap:{{{task}}}|,|@@@@|[[gives task type::@@@@]]}}}}
|-
|}<includeonly>[[page type is::npc| ]][[rare source::true| ]]{{cat|NPCs}}{{#switch:{{lc:{{{guild}}}}}|n|-=|{{#if:{{{guild|}}}|{{cat|{{{guild}}}}}}}}}{{IfMatch
{{#if: {{{toc|}}} | {{#switch:{{{toc}}}|y|yes|t|true|1={{!}} colspan="2" {{!}} __TOC__ | __NOTOC__ }} | }}
|}<includeonly>[[page type is::npc| ]][[rare source::true| ]]{{cat|NPCs}}{{#switch:{{lc:{{{guild}}}}}|n|-=|thief={{cat|Thieves}}|{{#if:{{{guild|}}}|{{cat|{{{guild}}}s}}}}}}{{IfMatch
|author
|author
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{Cat|Author}}}}{{IfMatch
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{Cat|Author}}}}{{IfMatch
Line 40: Line 44:
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Merchant}}}}{{IfMatch
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Merchant}}}}{{IfMatch
|pirate|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Pirates}}}}{{IfMatch
|pirate|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Pirates}}}}{{IfMatch
|political
|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{Cat|Political}}}}{{IfMatch
|ship captain|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Ship Captain}}}}{{IfMatch
|ship captain|{{{type}}}{{{type2}}}{{{type3}}}{{{type4}}}{{{type5}}}|true={{cat|Ship Captain}}}}{{IfMatch
|shopowner
|shopowner
Line 69: Line 75:
|gender||m/f/-||Use "-" if there's no discernable gender.
|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, "u" means unknown, and "h" means a historical figure.
|status||y/n/u/h||To be compatable with previous versions, "y" means alive, "n" means dead, "u" means unknown, and "h" means a historical figure.
|-
|pstatus||y/n/u/h||See above, but for the [[DragonRealms Platinum|Platinum instance]].
|-
|-
|location|| ranik map link{{!}}location name<br/>OR<br/>-|| Where the NPC is found, or "-" if not applicable.
|location|| ranik map link{{!}}location name<br/>OR<br/>-|| Where the NPC is found, or "-" if not applicable.

Latest revision as of 19:02, 20 November 2022

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 <race>/u Use "u" if the race information is not given, but other information is.
gender m/f/- Use "-" if there's no discernable gender.
status y/n/u/h To be compatable with previous versions, "y" means alive, "n" means dead, "u" means unknown, and "h" means a historical figure.
pstatus y/n/u/h See above, but for the Platinum instance.
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.
task craft,delivery,kill,kill boss,kill recovery,
forage,recover,recover area,search,skinning
What tasks the NPC gives. See Property:Gives task type for details.
{{NPC
|name=
|alias=
|guild=
|race=
|gender=
|status=
|location=
|map=
|type=
|type2=
|type3=
|type4=
|type5=
|assoc=
|relat=
|task=
}}