Difference between revisions of "Template:Action icon"
Jump to navigation
Jump to search
m |
|||
(4 intermediate revisions by 3 users 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}}}}} [[{{{1|Action}}}|{{{2|{{#var:smw_name}}}}}]</includeonly><noinclude> | }}{{STFI|icon={{#explode:{{#var:smw_icon}}|:|1}}|link={{{1|}}}|size={{{size|small}}}}}{{#ifeq:{{lc:{{{2|}}}}}|x|| [[{{{1|Action}}}|{{{2|{{#var:smw_name}}}}}]]}}</includeonly><noinclude> | ||
== Description == | == Description == | ||
<pre>{{action icon|<action name>}}</pre> | <pre>{{action icon|<action name>}}</pre> | ||
Displays a link to the action name (canonical name) and the action icon. | Displays a link to the action name (canonical name) and the action icon. A short form has also been implemented via <code><nowiki>{{aicon}}</nowiki></code>. | ||
=== Parameters === | === Parameters === | ||
Line 13: | 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''. | ||
== Examples == | == Examples == | ||
* {{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> | |||
* {{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|Transpose}} is produced from <code><nowiki>{{action icon|Transpose}}</nowiki></code> | * {{action icon|Transpose}} is produced from <code><nowiki>{{action icon|Transpose}}</nowiki></code> | ||
* {{action icon|Transpose|size=small}} is produced from <code><nowiki>{{action icon|Transpose|size=small}}</nowiki></code> | * {{action icon|Transpose|size=small}} is produced from <code><nowiki>{{action icon|Transpose|size=small}}</nowiki></code> | ||
* {{action icon|Transpose|size=mid}} is produced from <code><nowiki>{{action icon|Transpose|size=mid}}</nowiki></code> | * {{action icon|Transpose|size=mid}} is produced from <code><nowiki>{{action icon|Transpose|size=mid}}</nowiki></code> | ||
* {{action icon|Transpose|size=big}} is produced from <code><nowiki>{{action icon|Transpose|size=big}}</nowiki></code> | * {{action icon|Transpose|size=big}} is produced from <code><nowiki>{{action icon|Transpose|size=big}}</nowiki></code> | ||
<pre>This is an example a paragraph with the {{action icon|Rampart}} action in it.</pre> | <pre>This is an example a paragraph with the {{action icon|Rampart}} action in it.</pre> |
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 is produced from
{{action icon|Malefic}}
{{action icon|Malefic|x}}
is produced from - Ruin II is produced from
{{aicon|Ruin II}}
- 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 is produced from
{{action icon|Transpose}}
- Transpose is produced from
{{action icon|Transpose|size=small}}
- Transpose is produced from
{{action icon|Transpose|size=mid}}
- 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 action in it.