Template:Earth: Difference between revisions

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

Revision as of 14:44, 19 November 2023

Usage

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