Template:Element: Difference between revisions

From Phantasy Star Universe Clementine
(refactor template for enumimage to futureproof)
m (typo)
Line 42: Line 42:
</pre>
</pre>
For image options, a guide on syntax can be found here: [https://www.mediawiki.org/wiki/Help:Images#Syntax]
For image options, a guide on syntax can be found here: [https://www.mediawiki.org/wiki/Help:Images#Syntax]
==Examples==
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 65:
*3
*3
; Ground:
; Ground:
|
*
|e
*e
*earth
*earth
*ground
*ground
Line 81: Line 80:
*dark
*dark
*6
*6
==Examples==
===Icon for "Neutral"===
===Icon for "Neutral"===
<pre>{{Element|Neutral}}</pre>
<pre>{{Element|Neutral}}</pre>

Revision as of 18:04, 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. Invalid values will output nothing. -->
|options  <!-- The desired image options. If options aren't provided, the link to the image is disabled. -->
}}

For image options, a guide on syntax can be found here: [1] 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

Examples

Icon for "Neutral"

{{Element|Neutral}}

Neutral Element

Icon for "FIRE"

{{Element|FIRE}}

Fire Element

Icon for "2"

{{Element|2}}

Ice Element

Icon for "土", Options="24px"

{{Element|土|options=24px}}

Ground Element

Icon for ""

{{Element}}