Template:Element: Difference between revisions

From Phantasy Star Universe Clementine
m (linebreak quirk for template syntax)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#switch: {{lc:{{{1|}}}}}
{{#switch: {{lc:{{{1|}}}}}
|無
|無
|n
|n
Line 30: Line 29:
|d
|d
|6
|6
|dark = {{EnumImage|image=Dark_Icon.gif|name=Dark element|options={{{options|}}}}}
|dark = {{EnumImage|image=Dark_Icon.gif|name=Dark Element|options={{{options|}}}}}
|#default =  
|#default =  
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 86: Line 85:
<pre>{{Element|Neutral}}</pre>
<pre>{{Element|Neutral}}</pre>
{{Element|Neutral}}
{{Element|Neutral}}
===Icon for "ground" In a Centered Table===
===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"
{| class="wikitable" style="margin:auto"
|+ Caption text
|+ Caption text
Line 92: Line 98:
! Header text
! Header text
|-
|-
| {{Element|ground}}
|{{Element|ground}}{{Element|ice}}
|}
|}
===Icon for "FIRE"===
===Icon for "FIRE"===

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}}

Neutral Element

Icon for "ground" and "ice" In a Centered Table

{| class="wikitable" style="margin:auto"
|+ Caption text
|-
! Header text
|-
|{{Element|ground}}{{Element|ice}}
|}
Caption text
Header text
Ground ElementIce 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}}