Difference between revisions of "Template:NPC infobox"
Jump to navigation
Jump to search
m |
m |
||
Line 53: | Line 53: | ||
: {{#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 = -6 | #default = 0}}px; overflow: hidden;">[[File:{{#var:aggression-type}} difficulty r{{#var:aggression-rank}}.png|26px]]</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 = -6 | #default = 0}}px; overflow: hidden;">[[File:{{#var:aggression-type}} difficulty r{{#var:aggression-rank}}.png|26px]]</div>{{#set:Has aggression type={{#var:aggression-type}}}}{{#set:Has aggression rank={{#var:aggression-rank}}}} }}<!-- | ||
-->{{infobox location| {{{location|}}}| coordinates = {{{coordinates|}}} }} | -->{{infobox location| {{{location|}}}| coordinates = {{{coordinates|}}} }} | ||
{{#if: {{{ | {{#if: {{{organization|}}} | | ||
;[[:Category: | ;[[:Category:Organizations|Organization]] | ||
:{{#arraymap:{{{ | :{{#arraymap:{{{organization|}}}|,|@@@|{{#switch: {{lc:@@@}} | ||
| ascalonian ghosts = [[Ascalonian ghost]]s | | ascalonian ghosts = [[Ascalonian ghost]]s | ||
| druids = [[Druid (group)|Druids]] | | druids = [[Druid (group)|Druids]] | ||
Line 119: | Line 119: | ||
}}|}} | }}|}} | ||
| [[Category:NPCs with no race specified]] }} | | [[Category:NPCs with no race specified]] }} | ||
{{#if: {{{ | {{#if: {{{organization|}}} | {{#arraymap:{{{organization|}}}|,|@@@|[[Category:@@@]]|}} }} | ||
{{#if: {{{goal|}}} | {{#arraymap:{{{goal|}}}|,|@@@|{{#switch:{{lc:@@@}} | {{#if: {{{goal|}}} | {{#arraymap:{{{goal|}}}|,|@@@|{{#switch:{{lc:@@@}} | ||
| personal story = [[Category:Story characters]] | | personal story = [[Category:Story characters]] | ||
Line 132: | Line 132: | ||
}}|}} }} | }}|}} }} | ||
{{#if: {{{race|}}} | {{#arraymap:{{{race|}}}|,|@@@|{{#set:Has family=@@@}}}} }} | {{#if: {{{race|}}} | {{#arraymap:{{{race|}}}|,|@@@|{{#set:Has family=@@@}}}} }} | ||
{{#if: {{{ | {{#if: {{{organization|}}} | {{#set:Has organization={{{organization}}}}} }}<!--Temporary code for family property --> | ||
{{#if: {{{coordinates|}}} | {{#ifexpr: {{#len: {{{coordinates|}}} }} < 1000 | | {{#if: {{{coordinates|}}} | {{#ifexpr: {{#len: {{{coordinates|}}} }} < 1000 | | ||
{{#set: | {{#set: | ||
Line 148: | Line 148: | ||
; 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. | ||
; | ; organization: Optional. The affiliation the NPC belongs to. | ||
; level : Optional. The level of the NPC. | ; 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. | ; 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. | ||
Line 165: | Line 165: | ||
| image = | | image = | ||
| location = | | location = | ||
| coordinates = | |||
| race = | | race = | ||
| clan = | |||
| class = | | class = | ||
| job = | | job = | ||
| | | organization = | ||
| level = | | level = | ||
| aggression = | | aggression = | ||
Line 185: | Line 187: | ||
| race = Elezen | | race = Elezen | ||
| job = Scholar | | job = Scholar | ||
| | | organization = Scions of the Seventh Dawn | ||
| aggression = p1 | | aggression = p1 | ||
}} | }} | ||
Line 198: | Line 200: | ||
| race = Elezen | | race = Elezen | ||
| job = Scholar | | job = Scholar | ||
| | | organization = Scions of the Seventh Dawn | ||
| aggression = p1 | | aggression = p1 | ||
}} | }} |
Revision as of 00:12, 12 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".
- 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 or living world season 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