Template:Element: Difference between revisions
From HorizonXI Wiki
(Created page with "<noinclude>{{ #ifeq:{{NAMESPACE}}|{{ns:Template}}| {{PAGENAME}} }} {{Tocright}} ==Usage== * Displays an icon matching the element, as well as giving it a sortable hidden text. * Use this template if you don't want the image alternate text to read "''Resist vs. ____''". * If the element is omitted, {{Information Needed|nc}} is shown. ===Syntax=== {{CssPre|0||0.1|tag=code|b=n|t=y |content=<nowiki>Element|<type>|<showtext></nowiki> }} ===Par...") Tag: visualeditor-wikitext |
(added note to use different templates instead of this) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
<span style="color: red">This Template is outdated. Please use '''<nowiki>{{Fire|Icon}}</nowiki>''' or '''<nowiki>{{Fire|Resist}}</nowiki>''' (analog for all other elements) to display the icon with either a clickable link to the element or a non-clickable icon which shows "Resistance vs. ..." as tooltip on hover.</span> | |||
* | * <s>Displays an icon matching the element, as well as giving it a sortable hidden text.</s> | ||
* If the element is omitted, {{Information Needed|nc}} is shown. | * <s>Use this template if you don't want the image alternate text to read "''Resist vs. ____''".</s> | ||
* <s>If the element is omitted, {{Information Needed|nc}} is shown.</s> | |||
===Syntax=== | ===Syntax=== | ||
{{ | <pre>{{Element|<type>|<showtext>}}</pre> | ||
===Parameters=== | ===Parameters=== |
Latest revision as of 23:00, 20 November 2023
Usage
This Template is outdated. Please use {{Fire|Icon}} or {{Fire|Resist}} (analog for all other elements) to display the icon with either a clickable link to the element or a non-clickable icon which shows "Resistance vs. ..." as tooltip on hover.
Displays an icon matching the element, as well as giving it a sortable hidden text.
Use this template if you don't want the image alternate text to read "Resist vs. ____".
Syntax
{{Element|<type>|<showtext>}}
Parameters
- type: The type of element to display the icon for.
- showtext: Set this to Y to output the element name in front of the icon.
All Elements
Element Only | With Name | ||
---|---|---|---|
Code | Output | Code | Output |
{{Element|Fire}} | {{Element|Fire|Y}} | Fire | |
{{Element|Ice}} | {{Element|Ice|Y}} | Ice | |
{{Element|Wind}} | {{Element|Wind|Y}} | Wind | |
{{Element|Earth}} | {{Element|Earth|Y}} | Earth | |
{{Element|Lightning}} | {{Element|Lightning|Y}} | Lightning | |
{{Element|Water}} | {{Element|Water|Y}} | Water | |
{{Element|Light}} | {{Element|Light|Y}} | Light | |
{{Element|Dark}} | {{Element|Dark|Y}} | Dark | |
Code | Output | Code | Output |
{{Element|Fusion}} | {{Element|Fusion|Y}} | Fusion | |
{{Element|Fragmentation}} | {{Element|Fragmentation|Y}} | Fragmentation | |
{{Element|Gravitation}} | {{Element|Gravitation|Y}} | Gravitation | |
{{Element|Distortion}} | {{Element|Distortion|Y}} | Distortion | |
Code | Output | Code | Output |
First 4 elements are: Fire > Ice > Wind > Earth (see elemental resistances or elemental spell list) | |||
{{Element|First4}} | {{Element|First4|Y}} | First4 | |
Last 4 elements are: Lightning > Water > Light > Dark (see elemental resistances or elemental spell list) | |||
{{Element|Last4}} | {{Element|Last4|Y}} | Last4 | |
{{Element|AllLight}} | {{Element|AllLight|Y}} | Lightness | |
{{Element|AllDark}} | {{Element|AllDark|Y}} | Darkness | |
{{Element|All}} | {{Element|All|Y}} | All |