Difference between revisions of "Template:Action icon"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(aicon shorthand, and more examples)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
{{#vardefine:smw_icon|{{#show:{{{1|}}}|?Has game icon|link=none|default=File:Action.png}}}}
{{#vardefine:smw_icon|{{#show:{{{1|}}}|?Has game icon|link=none|default=File:Action.png}}}}
{{#vardefine:smw_name|{{#show:{{{1|}}}|?Has canonical name|default={{{1|Action}}}}}}}
{{#vardefine:smw_name|{{#show:{{{1|}}}|?Has canonical name|default={{{1|Action}}}}}}}
}}{{STFI|icon={{#explode:{{#var:smw_icon}}|:|1}}|link={{{1|}}}|size={{{size|small}}}}}&nbsp;[[{{{1|Action}}}|{{{2|{{#var:smw_name}}}}}]]</includeonly><noinclude>
}}{{STFI|icon={{#explode:{{#var:smw_icon}}|:|1}}|link={{{1|}}}|size={{{size|small}}}}}{{#ifeq:{{lc:{{{2|}}}}}|x||&nbsp;[[{{{1|Action}}}|{{{2|{{#var:smw_name}}}}}]]}}</includeonly><noinclude>


== Description ==
== Description ==
Line 14: Line 14:
: Action name. Defaults to "Action".
: Action name. Defaults to "Action".
; ''unnamed parameter'' 2
; ''unnamed parameter'' 2
: Link text. Defaults to [[Property:Has canonical name|canonical name]].
: Link text. Defaults to [[Property:Has canonical name|canonical name]]. Assign ''x'' to prevent name from appearing.
; size
; size
: Optional. Either ''small'', ''mid'', or ''big''. Defaults to ''small''.
: Optional. Either ''small'', ''mid'', or ''big''. Defaults to ''small''.
Line 20: Line 20:
== Examples ==
== Examples ==
* {{action icon|Malefic}} is produced from <code><nowiki>{{action icon|Malefic}}</nowiki></code>
* {{action icon|Malefic}} is produced from <code><nowiki>{{action icon|Malefic}}</nowiki></code>
* {{action icon|Malefic|x}} is produced from <code><nowiki>{{action icon|Malefic|x}}</nowiki></code>
* {{aicon|Ruin II}} is produced from <code><nowiki>{{aicon|Ruin II}}</nowiki></code>
* {{aicon|Ruin II}} is produced from <code><nowiki>{{aicon|Ruin II}}</nowiki></code>
* {{action icon|The Wanderer's Minuet|Minuet}} is produced from <code><nowiki>{{action icon|The Wanderer's Minuet|Minuet}}</nowiki></code> (the canonical title or full title of the article is The Wanderer's Minuet, but was shortened in this example.)
* {{action icon|The Wanderer's Minuet|Minuet}} is produced from <code><nowiki>{{action icon|The Wanderer's Minuet|Minuet}}</nowiki></code> (the canonical title or full title of the article is The Wanderer's Minuet, but was shortened in this example.)

Latest revision as of 05:45, 27 December 2023


Description

{{action icon|<action name>}}

Displays a link to the action name (canonical name) and the action icon. A short form has also been implemented via {{aicon}}.


Parameters

unnamed parameter 1
Action name. Defaults to "Action".
unnamed parameter 2
Link text. Defaults to canonical name. Assign x to prevent name from appearing.
size
Optional. Either small, mid, or big. Defaults to small.

Examples

  • Malefic.png  Malefic is produced from {{action icon|Malefic}}
  • Malefic.png  is produced from {{action icon|Malefic|x}}
  • Ruin II.png  Ruin II is produced from {{aicon|Ruin II}}
  • The Wanderer's Minuet.png  Minuet is produced from {{action icon|The Wanderer's Minuet|Minuet}} (the canonical title or full title of the article is The Wanderer's Minuet, but was shortened in this example.)
  • Transpose.png  Transpose is produced from {{action icon|Transpose}}
  • Transpose.png  Transpose is produced from {{action icon|Transpose|size=small}}
  • Transpose.png  Transpose is produced from {{action icon|Transpose|size=mid}}
  • Transpose.png  Transpose is produced from {{action icon|Transpose|size=big}}
This is an example a paragraph with the {{action icon|Rampart}} action in it.

This is an example a paragraph with the Rampart.png  Rampart action in it.