Difference between revisions of "Template:Trait infobox"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
m
Line 9: Line 9:
{{#if: {{{acquired|}}}|
{{#if: {{{acquired|}}}|
; Acquired
; Acquired
: {{#ifeq: {{lc:{{{acquired}}}}}|any|[[File:Any_class_frame_icon.png|20px|top|link=Class]] [[Class|Any]]|{{{{{acquired}}}|name=y}}{{#set:Is for class={{ucfirst:{{{acquired}}}}}}} }}
: {{#ifeq: {{lc:{{{acquired}}}}}|any|[[File:Any_class_frame_icon.png|20px|top|link=Class]] [[Class|Any]]|<!--
; Level
-->{{#arraymap:{{{acquired}}}|,|@@@|{{{{#vardefineecho:trait-classjob|{{#switch:{{lc:{{#explode:@@@|/|0}}}}
: {{{level|1}}}
  | gladiator | gla = Gladiator
  | pugilist | pgl = Pugilist
  | marauder | mrd = Marauder
  | lancer | lnc = Lancer
  | archer | arc = Archer
  | rogue | rog = Rogue
  | conjurer | cnj = Conjurer
  | thaumaturge | thm = Thaumaturge
  | arcanist | arc = Arcanist
  | carpenter | blacksmith | armorer | goldsmith | leatherworker | weaver | alchemist | culinarian | miner | botanist | fisher = {{ucfirst:@@@}}
  | dark knight | drk = Dark Knight
  | paladin | pld = Paladin
  | warrior | war = Warrior
  | astrologian | ast = Astrologian
  | scholar | sch = Scholar
  | white mage | whm = White Mage
  | bard | brd = Bard
  | black mage | blm = Black Mage
  | dragoon | drg = Dragoon
  | machinist | mch = Machinist
  | monk | mnk = Monk
  | ninja | nin = Ninja
  | red mage | rdm = Red Mage
  | samurai | sam = Samurai
  | summoner | smn = Summoner
  }}}}|name=y}} (Lv.{{#vardefineecho:trait-level|{{#explode:@@@|/|1}}}}){{#set:Has trait acquisition={{#var:trait-classjob}};{{#var:trait-level}}}}|\n}}
}}
}}
</div>
</div>
Line 29: Line 54:
| icon =  
| icon =  
| acquired =  
| acquired =  
| level =
| description =  
| description =  
| release =  
| release =  
Line 40: Line 64:
: Action icon to show. If not explicitly stated, displays <tt>File:<nowiki><name></nowiki>.png</tt>.
: Action icon to show. If not explicitly stated, displays <tt>File:<nowiki><name></nowiki>.png</tt>.
; acquired
; acquired
: Class that learns the trait.
: Class/job that learns the trait, with level. Accepts comma-separated list. Eg. <code>GLA/10, botanist/20, SMN/15</code>.
; level
: Level required. Defaults to 1.
; description
; description
: Action description.
: Action description.
Line 52: Line 74:
| name = Enhanced Vitality
| name = Enhanced Vitality
| icon = Enhanced vitality.png
| icon = Enhanced vitality.png
| acquired = gladiator
| acquired = GLA/7, MRD/20
| level = 8
| description = Increases Vitality by 2.
| description = Increases Vitality by 2.
| release =  
| release =  
Line 60: Line 81:
| name = Enhanced Vitality
| name = Enhanced Vitality
| icon = Enhanced vitality.png
| icon = Enhanced vitality.png
| acquired = gladiator
| acquired = GLA/7, MRD/20
| level = 8
| description = Increases Vitality by 2.
| description = Increases Vitality by 2.
| release =  
| release =  

Revision as of 14:03, 23 June 2017

Description

{{Trait infobox
| name = 
| icon = 
| acquired = 
| description = 
| release = 
}}

Parameters

name
Action name. Defaults to the page name.
icon
Action icon to show. If not explicitly stated, displays File:<name>.png.
acquired
Class/job that learns the trait, with level. Accepts comma-separated list. Eg. GLA/10, botanist/20, SMN/15.
description
Action description.
release
Optional. Expansion this action belongs to. Accepts: heavensward, or stormblood.

Example

{{Trait infobox
| name = Enhanced Vitality
| icon = Enhanced vitality.png
| acquired = GLA/7, MRD/20
| description = Increases Vitality by 2.
| release = 
}}
Enhanced vitality.png

Enhanced Vitality

{{#if: GLA/7, MRD/20|

Acquired
Gladiator frame icon.png GLA (Lv.7)

Marauder frame icon.png MRD (Lv.20)

Increases Vitality by 2.

— In-game description