Template:Element: Difference between revisions
(add param list) |
(add integer support) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{lc:{{{1|}}}}} | <includeonly>{{#switch: {{lc:{{{1|}}}}} | ||
|0 | |||
|neutral = [[File:Neutral_Icon.gif{{!}}alt=Neutral Element{{!}}link=|Neutral Element]] | |neutral = [[File:Neutral_Icon.gif{{!}}alt=Neutral Element{{!}}link=|Neutral Element]] | ||
|1 | |||
|fire = [[File:Fire_Icon.gif{{!}}alt=Fire Element{{!}}link=|Fire Element]] | |fire = [[File:Fire_Icon.gif{{!}}alt=Fire Element{{!}}link=|Fire Element]] | ||
|2 | |||
|ice = [[File:Ice_Icon.gif{{!}}alt=Ice Element{{!}}link=|Ice Element]] | |ice = [[File:Ice_Icon.gif{{!}}alt=Ice Element{{!}}link=|Ice Element]] | ||
|4 | |||
|earth | |earth | ||
|ground = [[File:Ground_Icon.gif{{!}}alt=Ground Element{{!}}link=|Ground Element]] | |ground = [[File:Ground_Icon.gif{{!}}alt=Ground Element{{!}}link=|Ground Element]] | ||
|3 | |||
|lightning = [[File:Lightning_Icon.gif{{!}}alt=Lightning Element{{!}}link=|Lightning Element]] | |lightning = [[File:Lightning_Icon.gif{{!}}alt=Lightning Element{{!}}link=|Lightning Element]] | ||
|6 | |||
|dark = [[File:Dark_Icon.gif{{!}}alt=Dark Element{{!}}link=|Dark Element]] | |dark = [[File:Dark_Icon.gif{{!}}alt=Dark Element{{!}}link=|Dark Element]] | ||
|5 | |||
|light = [[File:Light_Icon.gif{{!}}alt=Light Element{{!}}link=|Light Element]] | |light = [[File:Light_Icon.gif{{!}}alt=Light Element{{!}}link=|Light Element]] | ||
|#default = | |#default = | ||
Line 15: | Line 22: | ||
<pre> | <pre> | ||
{{Elements | {{Elements | ||
| <!-- Anonymous parameter. The desired value of the element, case insensitive | | <!-- Anonymous parameter. The desired value of the element, case insensitive; or a corresponding integer value. --> | ||
}} | }} | ||
</pre> | </pre> | ||
Line 25: | Line 32: | ||
<pre>{{Elements|FIRE}}</pre> | <pre>{{Elements|FIRE}}</pre> | ||
{{Elements|FIRE}} | {{Elements|FIRE}} | ||
===Icon for 2=== | |||
<pre>{{Elements|2}}</pre> | |||
{{Elements|2}} | |||
===Icon for ""=== | ===Icon for ""=== | ||
<pre>{{Elements}}</pre> | <pre>{{Elements}}</pre> | ||
{{Elements}} | {{Elements}} | ||
</noinclude> | </noinclude> |
Revision as of 16:06, 20 December 2023
Purpose
Shortcut template for all element icons. Contains mouseover for the element name and disables link functionality.
Parameter List
{{Elements | <!-- Anonymous parameter. The desired value of the element, case insensitive; or a corresponding integer value. --> }}
Examples
Icon for "Neutral"
{{Elements|Neutral}}
Icon for "FIRE"
{{Elements|FIRE}}
Icon for 2
{{Elements|2}}
Icon for ""
{{Elements}}