Difference between revisions of "Template:NPC infobox"
Jump to navigation
Jump to search
(20 intermediate revisions by 2 users not shown) | |||
Line 90: | Line 90: | ||
;[[Aggression]] | ;[[Aggression]] | ||
: {{#vardefine:aggression-rank|{{#sub:{{{aggression}}}|1|1}}}}{{#vardefineecho:aggression-type|{{#ifeq:{{lc:{{#sub:{{{aggression}}}|0|1}}}}|p|Passive|Aggressive}}}} <div style="display:inline-block; margin: -8px {{#switch:{{#var:aggression-rank}}|1 | 2 = {{#switch:{{#var:aggression-type}}|Passive = -6|Aggressive = 0}} | #default = 0}}px; overflow: hidden;">[[File:{{#var:aggression-type}} difficulty r{{#var:aggression-rank}}.png|26px|Aggression level {{#var:aggression-rank}}]]</div>{{#set:Has aggression type={{#var:aggression-type}}}}{{#set:Has aggression rank={{#var:aggression-rank}}}} }}<!-- | : {{#vardefine:aggression-rank|{{#sub:{{{aggression}}}|1|1}}}}{{#vardefineecho:aggression-type|{{#ifeq:{{lc:{{#sub:{{{aggression}}}|0|1}}}}|p|Passive|Aggressive}}}} <div style="display:inline-block; margin: -8px {{#switch:{{#var:aggression-rank}}|1 | 2 = {{#switch:{{#var:aggression-type}}|Passive = -6|Aggressive = 0}} | #default = 0}}px; overflow: hidden;">[[File:{{#var:aggression-type}} difficulty r{{#var:aggression-rank}}.png|26px|Aggression level {{#var:aggression-rank}}]]</div>{{#set:Has aggression type={{#var:aggression-type}}}}{{#set:Has aggression rank={{#var:aggression-rank}}}} }}<!-- | ||
-->{{#if: {{{aggro-type|}}} | | |||
;[[Aggression#Conditions|Aggro Type]] | |||
: {{ucfirst: {{{aggro-type}}}}} }}<!-- | |||
-->{{#if: {{{vulnerable|}}} | | |||
;Vulnerabilities | |||
: {{#arraymap: {{{vulnerable|}}}|,|@@@|{{#ifeq:@@@|resolution|[[File:Heavenly judge icon.png|24px|link=|Heavenly Judge from Pomander of Resolution]]|{{status effect|@@@}}}}| }} }}<!-- | |||
-->{{#if: {{{location|}}} | | -->{{#if: {{{location|}}} | | ||
; [[Zone]] | ; [[Zone]] | ||
Line 187: | Line 193: | ||
| au ra | aura = [[Category:Au Ra]] | | au ra | aura = [[Category:Au Ra]] | ||
| miqo'te | miqote = [[Category:Miqo'te]] | | miqo'te | miqote = [[Category:Miqo'te]] | ||
| beast of the final days = [[Category:Beasts of the Final Days]] | |||
| eden primal = [[Category:Eden Primals]] | |||
| creation = [[Category:Creations]] | |||
| various = [[Category:NPCs with various races]] | | various = [[Category:NPCs with various races]] | ||
| #default = [[Category:{{ucfirst:@@@}}]] | | #default = [[Category:{{ucfirst:@@@}}]] | ||
Line 220: | Line 229: | ||
{{#ifeq: {{lc:{{{objective|}}}}} | boss | [[Category:Bosses]]|}} | {{#ifeq: {{lc:{{{objective|}}}}} | boss | [[Category:Bosses]]|}} | ||
{{#if: {{{location|}}} | {{#arraymap:{{{location|}}}|,|@@@|{{#set:Located in=@@@}}}} }} | {{#if: {{{location|}}} | {{#arraymap:{{{location|}}}|,|@@@|{{#set:Located in=@@@}}}} }} | ||
{{#if: {{{goal|}}} | {{#arraymap:{{{goal|}}}|\n|@@@|{{#set:Has goal=@@@}}}} }} | |||
{{#if: {{{race|}}} | {{#arraymap:{{{race|}}}|,|@@@|{{#set:Has family=@@@}}}} }} | {{#if: {{{race|}}} | {{#arraymap:{{{race|}}}|,|@@@|{{#set:Has family=@@@}}}} }} | ||
{{#if: {{{organization|}}} | {{#set:Has family={{{organization}}}}} }}<!--Temporary code for family property --> | {{#if: {{{organization|}}} | {{#set:Has family={{{organization}}}}} }}<!--Temporary code for family property --> | ||
Line 235: | Line 245: | ||
-->{{#if:{{{no-footer-text|}}}||{{#switch: {{lc:{{{race}}}}} | -->{{#if:{{{no-footer-text|}}}||{{#switch: {{lc:{{{race}}}}} | ||
<!--| au ra | aura | miqo'te | miqote | hyur | elezen | lalafell | roegadyn | viera | hrothgar = --> | <!--| au ra | aura | miqo'te | miqote | hyur | elezen | lalafell | roegadyn | viera | hrothgar = --> | ||
| #default = {{#vardefine:npc_descriptor|{{#if:{{#var:is_boss}}| a boss|{{#if:{{{rank|}}}| a [[Rank {{uc:{{{rank}}}}}]] [[Elite Mark]]|{{#ifeq:{{lc:{{{name|{{#titleparts:{{PAGENAME}}}}}}}}}|{{lc:{{{race|}}}}}||{{#if:{{{race|}}}| a<!-- Indefinite noun -->{{#switch:{{lc:{{#sub:{{{race|}}}|0|1}}}}|a|e|i|o|u=n}} {{#ifeq:{{lc:{{{race}}}}}|elementals|Elemental|[[{{ucfirst:{{{race|}}}}}]]}}}}}}}}}}}}<!-- DESCRIPTOR -->'''{{{name|{{#titleparts:{{PAGENAME}}}}}}}''' is{{#var:npc_descriptor}}{{#if:{{{location|}}}| found in {{#ifeq:{{lc:{{{location|}}}}}|varies|various locations|[[{{#show:{{{location}}}|?Has canonical name|default={{{location}}}}}]]}}|{{#if:{{#var:npc_instance}}| found in [[{{#var:npc_instance}}]]}}}}.}} }}[[Category:NPCs]]</includeonly> <!-- this trailing space is a whitespace fix --><noinclude> | | #default = {{#vardefine:npc_descriptor|{{#if:{{#var:is_boss}}| a boss|{{#if:{{{rank|}}}| a [[Rank {{uc:{{{rank}}}}}]] [[Elite Mark]]|{{#ifeq:{{lc:{{{name|{{#titleparts:{{PAGENAME}}}}}}}}}|{{lc:{{{race|}}}}}||{{#if:{{{race|}}}| a<!-- Indefinite noun -->{{#switch:{{lc:{{#sub:{{{race|}}}|0|1}}}}|a|e|i|o|u=n}} {{#ifeq:{{lc:{{{race}}}}}|elementals|[[Elemental]]|[[{{ucfirst:{{{race|}}}}}]]}}}}}}}}}}}}<!-- DESCRIPTOR -->'''{{#if:{{{full-name|}}}|{{{full-name|}}}|{{{name|{{#titleparts:{{PAGENAME}}}}}}}}}''' is{{#var:npc_descriptor}}{{#if:{{{location|}}}| found in {{#ifeq:{{lc:{{{location|}}}}}|varies|various locations|[[{{#show:{{{location}}}|?Has canonical name|default={{{location}}}}}]]}}|{{#if:{{#var:npc_instance}}| found in [[{{#var:npc_instance}}]]}}}}.}} }}[[Category:NPCs]]</includeonly> <!-- this trailing space is a whitespace fix --><noinclude> | ||
== Description == | == Description == | ||
Adds an NPC infobox to the page. Serves two purposes: NPCs such as merchants and important characters, and hostile creatures. | Adds an NPC infobox to the page. Serves two purposes: NPCs such as merchants and important characters, and hostile creatures. | ||
Line 242: | Line 252: | ||
{{NPC infobox | {{NPC infobox | ||
| name = | | name = | ||
| full-name = | |||
| description = | | description = | ||
| image = | | image = | ||
Line 268: | Line 279: | ||
| spawn-condition = | | spawn-condition = | ||
| aggression = | | aggression = | ||
| aggro-type = | |||
| vulnerable = | |||
| service = | | service = | ||
| goal = | | goal = | ||
Line 280: | Line 293: | ||
== Parameters == | == Parameters == | ||
; name : Optional. Defaults the name of the article (<code><nowiki>{{PAGENAME}}</nowiki></code>). | ; name : Optional. Defaults the name of the article (<code><nowiki>{{PAGENAME}}</nowiki></code>). | ||
; name : Optional. The full name (e.g, first and last) of the NPC. | |||
; description : Optional. The description of the abilites of the NPC, listed under the health bar. Use a comma-separated list of the abilities. | ; description : Optional. The description of the abilites of the NPC, listed under the health bar. Use a comma-separated list of the abilities. | ||
; icon : Optional. The creature icon. If no value is set the icon defaults to showing an icon chosen by the '''service''' parameter. If that too is unspecified, the icon is hidden. If an incorrect service parameter is entered, a broken image link will appear in place of the icon's location. | ; icon : Optional. The creature icon. If no value is set the icon defaults to showing an icon chosen by the '''service''' parameter. If that too is unspecified, the icon is hidden. If an incorrect service parameter is entered, a broken image link will appear in place of the icon's location. |
Latest revision as of 03:30, 13 June 2024
Description
Adds an NPC infobox to the page. Serves two purposes: NPCs such as merchants and important characters, and hostile creatures.
{{NPC infobox | name = | full-name = | description = | image = | location = | coordinates = | dungeon = | raid = | trial = | other-duty = | objective = | title = | gender = | age = | race = | clan = | class = | job = | profession = | birthplace = | organization = | relatives = | level = | element = | adaptation = | mutation = | spawn-condition = | aggression = | aggro-type = | vulnerable = | service = | goal = | release = | patch = | voiceJP = | voiceEN = | voiceFR = | voiceDE = }}
Parameters
- name
- Optional. Defaults the name of the article (
{{PAGENAME}}
). - name
- Optional. The full name (e.g, first and last) of the NPC.
- description
- Optional. The description of the abilites of the NPC, listed under the health bar. Use a comma-separated list of the abilities.
- icon
- Optional. The creature icon. If no value is set the icon defaults to showing an icon chosen by the service parameter. If that too is unspecified, the icon is hidden. If an incorrect service parameter is entered, a broken image link will appear in place of the icon's location.
- image
- Optional. The NPC image itself should not include any text. Only the filename is needed, no
File:
prefix or formatting is necessary. Defaults to the page name ({{PAGENAME}}.jpg
). - title
- Optional. Notable titles held by the NPC.
- gender
- Optional. The gender of the NPC. This only allows "male" and "female" in compliance with the game's internal code structure. Deviations from this should be addressed elsewhere on the page and thoroughly sourced from official material.
- age
- Optional. The age of the NPC, if known.
- race
- Required for all Spoken NPCs. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, use "Various". Also used for Monster NPCs such as Flan, Aldgoat, Behemoth etc
- clan
- Optional. The NPC clan if applicable.
- species
- Required for all Monster NPCs. The species of the NPC (Beastkin, Scalekin, Wavekin, Vilekin, Seedkin, Voidsent, Elemental, Chimera).
- location
- Required. The zone the NPC can be found. Do not use anything other than a zone. For multiple locations, please input Varies and use the appropriate location templates (see this example).
- coordinates
- Optional. Use only the format
x,y
as in10,30
with no other characters or symbols. If unknown simply omit; do not use 0,0 or question marks. - dungeon
- Optional. The dungeon where such creature appears.
- raid
- Optional. The raid where such creature appears.
- trial
- Optional. The trial where such creature appears.
- other-duty
- Optional. The duty where such creature appears excluding dungeons, trials and raids.
- objective
- Optional. The objective corresponding to beat the creature. Applies to instance bosses.
- birthplace
- Optional. The homeland of the NPC, typically the city-state or hamlet of their birth.
- organization
- Optional. The organization to which the NPC is affiliated.
- relatives
- Optional. Known relatives of the NPC. Separate each entry with <br>.
- level
- Optional. The level of the NPC.
- element
- Optional. The element of the NPC in Eureka.
- adapation
- Optional. The adaptation of the NPC in Eureka.
- mutation
- Optional. The mutation of the NPC in Eureka.
- spawn-condition
- Optional. The spawn condition for the NPC, such as weather and time of day.
- aggression
- Optional. The aggression type and rank. It accepts aggressive and passive, formatted as follows: a1 (aggressive rank 1), a2 (aggressive rank 2), ..., p1 (passive rank 1), p2 (passive rank 2), etc.
- class
- Optional. The class of the NPC.
- job
- Optional. The job of the NPC.
- profession
- Optional. The profession of the NPC. This is NOT to be used for classes or jobs! Do not put anything that is a valid class/job in this field unless it is how the NPC makes a living.
- service
- The service or services provided by the NPC. Use a comma-separated list of services. Available options include: quest, repair, merchant, sundry splendors, gemstone trader, resident caretaker, materia melder, fate. This value will also affect the sprite that shows up in the top-left corner of their infobox. If the sprite fails to appear, you have entered in an incorrect service value.
- goal
- Optional. Specific events or tasks this NPC is affiliated with. If entering multiple goals, put each new goal on a new line.
- coordinates
- Optional. The X, Y and Z coordinates to the NPCs location, comma-separated. Eg.:
23.2, 5.55, 1
. - release
- Optional. The expansion required to access the content. Displays a notice of the release.
- patch
- Optional. The patch in which the NPC was added. Only the number is needed.
- voiceJP
- Optional. Japanese voice actor/actress name(s)
- voiceEN
- Optional. English voice actor/actress name(s)
- voiceFR
- Optional. French voice actor/actress name(s)
- voiceDE
- Optional. German voice actor/actress name(s)
Example
{{NPC infobox | name = Alphinaud Leveilleur | description = | image = Alphinaud shadowbringers render.png | location = South Shroud | coordinates = 19, 29 | gender = Male | age = 16 | race = Elezen | clan = Wildwood | class = Arcanist | birthplace = Sharlayan (Colony) | organization = The Scions of the Seventh Dawn | relatives = [[Louisoix]] (grandfather)<br>[[Fourchenault]] (father)<br>[[Alisaie]] (sister) | voiceJP = Shinnosuke Tachibana | voiceEN = Sam Riegel and Colin Ryan | voiceFR = Sébastien Desjours | voiceDE = Markus Haase }}
Alphinaud Leveilleur
- Zone
- South Shroud (19, 29)
- Birthplace
- Sharlayan (Colony)
- Organization
- The Scions of the Seventh Dawn
- Relatives
- Louisoix (grandfather)
Fourchenault (father)
Alisaie (sister) - Voiced by (JP)
- Shinnosuke Tachibana
- Voiced by (EN)
- Sam Riegel and Colin Ryan
- Voiced by (FR)
- Sébastien Desjours
- Voiced by (DE)
- Markus Haase
Alphinaud Leveilleur is an Elezen found in South Shroud.
{{NPC infobox | name = Gelato | image = Gelato.jpg | species = Voidsent | type = Flan | location = Coerthas Western Highlands | aggression = a4 }}
Gelato
Gelato is found in Coerthas Western Highlands.
{{NPC infobox | name = Northern Vulture | image = Northern Vulture.jpg | location = Varies | species = Cloudkin | type = Vulture | level = 7-14 | aggression = a1 }}
Northern Vulture
Northern Vulture is found in various locations.