Template:Property: Difference between revisions
From HorizonXI Wiki
(replaced hard coded font colors with color tempate which uses css classes. this caused the level 2 and level 3 chains to be darker because they had custom color values. Will evaluate how to deal with it.) |
(added optional icon in front; removed crystal; made documentation clearer; made input parameter case insensitive; links to page with redirect instead of category page; warning as fallback for false input instead of bold text) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#switch:{{{1|}}} | <includeonly><onlyinclude>{{#switch:{{lc:{{{1|}}}}} | ||
| | | transfixion = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Transfixion-Icon.gif]]|}}[[Transfixion|{{Color|light|Trans­fixion}}]] | ||
| compression = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Compression-Icon.gif]]|}}[[Compression|{{Color|dark|Com­pres­sion}}]] | |||
| | | liquefaction = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Liquefaction-Icon.gif]]|}}[[Liquefaction|{{Color|fire|Li­que­fac­tion}}]] | ||
| | | scission = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Scission-Icon.gif]]|}}[[Scission|{{Color|earth|Scis­sion}}]] | ||
| | | reverberation = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Reverberation-Icon.gif]]|}}[[Reverberation|{{Color|water|Rever­be­ra­tion}}]] | ||
| | | detonation = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Detonation-Icon.gif]]|}}[[Detonation|{{Color|wind|De­to­na­tion}}]] | ||
| | | induration = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Induration-Icon.gif]]|}}[[Induration|{{Color|ice|In­du­ra­tion}}]] | ||
| | | impaction = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Impaction-Icon.gif]]|}}[[Impaction|{{Color|lightning|Im­pac­tion}}]] | ||
| | | gravitation = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Gravitation-Icon.gif]]|}}[[Gravitation|{{Color|dark|Gra­vi­}}{{Color|earth|ta­tion}}]] | ||
| | | distortion = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Distortion-Icon.gif]]|}}[[Distortion|{{Color|water|Dis­to}}{{Color|ice|r­tion}}]] | ||
| | | fusion = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Fusion-Icon.gif]]|}}[[Fusion|{{Color|light|Fu­s}}{{Color|fire|ion}}]] | ||
| | | fragmentation = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Fragmentation-Icon.gif]]|}}[[Fragmentation|{{Color|lightning|Frag­me}}{{Color|wind|n­ta­tion}}]] | ||
| | | light = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Light-Icon.gif]]|}}[[Light_(Skillchain)|{{Color|fire|Li}}{{Color|wind|g}}{{Color|lightning|h}}{{Color|light|t}}]] | ||
| | | darkness = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Dark-Icon.gif]]|}}[[Darkness|{{Color|ice|Da}}{{Color|water|rk­}}{{Color|earth|ne}}{{Color|dark|ss}}]] | ||
| | |||
| | |||
<!-- old colors for level 2 and 3 deviated from level 1. also transfixion: #999999 and compression: #696969 --> | <!-- old colors for level 2 and 3 deviated from level 1. also transfixion: #999999 and compression: #696969 --> | ||
<!-- | <!-- | ||
Line 26: | Line 24: | ||
--> | --> | ||
| null = | | null = | ||
| #default = | | #default = <span style="color: red">-Skillchain Property not recognized-</span> | ||
}}</onlyinclude></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]] | }}</onlyinclude></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]] | ||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{Property|text}} | {{Property|text|icon}} | ||
</pre> | </pre> | ||
* | * '''Note:''' Use '''without''' the second parameter to display the text without the icon in front. | ||
* | *<nowiki>{{Property|Transfixion|icon}}</nowiki> results in {{Property|Transfixion|icon}}. | ||
* | *<nowiki>{{Property|Compression|icon}}</nowiki> results in {{Property|Compression|icon}}. | ||
* | *<nowiki>{{Property|Liquefaction|icon}}</nowiki> results in {{Property|Liquefaction|icon}}. | ||
* | *<nowiki>{{Property|Scission|icon}}</nowiki> results in {{Property|Scission|icon}}. | ||
*<nowiki>{{Property|Reverberation|icon}}</nowiki> results in {{Property|Reverberation|icon}}. | |||
*<nowiki>{{Property|Detonation|icon}}</nowiki> results in {{Property|Detonation|icon}}. | |||
*<nowiki>{{Property|Induration|icon}}</nowiki> results in {{Property|Induration|icon}}. | |||
*<nowiki>{{Property|Impaction|icon}}</nowiki> results in {{Property|Impaction|icon}}. | |||
*<nowiki>{{Property|Gravitation|icon}}</nowiki> results in {{Property|Gravitation|icon}}. | |||
*<nowiki>{{Property|Distortion|icon}}</nowiki> results in {{Property|Distortion|icon}}. | |||
*<nowiki>{{Property|Fusion|icon}}</nowiki> results in {{Property|Fusion|icon}}. | |||
*<nowiki>{{Property|Fragmentation|icon}}</nowiki> results in {{Property|Fragmentation|icon}}. | |||
*<nowiki>{{Property|Light|icon}}</nowiki> results in {{Property|Light|icon}}. | |||
*<nowiki>{{Property|Darkness|icon}}</nowiki> results in {{Property|Darkness|icon}}. | |||
*<nowiki>{{Property|null}}</nowiki> results in {{Property|null}}. | |||
*<nowiki>{{Property|<anything else>}}</nowiki> results in {{Property|<anything else>}}. | |||
</noinclude> | </noinclude> |
Revision as of 12:51, 22 November 2023
Usage
{{Property|text|icon}}
- Note: Use without the second parameter to display the text without the icon in front.
- {{Property|Transfixion|icon}} results in Transfixion.
- {{Property|Compression|icon}} results in Compression.
- {{Property|Liquefaction|icon}} results in Liquefaction.
- {{Property|Scission|icon}} results in Scission.
- {{Property|Reverberation|icon}} results in Reverberation.
- {{Property|Detonation|icon}} results in Detonation.
- {{Property|Induration|icon}} results in Induration.
- {{Property|Impaction|icon}} results in Impaction.
- {{Property|Gravitation|icon}} results in Gravitation.
- {{Property|Distortion|icon}} results in Distortion.
- {{Property|Fusion|icon}} results in Fusion.
- {{Property|Fragmentation|icon}} results in Fragmentation.
- {{Property|Light|icon}} results in Light.
- {{Property|Darkness|icon}} results in Darkness.
- {{Property|null}} results in .
- {{Property|<anything else>}} results in -Skillchain Property not recognized-.