Template:Element: Difference between revisions
m (redirect) |
(disabled link override due to arbitrary option inclusion (example included) and updated documentation) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{lc:{{{1|}}}}} | <includeonly>{{#switch: {{lc:{{{1|}}}}} | ||
|無 | |||
|n | |||
|0 | |0 | ||
|neutral = [[File:Neutral_Icon.gif{{!}}alt=Neutral Element{{!}} | |neutral = [[File:Neutral_Icon.gif{{!}}alt=Neutral Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Neutral Element]] | ||
|炎 | |||
|f | |||
|1 | |1 | ||
|fire = [[File:Fire_Icon.gif{{!}}alt=Fire Element{{!}} | |fire = [[File:Fire_Icon.gif{{!}}alt=Fire Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Fire Element]] | ||
|氷 | |||
|i | |||
|2 | |2 | ||
|ice = [[File:Ice_Icon.gif{{!}}alt=Ice Element{{!}} | |ice = [[File:Ice_Icon.gif{{!}}alt=Ice Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Ice Element]] | ||
|雷 | |||
|t | |||
|3 | |||
|thunder | |||
|lightning = [[File:Lightning_Icon.gif{{!}}alt=Lightning Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Lightning Element]] | |||
|土 | |||
|e | |||
|4 | |4 | ||
|earth | |earth | ||
|ground = [[File:Ground_Icon.gif{{!}}alt=Ground Element{{!}} | |ground = [[File:Ground_Icon.gif{{!}}alt=Ground Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Ground Element]] | ||
| | |光 | ||
| | |l | ||
|5 | |||
|light = [[File:Light_Icon.gif{{!}}alt=Light Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Light Element]] | |||
|闇 | |||
|d | |||
|6 | |6 | ||
|dark = [[File:Dark_Icon.gif{{!}}alt=Dark Element{{!}} | |dark = [[File:Dark_Icon.gif{{!}}alt=Dark Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Dark Element]] | ||
| | |||
|#default = | |#default = | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
==Purpose== | ==Purpose== | ||
Shortcut template for all element icons. Contains mouseover for the element name and | Shortcut template for all element icons. Contains mouseover for the element name and alt-text. | ||
==Parameter List== | ==Parameter List== | ||
<pre> | <pre> | ||
Line 26: | Line 41: | ||
</pre> | </pre> | ||
==Examples== | ==Examples== | ||
For manufacturers, the valid list of strings, case insensitive, are: | |||
; Neutral: | |||
*無 | |||
*n | |||
*neutral | |||
*0 | |||
; Fire: | |||
*炎 | |||
*f | |||
*fire | |||
*1 | |||
; Ice: | |||
*氷 | |||
*i | |||
*ice | |||
*2 | |||
; Lightning: | |||
*雷 | |||
*t | |||
*thunder | |||
*lightning | |||
*3 | |||
; Ground: | |||
|土 | |||
|e | |||
*earth | |||
*ground | |||
*4 | |||
; Light: | |||
*光 | |||
*l | |||
*light | |||
*5 | |||
; Dark: | |||
*闇 | |||
*d | |||
*dark | |||
*6 | |||
===Icon for "Neutral"=== | ===Icon for "Neutral"=== | ||
<pre>{{Element|Neutral}}</pre> | <pre>{{Element|Neutral}}</pre> | ||
Line 32: | Line 85: | ||
<pre>{{Element|FIRE}}</pre> | <pre>{{Element|FIRE}}</pre> | ||
{{Element|FIRE}} | {{Element|FIRE}} | ||
===Icon for 2=== | ===Icon for "2"=== | ||
<pre>{{Element|2}}</pre> | <pre>{{Element|2}}</pre> | ||
{{Element|2}} | {{Element|2}} | ||
===Icon for "土", Options="link="=== | |||
<pre>{{Element|土|options=link=}}</pre> | |||
{{Element|土|options=link=}} | |||
===Icon for ""=== | ===Icon for ""=== | ||
<pre>{{Element}}</pre> | <pre>{{Element}}</pre> | ||
{{Element}} | {{Element}} | ||
</noinclude> | </noinclude> |
Revision as of 15:10, 21 December 2023
Purpose
Shortcut template for all element icons. Contains mouseover for the element name and alt-text.
Parameter List
{{Element | <!-- Anonymous parameter. The desired value of the element, case insensitive; or a corresponding integer value. --> }}
Examples
For manufacturers, the valid list of strings, case insensitive, are:
- Neutral
- 無
- n
- neutral
- 0
- Fire
- 炎
- f
- fire
- 1
- Ice
- 氷
- i
- ice
- 2
- Lightning
- 雷
- t
- thunder
- lightning
- 3
- Ground
|土 |e
- earth
- ground
- 4
- Light
- 光
- l
- light
- 5
- Dark
- 闇
- d
- dark
- 6
Icon for "Neutral"
{{Element|Neutral}}
Icon for "FIRE"
{{Element|FIRE}}
Icon for "2"
{{Element|2}}
Icon for "土", Options="link="
{{Element|土|options=link=}}
Icon for ""
{{Element}}