Template:Npcbox: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Npcbox/styles.css" />{{# | <includeonly><templatestyles src="Npcbox/styles.css" />{{#cargo_store: | ||
_table=NPCs | _table=NPCs | ||
|Name= | |Name={{{name|{{PAGENAME}}}}} | ||
|Faction= | |Faction={{{faction|}}} | ||
|Sex= | |Sex={{{sex|}}} | ||
|Race= | |Race={{#if:{{{race|}}}|[[{{{race}}}]]}} | ||
|Creature_type= | |Creature_type={{{creature|}}} | ||
|Level= | |Level={{{level|}}} | ||
|Class= | |Class={{#if:{{{class|}}}|[[{{{class}}}]]}} | ||
|Affiliation= | |Affiliation={{{affiliation|}}} | ||
|Former_affiliation= | |Former_affiliation={{{faffiliation|}}} | ||
|Occupation= | |Occupation={{{occupation|}}} | ||
|Former_occupation= | |Former_occupation={{{foccupation|}}} | ||
|Profession= | |Profession={{{profession|}}} | ||
|Current_location= | |Current_location={{{location|}}} | ||
|Status= | |Status={{{status|}}} | ||
|Source= | |Source={{{source|}}} | ||
}}<table class="npcbox"> | }}<table class="npcbox"> | ||
<tr> | <tr> | ||
| Line 22: | Line 22: | ||
-->{{#if:{{{image|}}}|<tr><td colspan="2" class="npcbox-image">[[File:{{{image}}}|200px|center|{{{name|{{PAGENAME}}}}}]]</td></tr>}}<!-- | -->{{#if:{{{image|}}}|<tr><td colspan="2" class="npcbox-image">[[File:{{{image}}}|200px|center|{{{name|{{PAGENAME}}}}}]]</td></tr>}}<!-- | ||
-->{{#if:{{{sex|}}}|<tr><th>Sex</th><td>{{{sex}}}</td></tr>}}<!-- | -->{{#if:{{{sex|}}}|<tr><th>Sex</th><td>{{{sex}}}</td></tr>}}<!-- | ||
-->{{#if:{{{race|}}}|<tr><th>Race</th><td>{{{race}}}</td></tr>}}<!-- | -->{{#if:{{{race|}}}|<tr><th>Race</th><td>[[{{{race}}}]]</td></tr>}}<!-- | ||
-->{{#if:{{{creature|}}}|<tr><th>Creature type</th><td>{{{creature}}}</td></tr>}}<!-- | -->{{#if:{{{creature|}}}|<tr><th>Creature type</th><td>{{{creature}}}</td></tr>}}<!-- | ||
-->{{#if:{{{level|}}}|<tr><th>Level</th><td>{{{level}}}</td></tr>}}<!-- | -->{{#if:{{{level|}}}|<tr><th>Level</th><td>{{{level}}}</td></tr>}}<!-- | ||
-->{{#if:{{{class|}}}|<tr><th>Class</th><td>{{{class}}}</td></tr>}}<!-- | -->{{#if:{{{class|}}}|<tr><th>Class</th><td>[[{{{class}}}]]</td></tr>}}<!-- | ||
-->{{#if:{{{affiliation|}}}|<tr><th>Affiliation(s)</th><td>{{{affiliation}}}</td></tr>}}<!-- | -->{{#if:{{{affiliation|}}}|<tr><th>Affiliation(s)</th><td>{{{affiliation}}}</td></tr>}}<!-- | ||
-->{{#if:{{{faffiliation|}}}|<tr><th>Former affiliation(s)</th><td>{{{faffiliation}}}</td></tr>}}<!-- | -->{{#if:{{{faffiliation|}}}|<tr><th>Former affiliation(s)</th><td>{{{faffiliation}}}</td></tr>}}<!-- | ||
| Line 44: | Line 44: | ||
|Faction=String | |Faction=String | ||
|Sex=String | |Sex=String | ||
|Race= | |Race=Wikitext string | ||
|Creature_type= | |Creature_type=Wikitext string | ||
|Level=String | |Level=String | ||
|Class= | |Class=Wikitext string | ||
|Affiliation= | |Affiliation=Wikitext string | ||
|Former_affiliation= | |Former_affiliation=Wikitext string | ||
|Occupation= | |Occupation=Wikitext string | ||
|Former_occupation= | |Former_occupation=Wikitext string | ||
|Profession= | |Profession=Wikitext string | ||
|Current_location= | |Current_location=Wikitext string | ||
|Status=String | |Status=String | ||
|Source= | |Source=Wikitext string | ||
}} | }} | ||
Latest revision as of 12:31 AM, September 12, 2026
This template defines the table "NPCs". View table.
{{Npcbox
|name =
|faction =
|image =
|title =
|sex =
|race =
|creature =
|level =
|class =
|affiliation =
|faffiliation =
|occupation =
|foccupation =
|profession =
|location =
|status =
|relatives =
|mentors =
|students =
|companions =
|source =
}}
Any parameter can be dropped.
faction is used to display an icon beside the name. It must take one of the following variables or none at all:
alliancefor Alliance of Lordaeronhordefor Hordeashenfor Ashen Covenantguardiansfor Guardians of Hyjalneutralfor neutral partiescombatfor general enemies, such as wild animals or typically violent opponentsscourgefor Scourge
image takes a file name directly for display.
title appears directly under the character name.
creature is for an in-game classification, such as Humanoid, Beast, Demon, Mechanical, etc.
level is for an in-game character level in a numeric value, but it can accept any value ultimately.
affiliation is a character's direct loyalty, such as the Undercity for Forsaken. faffiliation is any former affiliations.
occupation is a character's job. foccupation is any former occupation.
profession is a character's particular skillset, such as leatherworking or blacksmithing.
location is the current location of the character.
status is whether a character is alive, dead, missing, etc.
relatives, mentors, and students are self-explanatory.
companions might be friends, tamed animals, etc.
source is where this character appears within the overall lore. This might perhaps just be "Personal lore" for new characters.