Template:Property: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus 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. |
imported>Aramachus 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|}}}}} |
||
| ⚫ | |||
| Crystal = [[Dark Crystal|<span class="dark-elemental-text">Dark Crystal</span>]] |
|||
| 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}}]] |
||
| ⚫ | |||
| Fusion = [[:Category:Fusion|{{Color|light|Fu­s}}{{Color|fire|ion}}]] |
|||
| |
| darkness = {{#ifeq:{{lc:{{{2|}}}}}|icon|[[File:Dark-Icon.gif]]|}}[[Darkness|{{Color|ice|Da}}{{Color|water|rk­}}{{Color|earth|ne}}{{Color|dark|ss}}]] |
||
| ⚫ | |||
| Darkness = [[:Category: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> |
||
*Displays {{Property|Transfixion}} if "Transfixion" is defined. |
|||
*Displays {{Property|Compression}} if "Compression" is defined. |
|||
*Displays {{Property|Liquefaction}} if "Liquefaction" is defined. |
|||
*Displays {{Property|Scission}} if "Scission" is defined. |
|||
*Displays {{Property|Reverberation}} if "Reverberation" is defined. |
|||
*Displays {{Property|Detonation}} if "Detonation" is defined. |
|||
*Displays {{Property|Induration}} if "Induration" is defined. |
|||
*Displays {{Property|Impaction}} if "Impaction" is defined. |
|||
* '''Note:''' Use '''without''' the second parameter to display the text without the icon in front. |
|||
*Displays {{Property|Gravitation}} if "Gravitation" is defined. |
|||
*Displays {{Property|Distortion}} if "Distortion " is defined. |
|||
*Displays {{Property|Fusion}} if "Fusion" is defined. |
|||
*Displays {{Property|Fragmentation}} if "Fragmentation" is defined. |
|||
*<nowiki>{{Property|Transfixion|icon}}</nowiki> results in {{Property|Transfixion|icon}}. |
|||
*Displays {{Property|Light}} if "Light" is defined. |
|||
*<nowiki>{{Property|Compression|icon}}</nowiki> results in {{Property|Compression|icon}}. |
|||
*Displays {{Property|Darkness}} if "Darkness" is defined. |
|||
*<nowiki>{{Property|Liquefaction|icon}}</nowiki> results in {{Property|Liquefaction|icon}}. |
|||
*Displays {{Property|null}} if "null" is defined. |
|||
*<nowiki>{{Property|Scission|icon}}</nowiki> results in {{Property|Scission|icon}}. |
|||
*Displays {{Property|-}} if anything else is defined. |
|||
*<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-.