Template:NPC: Difference between revisions
From HorizonXI Wiki
m (fixed error in npc name) |
m (added option to display boilerplate code in preview only as well as disable preview only documentation) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>__NOTOC__ | <onlyinclude><includeonly>__NOTOC__<!-- | ||
{{Preview Only Infobox| | |||
<pre> | Cheat sheet that is only visible during preview | ||
{{NPC | -->{{#switch:{{{1|}}}|bp|boilerplate={{Preview Only Infobox|<pre>{{NPC | ||
| image = {Use the file name | | 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 = | |||
}} | |||
</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} | | name = {Defaults to the page's name if blank} | ||
| gender = {"Male," "Female," "Unknown" or "Not applicable"} | | gender = {"Male," "Female," "Unknown" or "Not applicable"} | ||
Line 28: | Line 55: | ||
| historical background = {Eg. Myths, legends, pop culture relating to the NPC} | | historical background = {Eg. Myths, legends, pop culture relating to the NPC} | ||
}} | }} | ||
</pre>}}<!-- | </pre>|disable={{{1|}}}}}}}<!-- | ||
-->{{categorize|{{{1|}}}|<!-- | -->{{categorize|{{{1|}}}|<!-- | ||
-->[[Category:NPCs]]{{Categorize Location|location={{{location}}}|category type=NPCs}}<!-- | -->[[Category:NPCs]]{{Categorize Location|location={{{location}}}|category type=NPCs}}<!-- | ||
Line 93: | Line 121: | ||
[[Category:Templates|{{PAGENAMEE}}]] | [[Category:Templates|{{PAGENAMEE}}]] | ||
==Usage== | ==Usage== | ||
===Code=== | |||
<pre> | <pre> | ||
{{NPC | {{NPC | ||
Line 121: | Line 150: | ||
}} | }} | ||
</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. | ||
*'''First unnamed Parameter''' (optional): You can set the first unnamed parameter to: | |||
** ''nc'' (no category) to prevent automatic categorization (e.g. for example pages) | |||
** ''nd'' (no documentation) to suppress the preview documentation (helpful in the editing process) | |||
** ''bp'' (boilerplate) to have the preview documentation without comments so you can just copy it to the page (helpful for creating new pages to just start with {{fontaccent|<nowiki>{{Quest Header|bp}}</nowiki>}} and copy the boilerplate from the preview only) | |||
*'''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. |
Revision as of 10:32, 13 July 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 = }}
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.
- First unnamed Parameter (optional): You can set the first unnamed parameter to:
- nc (no category) to prevent automatic categorization (e.g. for example pages)
- nd (no documentation) to suppress the preview documentation (helpful in the editing process)
- bp (boilerplate) to have the preview documentation without comments so you can just copy it to the page (helpful for creating new pages to just start with {{Quest Header|bp}} and copy the boilerplate from the preview only)
- 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.
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
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. DialogueThis is a placeholder quote. This is placeholder text to illustrate how the dialogue section looks. NotesTrion fights alongside the party in the battle for San d'Oria Mission 9-2. Involved in Missions
Involved in QuestsHistorical BackgroundThis 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 = }}
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?"}}
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 = }}
Regional MerchantOnly sells items when San d'Oria has control of Kuzotz. Sells
|
{{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 = }}
Outpost MerchantAppears when Zulkheim is under weekly conquest-control by one of the three nations.
Sells
|