Difference between revisions of "Template:NPC infobox"
Jump to navigation
Jump to search
(creation) |
m |
||
Line 67: | Line 67: | ||
}}]]|<!--default if {rank} not set-->{{#set:Has NPC rank=Normal}}}} | }}]]|<!--default if {rank} not set-->{{#set:Has NPC rank=Normal}}}} | ||
<!-- {{infobox location| {{{location|}}} }} --> | <!-- {{infobox location| {{{location|}}} }} --> | ||
{{#if: {{{ | {{#if: {{{affiliation|}}} | | ||
;[[:Category: | ;[[:Category:Affiliations|Affiliation]] | ||
:{{#arraymap:{{{ | :{{#arraymap:{{{affiliation|}}}|,|@@@|{{#switch: {{lc:@@@}} | ||
| ascalonian ghosts = [[Ascalonian ghost]]s | | ascalonian ghosts = [[Ascalonian ghost]]s | ||
| druids = [[Druid (group)|Druids]] | | druids = [[Druid (group)|Druids]] | ||
Line 133: | Line 133: | ||
}}|}} | }}|}} | ||
| [[Category:NPCs with no race specified]] }} | | [[Category:NPCs with no race specified]] }} | ||
{{#if: {{{ | {{#if: {{{affiliation|}}} | {{#arraymap:{{{affiliation|}}}|,|@@@|[[Category:@@@]]|}} }} | ||
{{#if: {{{goal|}}} | {{#arraymap:{{{goal|}}}|,|@@@|{{#switch:{{lc:@@@}} | {{#if: {{{goal|}}} | {{#arraymap:{{{goal|}}}|,|@@@|{{#switch:{{lc:@@@}} | ||
| personal story = [[Category:Story characters]] | | personal story = [[Category:Story characters]] | ||
Line 146: | Line 146: | ||
}}|}} }} | }}|}} }} | ||
{{#if: {{{race|}}} | {{#arraymap:{{{race|}}}|,|@@@|{{#set:Has family=@@@}}}} }} | {{#if: {{{race|}}} | {{#arraymap:{{{race|}}}|,|@@@|{{#set:Has family=@@@}}}} }} | ||
{{#if: {{{ | {{#if: {{{affiliation|}}} | {{#set:Has family={{{affiliation}}}}} }}<!--Temporary code for family property --> | ||
{{#if: {{{coordinates|}}} | {{#ifexpr: {{#len: {{{coordinates|}}} }} < 1000 | | {{#if: {{{coordinates|}}} | {{#ifexpr: {{#len: {{{coordinates|}}} }} < 1000 | | ||
{{#set: | {{#set: | ||
Line 161: | Line 161: | ||
; 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". | ||
; 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. | ||
; | ; affiliation: Optional. The affiliation the NPC belongs to. | ||
; level : Optional. The level of the NPC. | ; level : Optional. The level of the NPC. | ||
; rank : Optional. Should be one of the following: normal, veteran, elite, champion, legendary. | ; rank : Optional. Should be one of the following: normal, veteran, elite, champion, legendary. | ||
Line 179: | Line 179: | ||
| location = | | location = | ||
| race = | | race = | ||
| | | affiliation = | ||
| level = | | level = | ||
| rank = | | rank = | ||
Line 190: | Line 190: | ||
<pre> | <pre> | ||
{{NPC infobox | {{NPC infobox | ||
| name = | | name = Alphinaud | ||
| description = | | description = | ||
| image = | | image = Alphinaud.png | ||
| race = | | race = Elezen | ||
| | | affiliation = Scions of the Seventh Dawn | ||
| | | job = Arcanist | ||
}} | }} | ||
</pre> | </pre> | ||
{{NPC infobox | {{NPC infobox | ||
| name = | | name = Alphinaud | ||
| description = | | description = | ||
| image = | | image = Alphinaud.png | ||
| race = | | race = Elezen | ||
| | | affiliation = Scions of the Seventh Dawn | ||
| | | job = Arcanist | ||
}} | }} | ||
Revision as of 12:53, 20 June 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".
- location
- Required. The area(s) or zone(s) the NPC can be found. Use a comma-separated list of locations.
- affiliation
- Optional. The affiliation the NPC belongs to.
- level
- Optional. The level of the NPC.
- rank
- Optional. Should be one of the following: normal, veteran, elite, champion, legendary.
- profession
- Optional. The profession of the NPC. Use a comma-seperated list if more than one profession is possible.
- 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 and Y coordinates to the NPCs location. Displays and interactive map with a marker of the NPC's location. EG
[12345,31321]
. See {{Infobox map}} for more details. - categorize
- Optional. "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
- release
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox release}} for options.
Usage
{{NPC infobox | name = | description = | image = | location = | race = | affiliation = | level = | rank = | profession = | service = | goal = }}
Example
{{NPC infobox | name = Alphinaud | description = | image = Alphinaud.png | race = Elezen | affiliation = Scions of the Seventh Dawn | job = Arcanist }}
Alphinaud
- Race
- Elezen
- Job
- Arcanist
- Affiliation
- Scions of the Seventh Dawn