Template:Light: Difference between revisions
From HorizonXI Wiki
(Created page with "{{#switch:{{{1|}}} | Crystal = <span class="light-elemental-text">'''Light Crystal'''</span> | Element = <span class="light-elemental-text">'''Light'''</span> | #default = <span class="light-elemental-text">'''{{{1|Light}}}'''</span> }}<noinclude>{{PAGENAME}} ==Usage== <pre> {{Light|text}} </pre> *Displays "<span class="light-elemental-text">'''Light Crystal'''</span>" if "Crystal" is defined. *Displays...") Tag: visualeditor-wikitext |
(reworked to use color template and correct icon) |
||
Line 1: | Line 1: | ||
{{#switch:{{{1|}}} | <includeonly><onlyinclude>{{#switch:{{lc:{{{1|}}}}} | ||
| Crystal = [[Light Crystal| | | crystal = [[Light Crystal|{{Color|light|Light Crystal}}]] | ||
| | | cluster = [[Light Cluster|{{Color|light|Light Cluster}}]] | ||
| #default = | | hq | aurora = [[Aurora Crystal|{{Color|light|Aurora Crystal}}]] | ||
| analysis | glimmer = [[Glimmer Crystal|{{Color|light|Glimmer Crystal}}]] | |||
| element = [[Light|{{Color|light|Light}}]] | |||
| icon = [[File:LightIcon.png|link=Light|Light]] | |||
| #default = {{Color|light|{{{1|Light}}}}} | |||
}}</onlyinclude></includeonly>[[Category:Templates|{{PAGENAME}}]] | |||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{Light|text}} | {{Light|text}} | ||
</pre> | </pre> | ||
* | *<nowiki>{{Light|Crystal}}</nowiki> results in "{{Light|Crystal}}". | ||
* | *<nowiki>{{Light|Cluster}}</nowiki> results in "{{Light|Cluster}}". | ||
* | *<nowiki>{{Light|HQ}}</nowiki> or <nowiki>{{Light|Aurora}</nowiki> results in "{{Light|HQ}}". | ||
* | *<nowiki>{{Light|Analysis}}</nowiki> or <nowiki>{{Light|Glimmer}}</nowiki> results in "{{Light|Analysis}}". | ||
*<nowiki>{{Light|Element}}</nowiki> results in "{{Light|Element}}". | |||
*<nowiki>{{Light|Icon}}</nowiki> results in "{{Light|Icon}}". | |||
*Inputting anything else, e.g. <nowiki>{{Light|bold, colored text}}</nowiki>, results in "{{Light|bold colored, text}}". |
Revision as of 02:29, 20 November 2023
Usage
{{Light|text}}
- {{Light|Crystal}} results in "Light Crystal".
- {{Light|Cluster}} results in "Light Cluster".
- {{Light|HQ}} or {{Light|Aurora} results in "Aurora Crystal".
- {{Light|Analysis}} or {{Light|Glimmer}} results in "Glimmer Crystal".
- {{Light|Element}} results in "Light".
- {{Light|Icon}} results in "".
- Inputting anything else, e.g. {{Light|bold, colored text}}, results in "bold colored, text".