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:status_types|{{Status Data|status_types}}}}<!-- Get status types like Buff, Debuff, Unknown, Other
-->{{#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
-->{{#loop:i|0|{{#arraysize:status_types}}|{{#vardefine:current_status_type|{{#arrayindex:status_types|{{#var:i}}}}}}<!-- Iterate status_types
   --><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
    
    
     -->{{#if:{{Status Data|objects|{{#var:current_status_type}}|{{#var:current_source_type}}|all}}|<!-- Check if there are 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|{{#var:current_status_type}}_{{#var:current_source_type}}}}<!-- Define a unique ID for the table
       -->{{#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> {{#var:current_status_type}}s from a {{#var:current_source_type}}</span><!-- Create Show/Hide Button that appears before the collapsed content
       --><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|{{#var:current_status_type}}|{{#var:current_source_type}}}}<!-- Create status table for this status and source type
       -->{{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
    -->}}<!-- End #if check


   -->}}<br><!-- End source_types loop
   -->}}<br><!-- End source_types loop
-->}}<!-- End status_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