Difference between revisions of "Template:Trait infobox"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
<includeonly><div class="infobox-n trait {{#switch: {{#explode:{{{requires|}}}|,|0}} | <includeonly>{{#switch:{{lc:{{{release|}}}}}|heavensward = {{Heavensward expansion content}}|stormblood = {{Stormblood expansion content}}}}<div class="infobox-n trait {{#switch: {{#explode:{{{requires|}}}|,|0}} | ||
| MRD | GLA | WAR | PLD | DRK = tanker-role | | MRD | GLA | WAR | PLD | DRK = tanker-role | ||
| PGL | LNC | ARC | ROG | THM | ACN | MNK | DRG | BRD | BLM | SMN | NIN | MCH | SAM | RDM = dps-role | | PGL | LNC | ARC | ROG | THM | ACN | MNK | DRG | BRD | BLM | SMN | NIN | MCH | SAM | RDM = dps-role | ||
Line 12: | Line 12: | ||
{{#if: {{{class|}}}| | {{#if: {{{class|}}}| | ||
; [[Class]] | ; [[Class]] | ||
: {{#ifeq: {{lc:{{{class}}}}}|any|[[File:Any_class_frame_icon.png|20px|top|link=Class]] [[Class| | : {{#ifeq: {{lc:{{{class}}}}}|any|[[File:Any_class_frame_icon.png|20px|top|link=Class]] [[Class|ANY]]|{{#arraymap:{{{class}}}|,|@@@|{{@@@|name=y}}|<br>}} }} | ||
}} | }} | ||
{{#if: {{{level|}}}| | {{#if: {{{level|}}}| | ||
Line 30: | Line 30: | ||
{{clear}}</includeonly><noinclude> | {{clear}}</includeonly><noinclude> | ||
== Description == | == Description == | ||
<pre>{{ | <pre>{{Trait infobox | ||
| name = | | name = | ||
| icon = | | icon = | ||
Line 52: | Line 52: | ||
; actions | ; actions | ||
: Optional. Comma-separated list of actions that this trait affects. | : Optional. Comma-separated list of actions that this trait affects. | ||
; release | |||
: Optional. Expansion this action belongs to. Accepts: ''heavensward'', or ''stormblood''. | |||
== Example == | == Example == | ||
Line 61: | Line 63: | ||
| description = Increases Vitality by 2. | | description = Increases Vitality by 2. | ||
| actions = | | actions = | ||
| release = | |||
}}</pre> | }}</pre> | ||
{{Trait infobox | {{Trait infobox | ||
Line 69: | Line 72: | ||
| description = Increases Vitality by 2. | | description = Increases Vitality by 2. | ||
| actions = | | actions = | ||
| release = | |||
}} | }} | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> |
Revision as of 19:05, 6 June 2017
Description
{{Trait infobox | name = | icon = | class = | level = | description = | actions = }}
Parameters
- name
- Action name. Defaults to the page name.
- icon
- Action icon to show. If not explicitly stated, displays File:<name>.png.
- class
- Class this trait is learned by. Accepts comma-separated: MRD, GLA, PGL, LNC, ARC, ROG, CNJ, THM, or ACN.
- level
- Optional. Level required.
- description
- Action description.
- actions
- Optional. Comma-separated list of actions that this trait affects.
- release
- Optional. Expansion this action belongs to. Accepts: heavensward, or stormblood.
Example
{{Trait infobox | name = Enhanced Vitality | icon = Enhanced vitality.png | class = GLA | level = 8 | description = Increases Vitality by 2. | actions = | release = }}
“Increases Vitality by 2.
— In-game description