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|<span class="light-elemental-text">'''Light Crystal'''</span>]]
| crystal = [[Light Crystal|{{Color|light|Light Crystal}}]]
| Element = [[Light|<span class="light-elemental-text">'''Light'''</span>]]
| cluster = [[Light Cluster|{{Color|light|Light Cluster}}]]
| #default = <span class="light-elemental-text">'''{{{1|Light}}}'''</span>
| hq | aurora = [[Aurora Crystal|{{Color|light|Aurora Crystal}}]]
}}<noinclude>[[Category:Templates|{{PAGENAME}}]]
| 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>
*Displays "[[Light Crystal|<span class="light-elemental-text">'''Light Crystal'''</span>]]" if "Crystal" is defined.
*<nowiki>{{Light|Crystal}}</nowiki> results in "{{Light|Crystal}}".
*Displays "[[Light|<span class="light-elemental-text">'''Light'''</span>]]" if "Element" is defined.
*<nowiki>{{Light|Cluster}}</nowiki> results in "{{Light|Cluster}}".
*Displays "[[File:LightIcon.png|Light]]" if "Icon" is defined.
*<nowiki>{{Light|HQ}}</nowiki> or <nowiki>{{Light|Aurora}</nowiki> results in "{{Light|HQ}}".
*Displays <span class="light-elemental-text">'''bold, colored text'''</span> if anything else is defined ("Light" is the default text).
*<nowiki>{{Light|Analysis}}</nowiki> or <nowiki>{{Light|Glimmer}}</nowiki> results in "{{Light|Analysis}}".
</noinclude>
*<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 "Light".
  • Inputting anything else, e.g. {{Light|bold, colored text}}, results in "bold colored, text".