Template:Skillchain: Difference between revisions

From HorizonXI Wiki
Aramachus (talk | contribs)
replaced color link template for coloring the skillchain names with property template
Aramachus (talk | contribs)
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

Level 3 Skillchains
Level 2 Skillchains
Level 1 Skillchains

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.

Examples

Code Result
{{Skillchain|Impaction}}
Im­pac­tion
Level 3 Skillchains
Level 2 Skillchains
Liquefaction Impaction = Fusion
Level 1 Skillchains
Impaction Liquefaction = Liquefaction
Reverberation Impaction = Impaction
Induration Impaction = Impaction
Impaction Detonation = Detonation
{{Skillchain|Gravitation}}
Gra­vi­ta­tion
Level 3 Skillchains
Gravitation Distortion = Darkness
Distortion Gravitation = Darkness
Level 2 Skillchains
Gravitation Fragmentation = Fragmentation
Fusion Gravitation = Gravitation
Level 1 Skillchains
{{Skillchain|Light}}
Light
Level 3 Skillchains
Light Light = Light
Level 2 Skillchains
Level 1 Skillchains
{{Skillchain|Light|width="100%"}}
Light
Level 3 Skillchains
Light Light = Light
Level 2 Skillchains
Level 1 Skillchains
{{Skillchain|Transfixion|A}}
Trans­fixion (A)
Level 3 Skillchains
Level 2 Skillchains
Transfixion Scission = Distortion
Level 1 Skillchains
Transfixion Reverberation = Reverberation
Transfixion Compression = Compression
Compression Transfixion = Transfixion
{{Skillchain|Distortion|A}}
Dis­tor­tion (A)
Level 3 Skillchains
Gravitation Distortion = Darkness
Distortion Gravitation = Darkness
Level 2 Skillchains
Distortion Fusion = Fusion
Fragmentation Distortion = Distortion
Level 1 Skillchains