From Dark and Darker Wiki
m (Tables that would return no results no longer called) |
m (now status_type is a parameter due to reaching PEIS; will be called onto 3 different status pages) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#arraydefine:source_types|{{Status Data|source_types}}}}<!-- Get source types like Class, Item, Monster, Other | -->{{#arraydefine:source_types|{{Status Data|source_types}}}}<!-- Get source types like Class, Item, Monster, Other | ||
--><h2>{{{1}}}</h2><!-- Create header for this status type | |||
--><h2>{{ | |||
-->{{#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 | ||
-->{{#if:{{Status Data|objects|{{ | -->{{#if:{{Status Data|objects|{{{1}}}|{{#var:current_source_type}}|all}}|<!-- Check if there are objects | ||
--><h3>{{#var:current_source_type}}</h3><!-- Create header for this source type | --><h3>{{#var:current_source_type}}</h3><!-- Create header for this source type | ||
-->{{#vardefine:table_id|{{ | -->{{#vardefine:table_id|{{{1}}}_{{#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> {{ | --><span class="mw-customtoggle-{{#var:table_id}}">[[File:Expand_Down_Icon.png|link=|x30px]] <u>Show/Hide</u> {{{1}}}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 | --><div class="mw-collapsible mw-collapsed mw-collapsible-left" id="mw-customcollapsible-{{#var:table_id}}"><!-- Start collapsible section with left button | ||
-->{{GenerateStatusTable|{{ | -->{{GenerateStatusTable|{{{1}}}|{{#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 | --><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 --> | --></div><!-- End collapsible section | ||
-->}}<!-- End #if check | |||
-->}}<br><!-- End source_types loop | -->}}<br><!-- End source_types loop | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
<pre>{{GenerateStatusTables}}</pre> | <pre>{{GenerateStatusTables|Buff}}</pre> | ||
{{GenerateStatusTables}} | {{GenerateStatusTables|Buff}} | ||
</noinclude> | </noinclude> |
Revision as of 00:36, 26 July 2024
{{GenerateStatusTables|Buff}}
Buff