Template:Skillchain: Difference between revisions
From HorizonXI Wiki
(replaced color link template for coloring the skillchain names with property template) |
m (added commentary to code blocks to untangle) |
||
Line 1: | Line 1: | ||
{|{{#if:{{{width|}}}|width="{{{width}}}"}} | {|<!-- | ||
|{{#ifeq:{{NAMESPACE}}||{{#switch:{{lc:{{{3|{{{2|}}}}}}}}|nc|no category=|#default={{#switch:{{lc:{{{1}}}}}|light = [[Category:Light (Skillchain)]]|darkness = [[Category:Darkness]]|[[Category:{{{1}}}]]}}}}}}{{#switch:{{lc:{{{1}}}}} | |||
Wrapping everything in an invisible table | |||
-->{{#if:{{{width|}}}|width="{{{width}}}"}} | |||
|{{#ifeq:{{NAMESPACE}}||{{#switch:{{lc:{{{3|{{{2|}}}}}}}}|nc|no category=|#default={{#switch:{{lc:{{{1}}}}}|light = [[Category:Light (Skillchain)]]|darkness = [[Category:Darkness]]|[[Category:{{{1}}}]]}}}}}}<!-- | |||
The Skillchain name as colored header | |||
-->{{#switch:{{lc:{{{1}}}}} | |||
| impaction = {{Impaction}}{{Property|Impaction}} | | impaction = {{Impaction}}{{Property|Impaction}} | ||
| liquefaction = {{Liquefaction}}{{Property|Liquefaction}} | | liquefaction = {{Liquefaction}}{{Property|Liquefaction}} | ||
Line 15: | Line 21: | ||
| light = {{LightSkillchain}}{{Property|Light}} | | light = {{LightSkillchain}}{{Property|Light}} | ||
| darkness = {{Darkness}}{{Property|Darkness}} | | darkness = {{Darkness}}{{Property|Darkness}} | ||
}}{{#switch:{{lc:{{{2|}}}}}|a|b|c =<nowiki/> {{ht|Skillchain Priority|({{uc:{{{2}}})}}}}}} | }}<!-- | ||
Optional Adding Skillchain Priority | |||
-->{{#switch:{{lc:{{{2|}}}}}|a|b|c = <nowiki/> {{ht|Skillchain Priority|({{uc:{{{2}}})}}}}}}<!-- | |||
--> | |||
|- | |- | ||
|style="{{#switch:{{lc:{{{1}}}}}|light|darkness|fusion|fragmentation|gravitation|distortion = |#default=display:none;}}"| | <!-- | ||
Level 3 Skillchain Box. Hide box if skillchain doesn't take part in Level 3 | |||
--> | |||
| style="{{#switch:{{lc:{{{1}}}}}|light|darkness|fusion|fragmentation|gravitation|distortion = |#default=display:none;}}"| | |||
{|width="100%" cellspacing="3" style="border: solid 1px #CC7700; background:#FFEEDD;" | {|width="100%" cellspacing="3" style="border: solid 1px #CC7700; background:#FFEEDD;" | ||
!colspan="5"| Level 3 Skillchains | !colspan="5"| Level 3 Skillchains | ||
Line 62: | Line 77: | ||
{{!}} [[File:Dark-square.gif]][[File:Earth-square.gif]][[File:Water-square.gif]][[File:Ice-square.gif]] [[:Category:Darkness|Darkness]] | {{!}} [[File:Dark-square.gif]][[File:Earth-square.gif]][[File:Water-square.gif]][[File:Ice-square.gif]] [[:Category:Darkness|Darkness]] | ||
}} | }} | ||
|} | |}<!-- | ||
--> | |||
|- | |- | ||
<!-- | |||
Level 2 Skillchain Box. Hide box if skillchain doesn't take part in Level 2 | |||
--> | |||
|style="{{#switch:{{lc:{{{1}}}}}|liquefaction|impaction|distortion|fusion|induration|reverberation|gravitation|fragmentation|detonation|compression|transfixion|scission = |#default=display:none;}}"| | |style="{{#switch:{{lc:{{{1}}}}}|liquefaction|impaction|distortion|fusion|induration|reverberation|gravitation|fragmentation|detonation|compression|transfixion|scission = |#default=display:none;}}"| | ||
{|width="100%" cellspacing="3" style="border: solid 1px #CC7700; background:#FFEEDD;" | {|width="100%" cellspacing="3" style="border: solid 1px #CC7700; background:#FFEEDD;" | ||
Line 124: | Line 145: | ||
{{!}} [[File:Water-square.gif]][[File:Ice-square.gif]] [[:Category:Distortion|Distortion]] | {{!}} [[File:Water-square.gif]][[File:Ice-square.gif]] [[:Category:Distortion|Distortion]] | ||
}} | }} | ||
|} | |}<!-- | ||
--> | |||
|- | |- | ||
<!-- | |||
Level 1 Skillchain Box. Hide box if skillchain doesn't take part in Level 1 | |||
--> | |||
|style="{{#switch:{{lc:{{{1}}}}}|impaction|liquefaction|scission|reverberation|detonation|compression|transfixion|induration = |#default=display:none;}}"| | |style="{{#switch:{{lc:{{{1}}}}}|impaction|liquefaction|scission|reverberation|detonation|compression|transfixion|induration = |#default=display:none;}}"| | ||
{|width="100%" cellspacing="3" style="border: solid 1px #CC7700; background:#FFEEDD;" | {|width="100%" cellspacing="3" style="border: solid 1px #CC7700; background:#FFEEDD;" | ||
Line 235: | Line 262: | ||
{{!}} = | {{!}} = | ||
{{!}} [[File:Light-square.gif]] [[:Category:Transfixion|Transfixion]] | {{!}} [[File:Light-square.gif]] [[:Category:Transfixion|Transfixion]] | ||
}} | }}<!-- | ||
|} | |||
end of colored box | |||
--> | |||
|}<!-- | |||
end of invisible wrapper table | |||
--> | |||
|} | |} | ||
<noinclude> | <noinclude> | ||
Line 265: | Line 298: | ||
| <pre>{{Skillchain|Transfixion|A}}</pre> | | <pre>{{Skillchain|Transfixion|A}}</pre> | ||
| {{Skillchain|Transfixion|A}} | | {{Skillchain|Transfixion|A}} | ||
|- | |||
| <pre>{{Skillchain|Distortion|A}}</pre> | |||
| {{Skillchain|Distortion|A}} | |||
|} | |} | ||
</noinclude> | </noinclude> |
Revision as of 12:09, 22 November 2023
Usage
{{Skillchain|<skillchain property>|<skillchain priority>}}
- Displays a table of all skillchains that can be produced by opening or closing with the given skillchain property and categorizes the page into the skillchain property's category. The skillchain priority value is optional.
- width: optional value to specify a specific width for the table.