Difference between revisions of "Template:Item icon"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if: <!-- hiding linebreaks --> | ||
{{#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}}}}}}} | |||
}}{{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>{{ | <pre>{{action icon|<action name>}}</pre> | ||
Displays a link to the | Displays a link to the action name (canonical name) and the action icon. | ||
=== Parameters === | === Parameters === | ||
; ''unnamed parameter'' 1 | ; ''unnamed parameter'' 1 | ||
: Item | : Item name. Defaults to "Item". | ||
; ''unnamed parameter'' 2 | ; ''unnamed parameter'' 2 | ||
: | : Link text. Defaults to [[Property:Has canonical name|canonical name]]. Assign ''x'' to prevent name from appearing. | ||
; size | |||
: | : Optional. Either ''small'', ''mid'', or ''big''. Defaults to ''small''. | ||
; | |||
: | |||
== Examples == | == Examples == | ||
* {{ | * {{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=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|Malefic|x}} is produced from <code><nowiki>{{action icon|Malefic|x}}</nowiki></code> | ||
<pre>This is an example a paragraph with the {{action icon|Rampart}} action in it.</pre> | |||
This is an example a paragraph with the {{action icon|Rampart}} action in it. | |||
[[Category:Icon templates|Item icon]]</noinclude> | [[Category:Icon templates|Item icon]]</noinclude> |
Revision as of 05:19, 13 July 2017
Description
{{action icon|<action name>}}
Displays a link to the action name (canonical name) and the action icon.
Parameters
- unnamed parameter 1
- Item name. Defaults to "Item".
- 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
- 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}}
{{action icon|Malefic|x}}
is produced from
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.