Template:NPC: Difference between revisions

From HorizonXI Wiki
(changed display of type to convert string into link to category and removed unnecessary "default" template)
(changes to custom content parameters and categorization)
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly>__NOTOC__<!--
<onlyinclude><includeonly>__NOTOC__<!--
Cheat sheet that is only visible during preview
-->{{#switch:{{{1|}}}|bp|boilerplate={{Preview Only Infobox|<pre>{{NPC
| image =
| name =
| gender =
| race =
| bestiary =
| job =
| affiliation =
| occupation =
| status =
| relatives =
| type =
| type add =
| merchant region =
| location =
| location add =
| description =
| starts quests =
| starts missions =
| involved in quests =
| involved in missions =
| involved in events =
| quote =
| dialogue =
| notes =
| historical background =
| custom content =
}}
</pre>|disable={{{1|}}}}}<!--
-->|#default={{Preview Only Infobox|<pre>{{NPC
| image = {Use the file name e.g. Imagename.png}
| name = {Defaults to the page's name if blank}
| gender = {"Male," "Female," "Unknown" or "Not applicable"}
| race = {Any of the 5 races eg. "Elvaan". Automatically categorizes}
| bestiary = {Bestiary classification eg. Goblin. Automatically categorizes}
| job = {NPC's job if applicable, eg. [[Black Mage]]}
| affiliation = {The NPC's national affiliation, eg. "San d'Oria"}
| occupation = {The NPC's occupation, role, or position in society}
| status = {If applicable, "Alive", "Undead", "Active", "Imprisoned," "Deceased" or "Unknown"}
| relatives = {The names of any eg [[Maat]]}
| type = {NPC type eg. Map Vendor or Standard Merchant. Defaults to "NPC" if left blank. Auto-categorizes}
| type add = {Any addition to type. Can be linked via [[name]]}
| merchant region = {for regional merchants, which region do they sell goods from}
| location = {Area and position where they are found. See Template:Location for further information}
| location add = {additional information about location, e.g. ingame name}
| description = {A short, free-form description of the NPC}
| starts quests = {Use bullets and line-breaks between eacn entry eg. * [[Quest Name]]}
| starts missions = {Use bullets and line-breaks between eacn entry eg. * [[Mission Name]]}
| involved in quests = {Use bullets and line-breaks between eacn entry eg. * [[Quest Name]]}
| involved in missions = {Use bullets and line-breaks between eacn entry eg. * [[Mission Name]]}
| involved in events = {Use bullets and line-breaks between eacn entry eg. * [[Sunbreeze Festival]]}
| quote = {A "quote" from the NPC}
| dialogue = {Mimics quote parameter but on the line below}
| notes = {Any additional notes not already covered}
| historical background = {Eg. Myths, legends, pop culture relating to the NPC}
| custom content = {categorizes as such if set to yes}
}}
</pre>|disable={{{1|}}}}}}}<!--
-->{{categorize|{{{1|}}}|<!--
-->{{categorize|{{{1|}}}|<!--
-->[[Category:NPCs]]<!--
-->[[Category:NPCs]]<!--
-->{{#if:{{{type|}}}|[[Category:{{{type}}}s]]|}}<!--
-->{{Categorize Location|location={{{location}}}|category type=NPCs}}<!--
-->{{#if:{{{race|}}}|[[Category:{{{race}}} NPCs]]|}}<!--
-->{{#if:{{{affiliation|}}}|{{Categorize Location|location={{{affiliation}}}|category type=NPCs}}|}}<!--
-->{{#if:{{{bestiary|}}}|[[Category:{{{bestiary}}} NPCs]]}}<!--
-->{{#if:{{#pos:{{lc:{{{occupation}}}}}|scroll merchant}}|[[Category:Scroll Merchants]]|}}<!--
 
if custom content is true then categorize as such
-->{{#if:{{{custom content|}}}|{{#switch:{{lc:{{{custom content}}}}}
| y | yes | true = [[Category:HorizonXI Custom Content/NPCs]][[Category:HorizonXI Custom Content]]
|#default=
}}|}}<!--
-->}}<!--
-->}}<!--


-->{{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|}}}| imagewidth = {{{imagewidth|}}} | imageheight = {{{imageheight|}}}| float= {{{float|}}}}}<!--


--><div style="display:table; margin-bottom:1em;"><!--
--><div style="display:table; margin-bottom:1em;"><!--
--><div style="display:table-row"><!--
--><b style="display:table-cell; padding-right:0.5em;">Name:</b><!--
--><div style="display:table-cell;">{{#if:{{{name|}}}|<!--
If name field is given, then: if name is equal to pagename then just put the name, otherwise...
-->{{#ifeq:{{{name}}}|{{PAGENAME}}|{{{name}}}|<!--
... check if the name exists as a page. If so, put a link, if not, put the name in plain font.
-->{{#ifexist:{{{name}}}|[[{{{name}}}]]|{{{name}}}}}}}|<!--
else (if the name field isnt given) then put the pagename. there is nothing else to put.
-->{{PAGENAME}}}}</div><!--
--></div><!--
--><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;">{{#if:{{{type|}}}|[[:category:{{{type}}}s{{!}}{{{type}}}]]|[[NPC]]}}</div><!--
--><div style="display:table-cell;">{{#if:{{{type|}}}|{{#ifexist: {{{type}}}|{{categorize|{{{1|}}}|[[Category:{{Plural|{{{type}}}}}]]}}[[{{{type}}}]]{{#if:{{{merchant region|}}}|<nowiki> </nowiki>([[{{{merchant region}}}|{{{merchant region}}} Region]])|}}{{#if:{{{type add|}}}|, <span style="white-space: nowrap;">{{{type add|}}}</span>|}}|{{{type}}}{{#if:{{{type add|}}}|, <span style="white-space: nowrap;">{{{type add|}}}</span>|}}}}|[[NPC]]}}<!--{{default|{{{type|}}}|[[NPC]]}}--></div><!--
--></div><!--
--></div><!--
--><div style="display:table-row"><!--
--><div style="display:table-row"><!--
--><b style="display:table-cell; padding-right:0.5em;">Location:</b><!--
--><b style="display:table-cell; padding-right:0.5em;">Location:</b><!--
--><div style="display:table-cell;">{{#if:{{{location|}}}|{{{location}}}|{{Information Needed|nc}}}}</div><!--
--><div style="display:table-cell;">{{default|{{{location|}}}|{{Information Needed|{{{1|}}}}}}}{{#if:{{{location add|}}}|, <span style="white-space: nowrap;">{{{location add}}}</span>}}</div><!--
--></div><!--
--></div><!--
--></div><!--
--></div><!--
Line 28: Line 109:
{{{notes}}}
{{{notes}}}
</div>}}<!--
</div>}}<!--
-->{{#if:{{{merchant region|}}}|<h3>Regional Merchant</h3><div>
''Only sells items when [[{{{affiliation|}}}]] has control of [[{{{merchant region}}}]].''
</div>}}<!--
-->{{#ifeq:{{lc:{{{type}}}}}|outpost merchant|{{:Outpost_Merchants/Infotext|name={{{name}}}}}|}}<!--
-->{{#if:{{{starts missions|}}}|<h3>Starts Missions</h3><div>
-->{{#if:{{{starts missions|}}}|<h3>Starts Missions</h3><div>
{{{starts missions}}}
{{{starts missions}}}
Line 46: Line 131:
{{{historical background}}}
{{{historical background}}}
</div>}}<!--
</div>}}<!--
-->{{#ifexist::Category:{{ucfirst:{{{merchant region}}}}}/Regional Goods|<br><h3>Sells {{EditButton|Category:{{{merchant region}}}/Regional Goods|css-styles=display: inline; vertical-align: middle;}}</h3><div>{{:Category:{{{merchant region}}}/Regional Goods}}</div>|}}<!--
-->{{#ifeq: {{lc:{{{type}}}}} | outpost merchant |<h3>Sells</h3><div>{{:Category:Outpost_Merchants/Goods}} | }}</div><!--
--></includeonly></onlyinclude>
--></includeonly></onlyinclude>
[[Category:Templates|{{PAGENAMEE}}]]
[[Category:Templates|{{PAGENAMEE}}]]
==Usage==
==Usage==
===Code===
<pre>
<pre>
{{NPC
{{NPC
Line 54: Line 142:
| name =  
| name =  
| gender =  
| gender =  
| race =  
| race =
| bestiary =  
| bestiary =  
| job =  
| job =  
Line 62: Line 150:
| relatives =  
| relatives =  
| type =  
| type =  
| location =  
| type add =
| merchant region =
| location =
| description =  
| description =  
| starts quests =  
| starts quests =  
Line 69: Line 159:
| involved in missions =  
| involved in missions =  
| involved in events =  
| involved in events =  
| quote =  
| quote =
| dialogue =  
| dialogue =  
| notes =  
| notes =  
| historical background =  
| historical background =  
| custom content =
}}
}}
</pre>
</pre>
===Documentation===
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.
{{Preview_Only_Infobox/Documentation}}
*'''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.
*'''type add:''' Any addition to type
*'''merchant region:''' If a regional merchant, this is the region the merchant sells wares from. e.g. Aragoneu, Gustaberg, Kuzotz, ...
*'''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.
Line 89: Line 186:
*'''notes:''' Any additional notes about this NPC that are not covered in other sections.
*'''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.
*'''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.
*'''custom content:''' If set to yes/y/true, then the NPC will be categorized as [[:Category:HorizonXI Custom Content]] and [[:Category:HorizonXI Custom Content/NPCs]].


===Example===
===Example 1===
{|border="1" width="100%"
|-
|
<pre>
<pre>
{{NPC
{{NPC
Line 104: Line 199:
| occupation = Prince Royal
| occupation = Prince Royal
| type =  
| type =  
| type add =
| location = Cutscenes, [[Chateau d'Oraguille]] (H-7)
| location = Cutscenes, [[Chateau d'Oraguille]] (H-7)
| starts missions =  
| starts missions =  
Line 132: Line 228:
}}
}}
</pre>
</pre>
|-
{| border=4px
|
|
{{{{FULLPAGENAME}}|nc
{{NPC|ncnd
| image = Trion.JPG
| image = Trion.JPG
| name = Trion
| name = Trion
Line 142: Line 238:
| affiliation = San d'Oria
| affiliation = San d'Oria
| occupation = Prince Royal
| occupation = Prince Royal
| type =
| type =
| type add =
| location = Cutscenes, [[Chateau d'Oraguille]] (H-7)
| location = Cutscenes, [[Chateau d'Oraguille]] (H-7)
| starts missions =  
| starts missions =  
Line 169: Line 266:
| historical background =
| historical background =
This is placeholder text to illustrate how the historical background section looks.
This is placeholder text to illustrate how the historical background section looks.
}}
|}
===Example 2===
<pre>
{{NPC
| image = Hortense.png
| name = Hortense
| gender = Female
| race = Hume
| bestiary =
| job =
| affiliation = Bastok
| occupation =
| status =
| type = Standard Merchant
| type add =
| location = {{Location|Bastok Markets|K-10}}, in Harmodios's Music Shop
| starts missions =
| starts quests =
| involved in missions =
| involved in quests =
| notes = 
| historicalbackground = 
}}</pre>
{| border=4px
|
{{NPC|ncnd
| image = Hortense.png
| name = Hortense
| gender = Female
| race = Hume
| bestiary =
| job =
| affiliation = Bastok
| occupation =
| status =
| type = Standard Merchant
| type add =
| location = {{Location|Bastok Markets|K-10}}, in Harmodios's Music Shop
| starts missions =
| starts quests =
| involved in missions =
| involved in quests =
| notes = 
| historicalbackground = 
}}
|}
===Example 3===
<pre>
{{NPC
|image=Aroro.png
|name=Aroro
|gender=Female
|race=Tarutaru
|affiliation=Windurst
|type=Standard Merchant
|type add=
|location={{Location|Port Windurst|H-8}}, in [[Kususu's Hoodoos]]
|dialogue="Buy some hocus-pocus from us at Kususu's Hoodoos! I'll give you a smiley charm from me, Aroro, for free! C'mon... How about it then?"}}
</pre>
{| border=4px
|
{{NPC|ncnd
|image=Aroro.png
|name=Aroro
|gender=Female
|race=Tarutaru
|affiliation=Windurst
|type=Standard Merchant
|type add =
|location={{Location|Port Windurst|H-8}}, in [[Kususu's Hoodoos]]
|dialogue="Buy some hocus-pocus from us at Kususu's Hoodoos! I'll give you a smiley charm from me, Aroro, for free! C'mon... How about it then?"}}
|}
<pre>
{{NPC
| image = Patolle.png
| name = Patolle
| gender = Female
| race = Elvaan
| job =
| affiliation = San d'Oria
| occupation =
| status =
| type = Regional Merchant
| merchant region = Kuzotz
| location = {{Location|Port San d'Oria|G-9}}
| starts missions =
| starts quests =
| involved in missions =
| involved in quests =
| notes = 
| historicalbackground = 
}}
</pre>
{| border=4px
|
{{NPC|ncnd
| image = Patolle.png
| name = Patolle
| gender = Female
| race = Elvaan
| job =
| affiliation = San d'Oria
| occupation =
| status =
| type = Regional Merchant
| merchant region = Kuzotz
| location = {{Location|Port San d'Oria|G-9}}
| starts missions =
| starts quests =
| involved in missions =
| involved in quests =
| notes = 
| historicalbackground = 
}}
|}
<pre>
{{NPC
| image = Medicine Axe.png
| name = Medicine Axe
| gender =
| race = Galka
| bestiary =
| job =
| affiliation = Outland
| occupation =
| status =
| type = Outpost Merchant
| location = {{Location|Valkurm Dunes|H-7}}
| starts missions =
| starts quests =
| involved in missions =
| involved in quests =
| notes =
| historicalbackground = 
}}
</pre>
{| border=4px
|
{{NPC|ncnd
| image = Medicine Axe.png
| name = Medicine Axe
| gender =
| race = Galka
| bestiary =
| job =
| affiliation = Outland
| occupation =
| status =
| type = Outpost Merchant
| location = {{Location|Valkurm Dunes|H-7}}
| starts missions =
| starts quests =
| involved in missions =
| involved in quests =
| notes =
| historicalbackground = 
}}
}}
|}
|}

Latest revision as of 12:57, 1 September 2024

Usage

Code

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

Documentation

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.

Template:Preview Only Infobox/Documentation

  • 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 add: Any addition to type
  • merchant region: If a regional merchant, this is the region the merchant sells wares from. e.g. Aragoneu, Gustaberg, Kuzotz, ...
  • 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.
  • custom content: If set to yes/y/true, then the NPC will be categorized as Category:HorizonXI Custom Content and Category:HorizonXI Custom Content/NPCs.

Example 1

{{NPC
| image = Trion.JPG
| name = Trion
| gender = Male
| race = Elvaan
| job = [[Paladin]]
| affiliation = San d'Oria
| occupation = Prince Royal
| type = 
| type add =
| 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.
}}
Trion
Gender: Male
Race: Elvaan
Bestiary: [[:Category: NPCs|]]
Job: Paladin
Affiliation: San d'Oria
Occupation: Prince Royal
Status:
Relatives:
Name:
Type:
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.

Example 2

{{NPC
| image = Hortense.png
| name = Hortense
| gender = Female
| race = Hume
| bestiary =
| job = 
| affiliation = Bastok
| occupation = 
| status = 
| type = Standard Merchant
| type add =
| location = {{Location|Bastok Markets|K-10}}, in Harmodios's Music Shop
| starts missions = 
| starts quests = 
| involved in missions = 
| involved in quests = 
| notes =  
| historicalbackground =  
}}
Hortense.png
Hortense
Gender: Female
Race: Hume
Bestiary: [[:Category: NPCs|]]
Job:
Affiliation: Bastok
Occupation:
Status:
Relatives:
Location:
Bastok Markets (K-10), in Harmodios's Music Shop

Example 3

{{NPC
|image=Aroro.png
|name=Aroro
|gender=Female
|race=Tarutaru
|affiliation=Windurst
|type=Standard Merchant
|type add=
|location={{Location|Port Windurst|H-8}}, in [[Kususu's Hoodoos]]
|dialogue="Buy some hocus-pocus from us at Kususu's Hoodoos! I'll give you a smiley charm from me, Aroro, for free! C'mon... How about it then?"}}
Aroro.png
Aroro
Gender: Female
Race: Tarutaru
Bestiary: [[:Category: NPCs|]]
Job:
Affiliation: Windurst
Occupation:
Status:
Relatives:

Dialogue

"Buy some hocus-pocus from us at Kususu's Hoodoos! I'll give you a smiley charm from me, Aroro, for free! C'mon... How about it then?"

{{NPC
| image = Patolle.png
| name = Patolle
| gender = Female
| race = Elvaan
| job = 
| affiliation = San d'Oria
| occupation = 
| status = 
| type = Regional Merchant
| merchant region = Kuzotz
| location = {{Location|Port San d'Oria|G-9}}
| starts missions = 
| starts quests = 
| involved in missions = 
| involved in quests = 
| notes =  
| historicalbackground =  
}}
Patolle.png
Patolle
Gender: Female
Race: Elvaan
Bestiary: [[:Category: NPCs|]]
Job:
Affiliation: San d'Oria
Occupation:
Status:
Relatives:

Regional Merchant

Only sells items when San d'Oria has control of Kuzotz.


Sells
[ edit ]

Item Price
Cactuar Needle 837 - 967 gil
Thundermelon 292 - 338 gil
Watermelon 180 - 208 gil


{{NPC
| image = Medicine Axe.png
| name = Medicine Axe
| gender = 
| race = Galka
| bestiary = 
| job = 
| affiliation = Outland
| occupation = 
| status = 
| type = Outpost Merchant
| location = {{Location|Valkurm Dunes|H-7}}
| starts missions = 
| starts quests = 
| involved in missions = 
| involved in quests = 
| notes = 
| historicalbackground =   
}}
Medicine Axe.png
Medicine Axe
Gender: Unknown
Race: Galka
Bestiary: [[:Category: NPCs|]]
Job:
Affiliation: Outland
Occupation:
Status:
Relatives:

Outpost Merchant
[ edit ]

Appears when Zulkheim is under weekly conquest-control by one of the three nations.
  • Sells to and buys items from characters allied with the nation that has the weekly conquest-control of this region.
  • Teleports players who have previously done a Supply Run for the specific region, to their Allegiance Teleport NPC in one of the three cities.
For further information, see Outpost Merchant.

Sells

[ edit ]
Items Price
Antidote 316 gil
Echo Drops 800 gil
Ether 4,832 gil
Eye Drops 2,595 gil
Potion 910 gil