Difference between revisions of "Template:Action icon"
Jump to navigation
Jump to search
(creation) |
m |
||
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}}}}}}} | ||
}}<div class="ffxiv-action-icon small"><div>[[{{#var:smw_icon}}| | }}<div class="ffxiv-action-icon {{#switch:{{lc:{{{size|}}}}}|small=small|mid=mid|big=|#default=small}}"><div>[[{{#var:smw_icon}}|{{#switch:{{lc:{{{size|}}}}}|small=20|mid=20|big=48|#default=20}}px]]</div>[[{{#var:smw_name}}| ]]</div> [[{{{1|Trait}}}|{{{2|{{#var:smw_name}}}}}]]</includeonly><noinclude> | ||
== Description == | == Description == | ||
Line 19: | Line 19: | ||
== Examples == | == Examples == | ||
* {{action icon test|Transpose}} is produced from <code><nowiki>{{action icon|Transpose}}</nowiki></code> | * {{action icon test|Transpose}} is produced from <code><nowiki>{{action icon|Transpose}}</nowiki></code> | ||
* {{action icon test|Transpose|size=small}} is produced from <code><nowiki>{{action icon|Transpose|size=small}}</nowiki></code> | |||
* {{action icon test|Transpose|size=mid}} is produced from <code><nowiki>{{action icon|Transpose|size=mid}}</nowiki></code> | |||
* {{action icon test|Transpose|size=big}} is produced from <code><nowiki>{{action icon|Transpose|size=big}}</nowiki></code> | |||
* {{action icon test|Rampart}} is produced from <code><nowiki>{{action icon|Rampart}}</nowiki></code> | * {{action icon test|Rampart}} is produced from <code><nowiki>{{action icon|Rampart}}</nowiki></code> | ||
[[Category:Icon templates|Action icon]]</noinclude> | [[Category:Icon templates|Action icon]]</noinclude> |
Revision as of 19:47, 26 June 2017
Description
{{action icon test|<action name>}}
Displays a link to the trait name (canonical name) and the trait tier icon. The tooltip of the icon displays the trait line and the tooltip of the link displays the article name.
Parameters
- unnamed parameter 1
- Action name. Defaults to "Action".
- unnamed parameter 2
- Link text. Defaults to canonical name.
- size
- Size of icon to display, in px. Defaults to "25" px.
Examples
- Template:Action icon test is produced from
{{action icon|Transpose}}
- Template:Action icon test is produced from
{{action icon|Transpose|size=small}}
- Template:Action icon test is produced from
{{action icon|Transpose|size=mid}}
- Template:Action icon test is produced from
{{action icon|Transpose|size=big}}
- Template:Action icon test is produced from
{{action icon|Rampart}}