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>Kaimoon0 m also accept "Light (Skillchain)" the pagename for that article |
||
| (6 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#switch:{{{1|}}} |
<includeonly><onlyinclude>{{#switch:{{lc:{{{1|}}}}} |
||
| transfixion = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Light-square.gif|Light Element|link=]] |[[File:Transfixion-Icon.gif|Light Element|link=]]}}|}}<!-- |
|||
| Crystal = [[Dark Crystal|<span class="dark-elemental-text">Dark Crystal</span>]] |
|||
| ⚫ | |||
| compression = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Dark-square.gif|Dark Element|link=]] |[[File:Compression-Icon.gif|Dark Element|link=]]}}|}}<!-- |
|||
| ⚫ | |||
-->[[Compression|{{#ifeq:{{{3|}}}|plain|Com­pres­sion|{{Color|dark|Com­pres­sion}}}}]] |
|||
| liquefaction ={{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Fire-square.gif|Fire Element|link=]] |[[File:Liquefaction-Icon.gif|Fire Element|link=]]}}|}}<!-- |
|||
-->[[Liquefaction|{{#ifeq:{{{3|}}}|plain|Li­que­fac­tion|{{Color|fire|Li­que­fac­tion}}}}]] |
|||
| ⚫ | |||
| scission = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Earth-square.gif|Earth Element|link=]] |[[File:Scission-Icon.gif|Earth Element|link=]]}}|}}<!-- |
|||
| Reverberation = [[:Category:Reverberation|{{Color|water|Rever­be­ra­tion}}]] |
|||
| ⚫ | |||
| Detonation = [[:Category:Detonation|{{Color|wind|De­to­na­tion}}]] |
|||
| reverberation = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Water-square.gif|Water Element|link=]] |[[File:Reverberation-Icon.gif|Water Element|link=]]}}|}}<!-- |
|||
| Induration = [[:Category:Induration|{{Color|ice|In­du­ra­tion}}]] |
|||
-->[[Reverberation|{{#ifeq:{{{3|}}}|plain|Rever­be­ra­tion|{{Color|water|Rever­be­ra­tion}}}}]] |
|||
| detonation = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Wind-square.gif|Wind Element|link=]] |[[File:Detonation-Icon.gif|Wind Element|link=]]}}|}}<!-- |
|||
| ⚫ | |||
-->[[Detonation|{{#ifeq:{{{3|}}}|plain|De­to­na­tion|{{Color|wind|De­to­na­tion}}}}]] |
|||
| induration = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Ice-square.gif|Ice Element|link=]] |[[File:Induration-Icon.gif|Ice Element|link=]]}}|}}<!-- |
|||
| ⚫ | |||
-->[[Induration|{{#ifeq:{{{3|}}}|plain|In­du­ra­tion|{{Color|ice|In­du­ra­tion}}}}]] |
|||
| impaction = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Lightning-square.gif|Lightning Element|link=]] |[[File:Impaction-Icon.gif|Lightning Element|link=]]}}|}}<!-- |
|||
| ⚫ | |||
-->[[Impaction|{{#ifeq:{{{3|}}}|plain|Im­pac­tion|{{Color|lightning|Im­pac­tion}}}}]] |
|||
| gravitation = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Dark-square.gif|Dark Element|link=]][[File:Earth-square.gif|Earth Element|link=]] |[[File:Gravitation-Icon.gif|Dark Element and Earth Element|link=]]}}|}}<!-- |
|||
| ⚫ | |||
| distortion = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Water-square.gif|Water Element|link=]][[File:Ice-square.gif|Ice Element|link=]] |[[File:Distortion-Icon.gif|Water Element and Ice Element|link=]]}}|}}<!-- |
|||
-->[[Distortion|{{#ifeq:{{{3|}}}|plain|Dis­tor­tion|{{Color|water|Dis­to}}{{Color|ice|r­tion}}}}]] |
|||
| fusion = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Light-square.gif|Light Element|link=]][[File:Fire-square.gif|Fire Element|link=]] |[[File:Fusion-Icon.gif|Light Element and Fire Element|link=]]}}|}}<!-- |
|||
| ⚫ | |||
| fragmentation = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Lightning-square.gif|Lightning Element|link=]][[File:Wind-square.gif|Wind Element|link=]] |[[File:Fragmentation-Icon.gif|Lightning Element and Wind Element|link=]]}}|}}<!-- |
|||
-->[[Fragmentation|{{#ifeq:{{{3|}}}|plain|Frag­men­ta­tion|{{Color|lightning|Frag­me}}{{Color|wind|n­ta­tion}}}}]] |
|||
| light | light (skillchain) = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Light-square.gif|Light Element|link=]][[File:Fire-square.gif|Fire Element|link=]][[File:Lightning-square.gif|Lightning Element|link=]][[File:Wind-square.gif|Wind Element|link=]] |[[File:Light-Icon.gif|Light, Fire, Lightning and Wind Elements|link=]]}}|}}<!-- |
|||
| ⚫ | |||
| darkness = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Dark-square.gif|Dark Element|link=]][[File:Earth-square.gif|Earth Element|link=]][[File:Water-square.gif|Water Element|link=]][[File:Ice-square.gif|Ice Element|link=]] |[[File:Dark-Icon.gif|Dark, Earth, Water and Ice Elements|link=]]}}|}}<!-- |
|||
-->[[Darkness|{{#ifeq:{{{3|}}}|plain|Dark­ness|{{Color|dark|Da}}{{Color|earth|rk­}}{{Color|water|ne}}{{Color|ice|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 38: | ||
--> |
--> |
||
| null = |
| null = |
||
| #default = '' |
| #default = ''None'' |
||
}}</onlyinclude></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]] |
}}</onlyinclude></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]] |
||
==Usage== |
==Usage== |
||
<pre> |
<pre> |
||
{{Property| |
{{Property|<skillchain>|icon|plain}} |
||
</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:''' Parameters ''icon'' and ''plain'' are optional. 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. |
|||
===Examples with icon=== |
|||
*Displays {{Property|Fusion}} if "Fusion" is defined. |
|||
*<nowiki>{{Property|Transfixion|icon}}</nowiki> results in {{Property|Transfixion|icon}}. |
|||
*Displays {{Property|Fragmentation}} if "Fragmentation" is defined. |
|||
*<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}}. |
|||
===Examples with icon and plain=== |
|||
*<nowiki>{{Property|Transfixion|icon|plain}}</nowiki> results in {{Property|Transfixion|icon|plain}}. |
|||
*<nowiki>{{Property|Compression|icon|plain}}</nowiki> results in {{Property|Compression|icon|plain}}. |
|||
*<nowiki>{{Property|Liquefaction|icon|plain}}</nowiki> results in {{Property|Liquefaction|icon|plain}}. |
|||
*<nowiki>{{Property|Scission|icon|plain}}</nowiki> results in {{Property|Scission|icon|plain}}. |
|||
*<nowiki>{{Property|Reverberation|icon|plain}}</nowiki> results in {{Property|Reverberation|icon|plain}}. |
|||
*<nowiki>{{Property|Detonation|icon|plain}}</nowiki> results in {{Property|Detonation|icon|plain}}. |
|||
*<nowiki>{{Property|Induration|icon|plain}}</nowiki> results in {{Property|Induration|icon|plain}}. |
|||
*<nowiki>{{Property|Impaction|icon|plain}}</nowiki> results in {{Property|Impaction|icon|plain}}. |
|||
*<nowiki>{{Property|Gravitation|icon|plain}}</nowiki> results in {{Property|Gravitation|icon|plain}}. |
|||
*<nowiki>{{Property|Distortion|icon|plain}}</nowiki> results in {{Property|Distortion|icon|plain}}. |
|||
*<nowiki>{{Property|Fusion|icon|plain}}</nowiki> results in {{Property|Fusion|icon|plain}}. |
|||
*<nowiki>{{Property|Fragmentation|icon|plain}}</nowiki> results in {{Property|Fragmentation|icon|plain}}. |
|||
*<nowiki>{{Property|Light|icon|plain}}</nowiki> results in {{Property|Light|icon|plain}}. |
|||
*<nowiki>{{Property|Darkness|icon|plain}}</nowiki> results in {{Property|Darkness|icon|plain}}. |
|||
===Others=== |
|||
*Displays {{Property|Light}} if "Light" is defined. |
|||
* |
*<nowiki>{{Property|null}}</nowiki> results in {{Property|null}}. |
||
*<nowiki>{{Property|<anything else>}}</nowiki> results in {{Property|<anything else>}}. |
|||
*Displays {{Property|null}} if "null" is defined. |
|||
*Displays {{Property|-}} if anything else is defined. |
|||
</noinclude> |
</noinclude> |
||
Latest revision as of 15:14, 7 September 2025
Usage
{{Property|<skillchain>|icon|plain}}
- Note: Parameters icon and plain are optional. Use without the second parameter to display the text without the icon in front.
Examples with icon
- {{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.
Examples with icon and plain
- {{Property|Transfixion|icon|plain}} results in
Transfixion. - {{Property|Compression|icon|plain}} results in
Compression. - {{Property|Liquefaction|icon|plain}} results in
Liquefaction. - {{Property|Scission|icon|plain}} results in
Scission. - {{Property|Reverberation|icon|plain}} results in
Reverberation. - {{Property|Detonation|icon|plain}} results in
Detonation. - {{Property|Induration|icon|plain}} results in
Induration. - {{Property|Impaction|icon|plain}} results in
Impaction. - {{Property|Gravitation|icon|plain}} results in

Gravitation. - {{Property|Distortion|icon|plain}} results in

Distortion. - {{Property|Fusion|icon|plain}} results in

Fusion. - {{Property|Fragmentation|icon|plain}} results in

Fragmentation. - {{Property|Light|icon|plain}} results in



Light. - {{Property|Darkness|icon|plain}} results in



Darkness.
Others
- {{Property|null}} results in .
- {{Property|<anything else>}} results in None.