Template:Skillchain: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus reworked code to make it cleaner and used property template to display skillchain names with icons |
imported>Aramachus tables now normally generated and hiding rows where the sc in question doesnt participate |
||
| Line 3: | Line 3: | ||
Wrapping everything in an invisible table |
Wrapping everything in an invisible table |
||
if no namespace (e.g. templates, category pages, ...) then categorize unless last argument is nc or no category |
|||
-->{{#if:{{{width|}}}|width="{{{width}}}"}} |
-->{{#if:{{{width|}}}|width="{{{width}}}"}} |
||
|{{# |
|{{#if:{{NAMESPACE}}||{{#switch:{{lc:{{{3|{{{2|}}}}}}}}|nc|no category=|#default={{#switch:{{lc:{{{1}}}}}|light = [[Category:Light (Skillchain)]]|[[Category:{{ucfirst:{{{1}}}}}]]}}}}}}<!-- |
||
The Skillchain name as colored header |
The Skillchain name as colored header |
||
| Line 36: | Line 37: | ||
{|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 |
||
|- {{#switch:{{lc:{{{1}}}}}|light=|#default=style="display:none;"}} |
|||
|- |
|||
| {{Property|Light|icon|plain}} |
|||
{{#if:{{#ifeq:{{lc:{{{1}}}}}|light|1}}|<nowiki/> |
|||
| → |
|||
{{!}}- |
|||
| {{Property|Light|icon|plain}} |
|||
| = |
|||
{{!}} → |
|||
| {{Property|Light|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|fusion|fragmentation|light=|#default=style="display:none;"}} |
|||
{{!}} = |
|||
| {{Property|Fusion|icon|plain}} |
|||
| → |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|fusion|1}}{{#ifeq:{{lc:{{{1}}}}}|fragmentation|1}}|<nowiki/> |
|||
| {{Property|Fragmentation|icon|plain}} |
|||
{{!}}- |
|||
| = |
|||
{{!}} {{Property|Fusion|icon|plain}} |
|||
| {{Property|Light|icon|plain}} |
|||
{{!}} → |
|||
|- {{#switch:{{lc:{{{1}}}}}|fragmentation|fusion|light=|#default=style="display:none;"}} |
|||
{{!}} {{Property|Fragmentation|icon|plain}} |
|||
| {{Property|Fragmentation|icon|plain}} |
|||
{{!}} = |
|||
| → |
|||
{{!}} {{Property|Light|icon|plain}} |
|||
| {{Property|Fusion|icon|plain}} |
|||
{{!}}- |
|||
| = |
|||
{{!}} {{Property|Fragmentation|icon|plain}} |
|||
| {{Property|Light|icon|plain}} |
|||
{{!}} → |
|||
|- {{#switch:{{lc:{{{1}}}}}|darkness=|#default=style="display:none;"}} |
|||
{{!}} {{Property|Fusion|icon|plain}} |
|||
| {{Property|Darkness|icon|plain}} |
|||
{{!}} = |
|||
| → |
|||
{{!}} {{Property|Light|icon|plain}} |
|||
| {{Property|Darkness|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|darkness|1}}|<nowiki/> |
|||
| = |
|||
{{!}}- |
|||
| {{Property|Darkness|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|gravitation|distortion|darkness=|#default=style="display:none;"}} |
|||
{{!}} → |
|||
| {{Property|Gravitation|icon|plain}} |
|||
| → |
|||
{{!}} = |
|||
| {{Property|Distortion|icon|plain}} |
|||
| = |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|gravitation|1}}{{#ifeq:{{lc:{{{1}}}}}|distortion|1}}|<nowiki/> |
|||
| {{Property|Darkness|icon|plain}} |
|||
{{!}}- |
|||
|- {{#switch:{{lc:{{{1}}}}}|distortion|gravitation|darkness=|#default=style="display:none;"}} |
|||
{{!}} {{Property|Gravitation|icon|plain}} |
|||
| {{Property|Distortion|icon|plain}} |
|||
{{!}} → |
|||
| → |
|||
{{!}} {{Property|Distortion|icon|plain}} |
|||
| {{Property|Gravitation|icon|plain}} |
|||
{{!}} = |
|||
| = |
|||
{{!}} {{Property|Darkness|icon|plain}} |
|||
| {{Property|Darkness|icon|plain}} |
|||
{{!}}- |
|||
{{!}} {{Property|Distortion|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Gravitation|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Darkness|icon|plain}} |
|||
}} |
|||
|}<!-- |
|}<!-- |
||
| Line 89: | Line 84: | ||
{|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 2 Skillchains |
! colspan="5" | Level 2 Skillchains |
||
|- {{#switch:{{lc:{{{1}}}}}|liquefaction|impaction|fusion=|#default=style="display:none;"}} |
|||
|- |
|||
| {{Property|Liquefaction|icon|plain}} |
|||
{{#if:{{#ifeq:{{lc:{{{1}}}}}|liquefaction|1}}{{#ifeq:{{lc:{{{1}}}}}|impaction|1}}|<nowiki/> |
|||
| → |
|||
{{!}} {{Property|Liquefaction|icon|plain}} |
|||
| {{Property|Impaction|icon|plain}} |
|||
{{!}} → |
|||
| = |
|||
{{!}} {{Property|Impaction|icon|plain}} |
|||
| {{Property|Fusion|icon|plain}} |
|||
{{!}} = |
|||
|- {{#switch:{{lc:{{{1}}}}}|distortion|fusion=|#default=style="display:none;"}} |
|||
{{!}} {{Property|Fusion|icon|plain}} |
|||
| {{Property|Distortion|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|distortion|1}}{{#ifeq:{{lc:{{{1}}}}}|fusion|1}}|<nowiki/> |
|||
| → |
|||
{{!}}- |
|||
| {{Property|Fusion|icon|plain}} |
|||
| = |
|||
{{!}} → |
|||
| {{Property|Fusion|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|induration|reverberation|fragmentation=|#default=style="display:none;"}} |
|||
{{!}} = |
|||
| {{Property|Induration|icon|plain}} |
|||
| → |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|induration|1}}{{#ifeq:{{lc:{{{1}}}}}|reverberation|1}}|<nowiki/> |
|||
| {{Property|Reverberation|icon|plain}} |
|||
{{!}}- |
|||
| = |
|||
{{!}} {{Property|Induration|icon|plain}} |
|||
| {{Property|Fragmentation|icon|plain}} |
|||
{{!}} → |
|||
|- {{#switch:{{lc:{{{1}}}}}|gravitation|fragmentation=|#default=style="display:none;"}} |
|||
{{!}} {{Property|Reverberation|icon|plain}} |
|||
| {{Property|Gravitation|icon|plain}} |
|||
{{!}} = |
|||
| → |
|||
{{!}} {{Property|Fragmentation|icon|plain}} |
|||
| {{Property|Fragmentation|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|gravitation|1}}{{#ifeq:{{lc:{{{1}}}}}|fragmentation|1}}|<nowiki/> |
|||
| = |
|||
{{!}}- |
|||
| {{Property|Fragmentation|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|detonation|compression|gravitation=|#default=style="display:none;"}} |
|||
{{!}} → |
|||
| {{Property|Detonation|icon|plain}} |
|||
| → |
|||
{{!}} = |
|||
| {{Property|Compression|icon|plain}} |
|||
| = |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|detonation|1}}{{#ifeq:{{lc:{{{1}}}}}|compression|1}}|<nowiki/> |
|||
| {{Property|Gravitation|icon|plain}} |
|||
{{!}}- |
|||
|- {{#switch:{{lc:{{{1}}}}}|fusion|gravitation=|#default=style="display:none;"}} |
|||
{{!}} {{Property|Detonation|icon|plain}} |
|||
| {{Property|Fusion|icon|plain}} |
|||
{{!}} → |
|||
| → |
|||
{{!}} {{Property|Compression|icon|plain}} |
|||
| {{Property|Gravitation|icon|plain}} |
|||
{{!}} = |
|||
| = |
|||
{{!}} {{Property|Gravitation|icon|plain}} |
|||
| {{Property|Gravitation|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|fusion|1}}{{#ifeq:{{lc:{{{1}}}}}|gravitation|1}}|<nowiki/> |
|||
|- {{#switch:{{lc:{{{1}}}}}|transfixion|scission|distortion=|#default=style="display:none;"}} |
|||
{{!}}- |
|||
| {{Property|Transfixion|icon|plain}} |
|||
| → |
|||
| {{Property|Scission|icon|plain}} |
|||
| = |
|||
| {{Property|Distortion|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|fragmentation|distortion=|#default=style="display:none;"}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|transfixion|1}}{{#ifeq:{{lc:{{{1}}}}}|scission|1}}|<nowiki/> |
|||
| {{Property|Fragmentation|icon|plain}} |
|||
{{!}}- |
|||
| → |
|||
{{!}} {{Property|Transfixion|icon|plain}} |
|||
| {{Property|Distortion|icon|plain}} |
|||
{{!}} → |
|||
| = |
|||
{{!}} {{Property|Scission|icon|plain}} |
|||
| {{Property|Distortion|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Distortion|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|fragmentation|1}}{{#ifeq:{{lc:{{{1}}}}}|distortion|1}}|<nowiki/> |
|||
{{!}}- |
|||
{{!}} {{Property|Fragmentation|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Distortion|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Distortion|icon|plain}} |
|||
}} |
|||
|}<!-- |
|}<!-- |
||
| Line 157: | Line 143: | ||
{|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 1 Skillchains |
! colspan="5" | Level 1 Skillchains |
||
|- {{#switch:{{lc:{{{1}}}}}|impaction|liquefaction=|#default=style="display:none;"} |
|||
|- |
|||
| {{Property|Impaction|icon|plain}} |
|||
{{#if:{{#ifeq:{{lc:{{{1}}}}}|impaction|1}}{{#ifeq:{{lc:{{{1}}}}}|liquefaction|1}}|<nowiki/> |
|||
| → |
|||
{{!}}- |
|||
| {{Property|Liquefaction|icon|plain}} |
|||
| = |
|||
{{!}} → |
|||
| {{Property|Liquefaction|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|scission|liquefaction=|#default=style="display:none;"}} |
|||
{{!}} = |
|||
| {{Property|Scission|icon|plain}} |
|||
| → |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|scission|1}}{{#ifeq:{{lc:{{{1}}}}}|liquefaction|1}}|<nowiki/> |
|||
| {{Property|Liquefaction|icon|plain}} |
|||
{{!}}- |
|||
| = |
|||
{{!}} {{Property|Scission|icon|plain}} |
|||
| {{Property|Liquefaction|icon|plain}} |
|||
{{!}} → |
|||
|- {{#switch:{{lc:{{{1}}}}}|reverberation|impaction=|#default=style="display:none;"}} |
|||
{{!}} {{Property|Liquefaction|icon|plain}} |
|||
| {{Property|Reverberation|icon|plain}} |
|||
{{!}} = |
|||
| → |
|||
{{!}} {{Property|Liquefaction|icon|plain}} |
|||
| {{Property|Impaction|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|reverberation|1}}{{#ifeq:{{lc:{{{1}}}}}|impaction|1}}|<nowiki/> |
|||
| = |
|||
{{!}}- |
|||
| {{Property|Impaction|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|induration|impaction=|#default=style="display:none;"}} |
|||
{{!}} → |
|||
| {{Property|Induration|icon|plain}} |
|||
| → |
|||
{{!}} = |
|||
| {{Property|Impaction|icon|plain}} |
|||
| = |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|induration|1}}{{#ifeq:{{lc:{{{1}}}}}|impaction|1}}|<nowiki/> |
|||
| {{Property|Impaction|icon|plain}} |
|||
{{!}}- |
|||
|- {{#switch:{{lc:{{{1}}}}}|impaction|detonation=|#default=style="display:none;"}} |
|||
{{!}} {{Property|Induration|icon|plain}} |
|||
| {{Property|Impaction|icon|plain}} |
|||
{{!}} → |
|||
| → |
|||
{{!}} {{Property|Impaction|icon|plain}} |
|||
| {{Property|Detonation|icon|plain}} |
|||
{{!}} = |
|||
| = |
|||
{{!}} {{Property|Impaction|icon|plain}} |
|||
| {{Property|Detonation|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|impaction|1}}{{#ifeq:{{lc:{{{1}}}}}|detonation|1}}|<nowiki/> |
|||
|- {{#switch:{{lc:{{{1}}}}}|compression|detonation=|#default=style="display:none;"}} |
|||
{{!}}- |
|||
| {{Property|Compression|icon|plain}} |
|||
| → |
|||
| {{Property|Detonation|icon|plain}} |
|||
| = |
|||
| {{Property|Detonation|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|scission|detonation=|#default=style="display:none;"}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|compression|1}}{{#ifeq:{{lc:{{{1}}}}}|detonation|1}}|<nowiki/> |
|||
| {{Property|Scission|icon|plain}} |
|||
{{!}}- |
|||
| → |
|||
| {{Property|Detonation|icon|plain}} |
|||
| = |
|||
| {{Property|Detonation|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|liquefaction|scission=|#default=style="display:none;"}} |
|||
| {{Property|Liquefaction|icon|plain}} |
|||
| → |
|||
| {{Property|Scission|icon|plain}} |
|||
| = |
|||
| {{Property|Scission|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|detonation|scission=|#default=style="display:none;"}} |
|||
| {{Property|Detonation|icon|plain}} |
|||
| → |
|||
| {{Property|Scission|icon|plain}} |
|||
| = |
|||
| {{Property|Scission|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|transfixion|reverberation=|#default=style="display:none;"}} |
|||
| {{Property|Transfixion|icon|plain}} |
|||
| → |
|||
| {{Property|Reverberation|icon|plain}} |
|||
| = |
|||
| {{Property|Reverberation|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|scission|reverberation=|#default=style="display:none;"}} |
|||
| {{Property|Scission|icon|plain}} |
|||
| → |
|||
| {{Property|Reverberation|icon|plain}} |
|||
| = |
|||
| {{Property|Reverberation|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|reverberation|induration=|#default=style="display:none;"}} |
|||
| {{Property|Reverberation|icon|plain}} |
|||
| → |
|||
| {{Property|Induration|icon|plain}} |
|||
| = |
|||
| {{Property|Induration|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|induration|compression=|#default=style="display:none;"}} |
|||
| {{Property|Induration|icon|plain}} |
|||
| → |
|||
| {{Property|Compression|icon|plain}} |
|||
| = |
|||
| {{Property|Compression|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|transfixion|compression=|#default=style="display:none;"}} |
|||
| {{Property|Transfixion|icon|plain}} |
|||
| → |
|||
{{!}} {{Property|Compression|icon|plain}} |
{{!}} {{Property|Compression|icon|plain}} |
||
| = |
|||
{{!}} → |
|||
| {{Property|Compression|icon|plain}} |
|||
|- {{#switch:{{lc:{{{1}}}}}|compression|transfixion=|#default=style="display:none;"}} |
|||
{{!}} = |
|||
| {{Property|Compression|icon|plain}} |
|||
| → |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|scission|1}}{{#ifeq:{{lc:{{{1}}}}}|detonation|1}}|<nowiki/> |
|||
| {{Property|Transfixion|icon|plain}} |
|||
{{!}}- |
|||
| = |
|||
{{!}} {{Property|Scission|icon|plain}} |
|||
| {{Property|Transfixion|icon|plain}} |
|||
{{!}} → |
|||
<!-- |
|||
{{!}} {{Property|Detonation|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Detonation|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|liquefaction|1}}{{#ifeq:{{lc:{{{1}}}}}|scission|1}}|<nowiki/> |
|||
{{!}}- |
|||
{{!}} {{Property|Liquefaction|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Scission|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Scission|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|detonation|1}}{{#ifeq:{{lc:{{{1}}}}}|scission|1}}|<nowiki/> |
|||
{{!}}- |
|||
{{!}} {{Property|Detonation|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Scission|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Scission|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|transfixion|1}}{{#ifeq:{{lc:{{{1}}}}}|reverberation|1}}|<nowiki/> |
|||
{{!}}- |
|||
{{!}} {{Property|Transfixion|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Reverberation|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Reverberation|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|scission|1}}{{#ifeq:{{lc:{{{1}}}}}|reverberation|1}}|<nowiki/> |
|||
{{!}}- |
|||
{{!}} {{Property|Scission|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Reverberation|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Reverberation|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|reverberation|1}}{{#ifeq:{{lc:{{{1}}}}}|induration|1}}|<nowiki/> |
|||
{{!}}- |
|||
{{!}} {{Property|Reverberation|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Induration|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Induration|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|induration|1}}{{#ifeq:{{lc:{{{1}}}}}|compression|1}}|<nowiki/> |
|||
{{!}}- |
|||
{{!}} {{Property|Induration|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Compression|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Compression|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|transfixion|1}}{{#ifeq:{{lc:{{{1}}}}}|compression|1}}|<nowiki/> |
|||
{{!}}- |
|||
{{!}} {{Property|Transfixion|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Compression|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Compression|icon|plain}} |
|||
}}{{#if:{{#ifeq:{{lc:{{{1}}}}}|compression|1}}{{#ifeq:{{lc:{{{1}}}}}|transfixion|1}}|<nowiki/> |
|||
{{!}}- |
|||
{{!}} {{Property|Compression|icon|plain}} |
|||
{{!}} → |
|||
{{!}} {{Property|Transfixion|icon|plain}} |
|||
{{!}} = |
|||
{{!}} {{Property|Transfixion|icon|plain}} |
|||
}}<!-- |
|||
end of colored box |
end of colored box |
||
Revision as of 18:11, 25 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.