Difference between revisions of "Template:NPC infobox"
Jump to navigation
Jump to search
m |
m |
||
Line 6: | Line 6: | ||
--><div class="icon">[[File:{{#switch: {{lc:{{#var:icon|}}}} | --><div class="icon">[[File:{{#switch: {{lc:{{#var:icon|}}}} | ||
| armorsmith = Armorsmith | | armorsmith = Armorsmith | ||
| weaponsmith = Weaponsmith | | weaponsmith = Weaponsmith | ||
| merchant | | merchant = Merchant | ||
| quest = Quest | | quest = Quest | ||
| repairs = Repairs | | repairs = Repairs | ||
| #default = {{#ifexist: File:{{#var:icon}}.png|{{#var:icon}}|Empty}} | | #default = {{#ifexist: File:{{#var:icon}}.png|{{#var:icon}}|Empty}} | ||
}}.png|40x40px]]</div> | }}.png|40x40px]]</div> | ||
Line 45: | Line 32: | ||
;[[Job]] | ;[[Job]] | ||
:{{#arraymap: {{{job}}}|,|@@@|[[Is for job::{{ucfirst:@@@}}]]|<br>}} | :{{#arraymap: {{{job}}}|,|@@@|[[Is for job::{{ucfirst:@@@}}]]|<br>}} | ||
}} {{#ifeq: {{{level|0}}} | 0 | {{#set:Has NPC level=0}} | | }}{{#ifeq: {{{level|0}}} | 0 | {{#set:Has NPC level=0}} | | ||
;[[Experience|Level]] | ;[[Experience|Level]] | ||
:[[Has NPC level::{{{level}}}]] | :[[Has NPC level::{{{level}}}]] | ||
Line 57: | Line 44: | ||
:{{#arraymap:{{{organization|}}}|,|@@@|{{#switch: {{lc:@@@}} | :{{#arraymap:{{{organization|}}}|,|@@@|{{#switch: {{lc:@@@}} | ||
| #default = [[@@@]] | | #default = [[@@@]] | ||
}}|<br> | }}|<br>}}}}{{ #if: {{{service|}}} | | ||
}}}}{{ #if: {{{service|}}} | | |||
;[[Service]]s | ;[[Service]]s | ||
:{{#arraymap:{{{service|}}}|,|@@@|{{#switch: {{lc:@@@}} | :{{#arraymap:{{{service|}}}|,|@@@|{{#switch: {{lc:@@@}} | ||
| quest | | quest | ||
| quest npc = [[Has service::Quest NPC]] | | quest npc = [[Has service::Quest NPC]] | ||
| weaponsmith = [[Has service::Weaponsmith (vendor)|Weaponsmith]] | | weaponsmith = [[Has service::Weaponsmith (vendor)|Weaponsmith]] | ||
| armorsmith = [[Has service::Armorsmith (vendor)|Armorsmith]] | | armorsmith = [[Has service::Armorsmith (vendor)|Armorsmith]] | ||
| repair | | repair | ||
| repairs = [[Has service::Repairs]] | | repairs = [[Has service::Repairs]] | ||
| #default = [[Has service::{{ucfirst:@@@}}]] | | #default = [[Has service::{{ucfirst:@@@}}]] | ||
}} |<br>}} | }} |<br>}} | ||
Line 111: | Line 89: | ||
| fish = [[Category:Fish]] | | fish = [[Category:Fish]] | ||
| plant = [[Category:Plants]] | | plant = [[Category:Plants]] | ||
| ambient | | ambient | ||
| ambient creature = [[Category:Ambient creatures]] | | ambient creature = [[Category:Ambient creatures]] | ||
| various = | | various = ''Various'' | ||
| #default = [[Category:{{ucfirst:@@@s}}]] | | #default = [[Category:{{ucfirst:@@@s}}]] | ||
}}|}} | }}|}} | ||
Line 128: | Line 105: | ||
{{#if: {{{organization|}}} | {{#arraymap:{{{organization|}}}|,|@@@|[[Category:@@@]]|}} }} | {{#if: {{{organization|}}} | {{#arraymap:{{{organization|}}}|,|@@@|[[Category:@@@]]|}} }} | ||
{{#if: {{{goal|}}} | {{#arraymap:{{{goal|}}}|,|@@@|{{#switch:{{lc:@@@}} | {{#if: {{{goal|}}} | {{#arraymap:{{{goal|}}}|,|@@@|{{#switch:{{lc:@@@}} | ||
| | | story = [[Category:Story characters]] | ||
| | | hunt = [[Category:Hunt monsters]] | ||
}}|}} }} | }}|}} }} | ||
{{#if: {{{service|}}} | {{#arraymap:{{{service|}}}|,|@@@|{{#switch:{{lc:@@@}} <!-- Parse multiple services then set categories. --> | {{#if: {{{service|}}} | {{#arraymap:{{{service|}}}|,|@@@|{{#switch:{{lc:@@@}} <!-- Parse multiple services then set categories. --> | ||
| | | quest | ||
| quest npc = [[Category:Quest NPCs]] | |||
| repair | | repair | ||
| repairs = [[Category:Repairs]] | | repairs = [[Category:Repairs]] | ||
| #default = [[Category:{{ucfirst:@@@}}s]] | | #default = [[Category:{{ucfirst:@@@}}s]] | ||
}}|}} }} | }}|}} }} | ||
Line 154: | Line 131: | ||
; image : Optional. The NPC image should not include any text. Defaults to the page name (<code><nowiki>{{PAGENAME}}.jpg</nowiki></code>). | ; image : Optional. The NPC image should not include any text. Defaults to the page name (<code><nowiki>{{PAGENAME}}.jpg</nowiki></code>). | ||
; race : Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, use "Various". | ; race : Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, use "Various". | ||
; clan : Optional. The NPC clan if applicable. | |||
; location : Required. The area(s) or zone(s) the NPC can be found. Use a comma-separated list of locations. | ; location : Required. The area(s) or zone(s) the NPC can be found. Use a comma-separated list of locations. | ||
; organization: Optional. The affiliation the NPC belongs to. | ; organization: Optional. The affiliation the NPC belongs to. | ||
Line 163: | Line 141: | ||
; goal : Optional. Specific events or tasks this NPC is affiliated with. If entering multiple goals, put each new goal on a new line. | ; 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.: <code>23.2, 5.55, 1</code>. <!-- Displays and interactive map with a marker of the NPC's location. EG <code>[12345,31321]</code>. See {{tl|Infobox map}} for more details. --> | ; coordinates: Optional. The X, Y and Z coordinates to the NPCs location, comma-separated. Eg.: <code>23.2, 5.55, 1</code>. <!-- Displays and interactive map with a marker of the NPC's location. EG <code>[12345,31321]</code>. See {{tl|Infobox map}} for more details. --> | ||
; release : Optional. The expansion | ; release : Optional. The expansion required to access the content. Displays a notice of the release. | ||
== Usage == | == Usage == |
Revision as of 11:59, 31 July 2017
Parameters
- name
- Optional. Defaults the name of the article (
{{PAGENAME}}
). - 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.
- image
- Optional. The NPC image should not include any text. Defaults to the page name (
{{PAGENAME}}.jpg
). - race
- Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, use "Various".
- clan
- Optional. The NPC clan if applicable.
- location
- Required. The area(s) or zone(s) the NPC can be found. Use a comma-separated list of locations.
- organization
- Optional. The affiliation the NPC belongs to.
- level
- Optional. The level of the NPC.
- aggression
- Optional. The aggression type and rank. It accepts aggressive and passive, formatted as follows: a1 (aggressive rank 1), a2 (agressive 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.
- service
- The service or services provided by the NPC. Use a comma-seperated list of services.
- 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.
Usage
{{NPC infobox | name = | description = | image = | location = | coordinates = | race = | clan = | class = | job = | organization = | level = | aggression = | service = | goal = }}
Example
{{NPC infobox | name = Alphinaud | description = | image = Alphinaud.png | location = South Shroud | coordinates = 19, 29 | race = Elezen | job = Scholar | organization = Scions of the Seventh Dawn | aggression = p1 }}
Alphinaud
- Race
- Elezen
- Job
- Scholar
- Aggression
- Passive Template:Infobox location
- Organization
- Scions of the Seventh Dawn
{{NPC infobox | name = Gelato | image = Gelato.jpg | race = flan | location = South Shroud | aggression = a4 }}
Gelato
- Race
- Flan
- Aggression
- Aggressive Template:Infobox location