From Dark and Darker Wiki

m (temporary testing calls)
m (fixed; now iterates correctly; each section in default collapsible with two buttons to show/hide or hide)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#arraydefine:status_types|{{Status Data|status_types}}<!-- like Buff, Debuff, Unknown, Other
-->{{#arraydefine:status_types|{{Status Data|status_types}}}}<!-- Get status types like Buff, Debuff, Unknown, Other
-->{{#arraydefine:source_types|{{Status Data|source_types}}<!-- like Class, Item, Monster, Other
-->{{#arraydefine:source_types|{{Status Data|source_types}}}}<!-- Get source types like Class, Item, Monster, Other
 
-->{{#loop:i|0|{{#arraysize:status_types}}<!-- Iterate status_types
-->|{{#vardefine:current_status_type|{{#arrayindex:status_types|{{#var:i}}}}}}<!--
        -->={{#var:current_status_type}}=<!-- Create section for this status type
        -->{{#loop:j|0|{{#arraysize:source_types}}<!--
        -->|{{#vardefine:current_source_type|{{#arrayindex:source_types|{{#var:j}}}}}}<!--
                -->=={{#var:current_source_type}}==<!-- Create subsection for this source type
                -->{{#var:current_status_type}} AND {{#var:current_source_type}}<!--
                -->testing above, realistic call ball<!--
                -->{{GenerateStatusTable|{{#var:current_status_type}}|{{#var:current_source_type}}}}<!-- Create status table for this status and source type
    -->}}<!--
-->}}<!--


-->{{#loop:i|0|{{#arraysize:status_types}}|{{#vardefine:current_status_type|{{#arrayindex:status_types|{{#var:i}}}}}}<!-- Iterate status_types
  --><h1>{{#var:current_status_type}}</h1><!-- Create header for this status type
  -->{{#loop:j|0|{{#arraysize:source_types}}|{{#vardefine:current_source_type|{{#arrayindex:source_types|{{#var:j}}}}}}<!-- Iterate source types
    --><h2>{{#var:current_source_type}}</h2><!-- 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}}"><u>Show/Hide</u> {{#var:current_status_type}}s from a {{#var:current_source_type}} below</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}}"><u>Hide</u> {{#var:current_status_type}}s from a {{#var:current_source_type}} above</span><!-- Create Hide Button that appears after(inside) the collapsed content
    --></div><!-- End collapsible section --><!--
  -->}}<!-- End source_types loop
-->}}<!-- End status_types loop
--></includeonly><noinclude>
--></includeonly><noinclude>
<pre>{{GenerateStatusTables}}</pre>
<pre>{{GenerateStatusTables}}</pre>

Revision as of 19:05, 23 July 2024

{{GenerateStatusTables}}

Buff

Class

Show/Hide Buffs from a Class below

Template:GenerateStatusTableHide Buffs from a Class above

Item

Show/Hide Buffs from a Item below

Template:GenerateStatusTableHide Buffs from a Item above

Monster

Show/Hide Buffs from a Monster below

Template:GenerateStatusTableHide Buffs from a Monster above

Prop

Show/Hide Buffs from a Prop below

Template:GenerateStatusTableHide Buffs from a Prop above

Other

Show/Hide Buffs from a Other below

Template:GenerateStatusTableHide Buffs from a Other above

Debuff

Class

Show/Hide Debuffs from a Class below

Template:GenerateStatusTableHide Debuffs from a Class above

Item

Show/Hide Debuffs from a Item below

Template:GenerateStatusTableHide Debuffs from a Item above

Monster

Show/Hide Debuffs from a Monster below

Template:GenerateStatusTableHide Debuffs from a Monster above

Prop

Show/Hide Debuffs from a Prop below

Template:GenerateStatusTableHide Debuffs from a Prop above

Other

Show/Hide Debuffs from a Other below

Template:GenerateStatusTableHide Debuffs from a Other above

Other

Class

Show/Hide Others from a Class below

Template:GenerateStatusTableHide Others from a Class above

Item

Show/Hide Others from a Item below

Template:GenerateStatusTableHide Others from a Item above

Monster

Show/Hide Others from a Monster below

Template:GenerateStatusTableHide Others from a Monster above

Prop

Show/Hide Others from a Prop below

Template:GenerateStatusTableHide Others from a Prop above

Other

Show/Hide Others from a Other below

Template:GenerateStatusTableHide Others from a Other above