Template:Element: Difference between revisions

From Phantasy Star Universe Clementine
(add opt-out link disabling (hopefully the final edit without a refactor, this is annoying w/o var extension))
Line 3: Line 3:
|n
|n
|0
|0
|neutral = [[File:Neutral_Icon.gif{{!}}alt=Neutral Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Neutral Element]]
|neutral = [[File:Neutral_Icon.gif{{!}}alt=Neutral Element{{!}}{{#if:{{{options|}}}|{{{options}}}|link=}}{{!}}Neutral Element]]
|炎
|炎
|f
|f
|1
|1
|fire = [[File:Fire_Icon.gif{{!}}alt=Fire Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Fire Element]]
|fire = [[File:Fire_Icon.gif{{!}}alt=Fire Element{{!}}{{#if:{{{options|}}}|{{{options}}}|link=}}{{!}}Fire Element]]
|氷
|氷
|i
|i
|2
|2
|ice = [[File:Ice_Icon.gif{{!}}alt=Ice Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Ice Element]]
|ice = [[File:Ice_Icon.gif{{!}}alt=Ice Element{{!}}{{#if:{{{options|}}}|{{{options}}}|link=}}{{!}}Ice Element]]
|雷
|雷
|t
|t
|3
|3
|thunder
|thunder
|lightning = [[File:Lightning_Icon.gif{{!}}alt=Lightning Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Lightning Element]]
|lightning = [[File:Lightning_Icon.gif{{!}}alt=Lightning Element{{!}}{{#if:{{{options|}}}|{{{options}}}|link=}}{{!}}Lightning Element]]
|土
|土
|e
|e
|4
|4
|earth
|earth
|ground = [[File:Ground_Icon.gif{{!}}alt=Ground Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Ground Element]]
|ground = [[File:Ground_Icon.gif{{!}}alt=Ground Element{{!}}{{#if:{{{options|}}}|{{{options}}}|link=}}{{!}}Ground Element]]
|光
|光
|l
|l
|5
|5
|light = [[File:Light_Icon.gif{{!}}alt=Light Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Light Element]]
|light = [[File:Light_Icon.gif{{!}}alt=Light Element{{!}}{{#if:{{{options|}}}|{{{options}}}|link=}}{{!}}Light Element]]
|闇
|闇
|d
|d
|6
|6
|dark = [[File:Dark_Icon.gif{{!}}alt=Dark Element{{!}}{{#if:{{{options|}}}|{{{options}}}{{!}}}}Dark Element]]
|dark = [[File:Dark_Icon.gif{{!}}alt=Dark Element{{!}}{{#if:{{{options|}}}|{{{options}}}|link=}}{{!}}Dark Element]]
|#default =  
|#default =  
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 38: Line 38:
{{Element
{{Element
|        <!-- Anonymous parameter. The desired value of the element, case insensitive; or a corresponding integer value. -->
|        <!-- Anonymous parameter. The desired value of the element, case insensitive; or a corresponding integer value. -->
|options  <!-- The desired image options. -->
|options  <!-- The desired image options. If options aren't provided, the link to the image is disabled. -->
}}
}}
</pre>
</pre>
Line 90: Line 90:
<pre>{{Element|2}}</pre>
<pre>{{Element|2}}</pre>
{{Element|2}}
{{Element|2}}
===Icon for "土", Options="link="===
===Icon for "土", Options="24px"===
<pre>{{Element|土|options=link=}}</pre>
<pre>{{Element|土|options=24px}}</pre>
{{Element|土|options=link=}}
{{Element|土|options=24px}}
===Icon for ""===
===Icon for ""===
<pre>{{Element}}</pre>
<pre>{{Element}}</pre>
{{Element}}
{{Element}}
</noinclude>
</noinclude>

Revision as of 17:29, 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. -->
|options  <!-- The desired image options. If options aren't provided, the link to the image is disabled. -->
}}

Examples

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

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