Template:NPC: Difference between revisions

From HorizonXI Wiki
mNo edit summary
Tag: Manual revert
(added categorization by race, type and location)
Line 1: Line 1:
<onlyinclude><includeonly>__NOTOC__<!--
<onlyinclude><includeonly>__NOTOC__<!--
-->{{categorize|{{{1|}}}|<!--
-->{{categorize|{{{1|}}}|[[Category:NPCs]]}}<!--
-->[[Category:NPCs]]<!--
-->{{#if:{{{race|}}}|{{categorize{{{1|}}}|[[Category:{{{race}}} NPCs]]}}|}}<!--
-->}}<!--
 
if type then: if the entry starts with [[ then: categorize by removing the first two and last two characters (the [[ and ]] )). else categorize by entry (nothing to remove). else nothing.
-->{{#if:{{{type|}}}|{{#if:{{#sub:{{{type}}}|0|2}}|[[|{{categorize{{{1|}}}|[[Category:{{#explode|{{{type}}}|2|-2}}s]]}}|{{categorize{{{1|}}}|[[Category:{{{type}}}s]]}}}}|}}<!--  
 
if location is given then: if the entry starts with {{location then: categorize by that location. else nothing. else nothing.
-->{{#if:{{{location|}}}|<!--
  -->{{#if:{{#sub:{{#lc:{{{location}}}}}|2|10}}|location|<!--
    -->{{categorize{{{1|}}}|[[Category:{{#explode:{{{location}}}|{{!}}|1}} NPCs]]}}
<!--
  -->|}}<!--
-->|}}<!--


-->{{Infobox NPC|{{{1|}}}|image = {{{image|}}}|name = {{{name|}}}|gender = {{{gender|}}}| race = {{{race|}}}| bestiary = {{{bestiary|}}}| job = {{{job|}}}| affiliation = {{{affiliation|}}}| occupation = {{{occupation|}}}| status = {{{status|}}}| relatives = {{{relatives|}}}}}<!--
-->{{Infobox NPC|{{{1|}}}|image = {{{image|}}}|name = {{{name|}}}|gender = {{{gender|}}}| race = {{{race|}}}| bestiary = {{{bestiary|}}}| job = {{{job|}}}| affiliation = {{{affiliation|}}}| occupation = {{{occupation|}}}| status = {{{status|}}}| relatives = {{{relatives|}}}}}<!--
Line 9: Line 19:
--><div style="display:table-row"><!--
--><div style="display:table-row"><!--
--><b style="display:table-cell; padding-right:0.5em;">Type:</b><!--
--><b style="display:table-cell; padding-right:0.5em;">Type:</b><!--
--><div style="display:table-cell;">{{default|{{{type|}}}|[[NPC]]}}</div><!--
--><div style="display:table-cell;">{{#if:{{{type|}}}|<!--
-->{{#if:{{#sub:{{{type}}}|0|2}}|[[|{{{type}}}|[[{{{type}}}]]}}<!--
-->|[[NPC]]}}</div><!--
--></div><!--
--></div><!--
--><div style="display:table-row"><!--
--><div style="display:table-row"><!--
Line 76: Line 88:
This template is designed to be used on [[NPC]] pages to display various information about the NPC and uses [[Template:Infobox NPC]] to display an infobox on the side.
This template is designed to be used on [[NPC]] pages to display various information about the NPC and uses [[Template:Infobox NPC]] to display an infobox on the side.
*'''image''', '''name''', '''gender''', '''race''', '''bestiary''', '''job''', '''affiliation''', '''occupation''', '''status''', '''relatives:''' See [[Template:Infobox NPC]].
*'''image''', '''name''', '''gender''', '''race''', '''bestiary''', '''job''', '''affiliation''', '''occupation''', '''status''', '''relatives:''' See [[Template:Infobox NPC]].
*'''type:''' The NPC's type, such as [[Map Vendor]] or [[Standard Merchant]].
*'''type:''' The NPC's type, such as [[Map Vendor]] or [[Standard Merchant]].  
*'''location:''' Area and position where they are found. See [[Template:Location]].
*'''location:''' Area and position where they are found. See [[Template:Location]].
*'''description:''' A short, free-form description of the NPC.
*'''description:''' A short, free-form description of the NPC.

Revision as of 23:49, 7 September 2023

Usage

{{NPC
| image = 
| name = 
| gender = 
| race = 
| bestiary = 
| job = 
| affiliation = 
| occupation = 
| status = 
| relatives = 
| type = 
| location = 
| description = 
| starts quests = 
| starts missions = 
| involved in quests = 
| involved in missions = 
| involved in events = 
| quote = 
| dialogue = 
| notes = 
| historical background = 
}}

This template is designed to be used on NPC pages to display various information about the NPC and uses Template:Infobox NPC to display an infobox on the side.

  • image, name, gender, race, bestiary, job, affiliation, occupation, status, relatives: See Template:Infobox NPC.
  • type: The NPC's type, such as Map Vendor or Standard Merchant.
  • location: Area and position where they are found. See Template:Location.
  • description: A short, free-form description of the NPC.
  • starts quests: A list of quests that the NPC starts.
  • starts missions: A list of missions that the NPC starts.
  • involved in quests: A list of quests that the NPC is involved in.
  • involved in missions: A list of missions that the NPC is involved in.
  • involved in events: A list of special events that the NPC is involved in.
  • quote: A quote from the NPC.
  • dialogue: Dialogue options available from the NPC.
  • notes: Any additional notes about this NPC that are not covered in other sections.
  • historical background: Any background information that is relevant to this NPC, such as myths, legends, or pop culture that may have inspired aspects of this NPC.

Example

{{NPC
| image = Trion.JPG
| name = Trion
| gender = Male
| race = Elvaan
| job = [[Paladin]]
| affiliation = San d'Oria
| occupation = Prince Royal
| type = 
| location = Cutscenes, [[Chateau d'Oraguille]] (H-7)
| starts missions = 
| starts quests = 
| involved in missions =
*[[Infiltrate Davoi|San d'Oria Mission 3-1: Infiltrate Davoi]]
*[[The Shadow Lord|San d'Oria Mission 5-2: The Shadow Lord]]
*[[Ranperre's Final Rest|San d'Oria Mission 6-2: Ranperre's Final Rest]]
*[[The Heir to the Light|San d'Oria Mission 9-2: The Heir to the Light]]
*[[Aht Urhgan Mission 4: Knight of Gold]]
*[[Aht Urhgan Mission 7: Westerly Winds]]
*[[Aht Urhgan Mission 39: Allied Rumblings]]
*[[Aht Urhgan Mission 40: Unraveling Reason]]
*[[A Crystalline Prophecy (Mission)]]
| involved in quests = 
*[[Under Oath]]
*[[Lure of the Wildcat (San d'Oria)]]
*[[Trust: Trion]]
| description =  
Trion is the eldest son of [[King Destin]]. He and his brother [[Pieuje]] are fierce rivals, and disagree on almost everything. His sister is [[Claidie]].
| quote = This is a placeholder quote.
| dialogue =
This is placeholder text to illustrate how the dialogue section looks.
| notes =
Trion fights alongside the party in the battle for [[San d'Oria Mission 9-2]].
| historical background =
This is placeholder text to illustrate how the historical background section looks.
}}
Template:Categorizenc{{#if:|{{#if:|[[|Template:Categorizenc|Template:Categorizenc}}|}}location
Trion
Gender: Male
Race: Elvaan
Bestiary: [[:Category: NPCs|]]
Job: Paladin
Affiliation: San d'Oria
Occupation: Prince Royal
Status:
Relatives:
Type:
{{#if:|{{#if:|[[||[[]]}}|NPC}}
Location:
Cutscenes, Chateau d'Oraguille (H-7)
Trion is the eldest son of King Destin. He and his brother Pieuje are fierce rivals, and disagree on almost everything. His sister is Claidie.

Dialogue

This is a placeholder quote.

This is placeholder text to illustrate how the dialogue section looks.

Notes

Trion fights alongside the party in the battle for San d'Oria Mission 9-2.

Involved in Missions

Involved in Quests

Historical Background

This is placeholder text to illustrate how the historical background section looks.