Template:Ice: Difference between revisions

From HorizonXI Wiki
(Created page with "{{#switch:{{{1|}}} | Crystal = <font color="#008080">'''Ice Crystal'''</font> | HQ = <font color="#008080">'''Glacier Crystal'''</font> | Analysis = <font color="#008080">'''Frost Crystal'''</font> | Element = <font color="#008080">'''Ice'''</font> | Icon = Ice | #default = <font color="#008080">'''{{{1|Ice}}}'''</font> }}<noinclude>{{PAGENAME}} ==Usage== <pre> {{I...")
Tag: visualeditor-wikitext
 
(reworked to use color template and correct icon)
Line 1: Line 1:
{{#switch:{{{1|}}}
<includeonly><onlyinclude>{{#switch:{{lc:{{{1|}}}}}
| Crystal = [[Ice Crystal|<font color="#008080">'''Ice Crystal'''</font>]]
| crystal = [[Ice Crystal|{{Color|ice|Ice Crystal}}]]
| HQ = [[Glacier Crystal|<font color="#008080">'''Glacier Crystal'''</font>]]
| cluster = [[Ice Cluster|{{Color|ice|Ice Cluster}}]]
| Analysis = [[Frost Crystal|<font color="#008080">'''Frost Crystal'''</font>]]
| hq | glacier = [[Glacier Crystal|{{Color|ice|Glacier Crystal}}]]
| Element = [[Ice|<font color="#008080">'''Ice'''</font>]]
| analysis | frost = [[Frost Crystal|{{Color|ice|Frost Crystal}}]]
| Icon = [[File:Trans Ice.gif|Ice]]
| element = [[Ice|{{Color|ice|Ice}}]]
| #default = <font color="#008080">'''{{{1|Ice}}}'''</font>
| icon = [[File:IceIcon.png|link=Ice|Ice]]
}}<noinclude>[[Category:Templates|{{PAGENAME}}]]
| #default = {{Color|ice|{{{1|Ice}}}}}
}}</onlyinclude></includeonly>[[Category:Templates|{{PAGENAME}}]]
==Usage==
==Usage==
<pre>
<pre>
{{Ice|text}}
{{Ice|text}}
</pre>
</pre>
*Displays "[[Ice Crystal|<font color="#008080">'''Ice Crystal'''</font>]]" if "Crystal" is defined.
*<nowiki>{{Ice|Crystal}}</nowiki> results in "{{Ice|Crystal}}".
*Displays "[[Glacier Crystal|<font color="#008080">'''Glacier Crystal'''</font>]]" if "HQ" is defined.
*<nowiki>{{Ice|Cluster}}</nowiki> results in "{{Ice|Cluster}}".
*Displays "[[Frost Crystal|<font color="#008080">'''Frost Crystal'''</font>]]" if "Analysis" is defined.
*<nowiki>{{Ice|HQ}}</nowiki> or <nowiki>{{Ice|Glacier}</nowiki> results in "{{Ice|HQ}}".
*Displays "[[Ice|<font color="#008080">'''Ice'''</font>]]" if "Element" is defined.
*<nowiki>{{Ice|Analysis}}</nowiki> or <nowiki>{{Ice|Frost}}</nowiki> results in "{{Ice|Analysis}}".
*Displays "[[File:IceIcon.png|Ice]]" if "Icon" is defined.
*<nowiki>{{Ice|Element}}</nowiki> results in "{{Ice|Element}}".
*Displays <font color="#008080">'''bold, colored text'''</font> if anything else is defined ("Ice" is the default text).
*<nowiki>{{Ice|Icon}}</nowiki> results in "{{Ice|Icon}}".
</noinclude>
*Inputting anything else, e.g. <nowiki>{{Ice|bold, colored text}}</nowiki>, results in "{{Ice|bold colored, text}}".

Revision as of 14:47, 19 November 2023

Usage

{{Ice|text}}
  • {{Ice|Crystal}} results in "Ice Crystal".
  • {{Ice|Cluster}} results in "Ice Cluster".
  • {{Ice|HQ}} or {{Ice|Glacier} results in "Glacier Crystal".
  • {{Ice|Analysis}} or {{Ice|Frost}} results in "Frost Crystal".
  • {{Ice|Element}} results in "Ice".
  • {{Ice|Icon}} results in "Ice".
  • Inputting anything else, e.g. {{Ice|bold, colored text}}, results in "bold colored, text".