From Dark and Darker Wiki
m (show/hide button formatting updated) |
m (Tables that would return no results no longer called) |
||
Line 6: | Line 6: | ||
--><h2>{{#var:current_status_type}}</h2><!-- Create header for this status type | --><h2>{{#var:current_status_type}}</h2><!-- Create header for this status type | ||
-->{{#loop:j|0|{{#arraysize:source_types}}|{{#vardefine:current_source_type|{{#arrayindex:source_types|{{#var:j}}}}}}<!-- Iterate source types | -->{{#loop:j|0|{{#arraysize:source_types}}|{{#vardefine:current_source_type|{{#arrayindex:source_types|{{#var:j}}}}}}<!-- Iterate source types | ||
--><h3>{{#var:current_source_type}}</h3><!-- Create header for this source type | |||
-->{{#if:{{Status Data|objects|{{#var:current_status_type}}|{{#var:current_source_type}}|all}}|<!-- Check if there are objects | |||
--><h3>{{#var:current_source_type}}</h3><!-- Create header for this source type | |||
-->{{#vardefine:table_id|{{#var:current_status_type}}_{{#var:current_source_type}}}}<!-- Define a unique ID for the table | |||
--><span class="mw-customtoggle-{{#var:table_id}}">[[File:Expand_Down_Icon.png|link=|x30px]] <u>Show/Hide</u> {{#var:current_status_type}}s from a {{#var:current_source_type}}</span><!-- Create Show/Hide Button that appears before the collapsed content | |||
--><div class="mw-collapsible mw-collapsed mw-collapsible-left" id="mw-customcollapsible-{{#var:table_id}}"><!-- Start collapsible section with left button | |||
-->{{GenerateStatusTable|{{#var:current_status_type}}|{{#var:current_source_type}}}}<!-- Create status table for this status and source type | |||
--><span class="mw-customtoggle-{{#var:table_id}}">[[File:Collapse_Up_Icon.png|link=|x30px]] <u>Hide</u></span><!-- Create Hide Button that appears after(inside) the collapsed content | |||
--></div><!-- End collapsible section --> | |||
}}<!-- End #if check | |||
-->}}<br><!-- End source_types loop | -->}}<br><!-- End source_types loop | ||
-->}}<!-- End status_types loop | -->}}<!-- End status_types loop |
Revision as of 22:50, 23 July 2024
{{GenerateStatusTables}}
Buff
Debuff
Other