Template:Element: Difference between revisions
(refactor template for enumimage to futureproof) |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 29: | Line 29: | ||
|d | |d | ||
|6 | |6 | ||
|dark = {{EnumImage|image=Dark_Icon.gif|name=Dark | |dark = {{EnumImage|image=Dark_Icon.gif|name=Dark Element|options={{{options|}}}}} | ||
|#default = | |#default = | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 41: | Line 41: | ||
}} | }} | ||
</pre> | </pre> | ||
For elements, the valid list of strings, case insensitive, are: | For elements, the valid list of strings, case insensitive, are: | ||
; Neutral: | ; Neutral: | ||
Line 66: | Line 64: | ||
*3 | *3 | ||
; Ground: | ; Ground: | ||
*土 | |||
*e | |||
*earth | *earth | ||
*ground | *ground | ||
Line 81: | Line 79: | ||
*dark | *dark | ||
*6 | *6 | ||
For image options, a guide on syntax can be found here: [https://www.mediawiki.org/wiki/Help:Images#Syntax] | |||
==Examples== | |||
===Icon for "Neutral"=== | ===Icon for "Neutral"=== | ||
<pre>{{Element|Neutral}}</pre> | <pre>{{Element|Neutral}}</pre> | ||
{{Element|Neutral}} | {{Element|Neutral}} | ||
===Icon for "ground" and "ice" In a Centered Table=== | |||
<pre>{| class="wikitable" style="margin:auto" | |||
|+ Caption text | |||
|- | |||
! Header text | |||
|- | |||
|{{Element|ground}}{{Element|ice}} | |||
|}</pre> | |||
{| class="wikitable" style="margin:auto" | |||
|+ Caption text | |||
|- | |||
! Header text | |||
|- | |||
|{{Element|ground}}{{Element|ice}} | |||
|} | |||
===Icon for "FIRE"=== | ===Icon for "FIRE"=== | ||
<pre>{{Element|FIRE}}</pre> | <pre>{{Element|FIRE}}</pre> |
Latest revision as of 15:51, 1 January 2024
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. Invalid values will output nothing. --> |options <!-- The desired image options. If options aren't provided, the link to the image is disabled. --> }}
For elements, 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
For image options, a guide on syntax can be found here: [1]
Examples
Icon for "Neutral"
{{Element|Neutral}}
Icon for "ground" and "ice" In a Centered Table
{| class="wikitable" style="margin:auto" |+ Caption text |- ! Header text |- |{{Element|ground}}{{Element|ice}} |}
Header text |
---|
![]() ![]() |
Icon for "FIRE"
{{Element|FIRE}}
Icon for "2"
{{Element|2}}
Icon for "土", Options="24px"
{{Element|土|options=24px}}
Icon for ""
{{Element}}