From Dark and Darker Wiki

m (variables)
(Merging templates GenerateStatusTables and GenerateStatusTable into the former.)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#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>{{{1}}}</h2><!-- Create header for this status type
-->{{#arraydefine:source_types|{{Status Data|source_types}} }}<!-- Get source types like Class, Item, Monster, Other
  -->{{#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|{{{1}}}|{{#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|{{{1}}}_{{#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> {{{1}}}s sourced 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 sourced 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
--><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:95%; color:#eee; background:transparent; text-align:center; vertical-align:middle;"><!--
      -->{{GenerateStatusTable|{{{1}}}|{{#var:current_source_type}}}}<!-- Create status table for this status and source type
--><tr><!--
      --><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
--><th style="width:8%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">{{{1}}} Name</th><!--
      --></div><!-- End collapsible section
--><th style="width:3%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Icon</th><!--
    -->}}<!-- End #if check
--><th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Source</th><!--
--><th style="width:8%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Source's Ability</th><!--
--><th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Tags</th><!--
--><th style="width:20%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Policies</th></tr><!--
-->{{#arraydefine:Statuses|{{Status Data|objects|{{{1|}}}|{{#var:current_source_type}}|all}} }}<!--
-->{{#loop:i|0|{{#arraysize:Statuses}}|{{#vardefine:current_status|{{#arrayindex:Statuses|{{#var:i}} }} }}<!--
--><tr><!--
--><td>{{Status_Data|objects|{{{1|}}}|{{#var:current_source_type}}|{{#var:current_status}}|colored_name}}</td><!--
--><td>[[File:{{Status_Data|objects|{{{1|}}}|{{#var:current_source_type}}|{{#var:current_status}}|Icon}}.png|link=|x70px]]</td><!--
--><td>{{Status_Data|objects|{{{1|}}}|{{#var:current_source_type}}|{{#var:current_status}}|source_character_name_frontend}}</td><!--
--><td><!--
-->{{Status_Data|objects|{{{1|}}}|{{#var:current_source_type}}|{{#var:current_status}}|source_name_frontend}}<!--
-->{{Status_Data|objects|{{{1|}}}|{{#var:current_source_type}}|{{#var:current_status}}|event_frontend}}</td><!--
--><td><!--
-->{{Status_Data|objects|{{{1|}}}|{{#var:current_source_type}}|{{#var:current_status}}|tags_frontend}}</td><!--
--><td><!--
--><!--{{Status_Data|objects|{{{1|}}}|{{#var:current_source_type}}|{{#var:current_status}}|policies_frontend}}--></td></tr>}}</table><!--
--><span class="mw-customtoggle-{{#var:table_id}}">[[File:Collapse_Up_Icon.png|link=|x30px]] <u>Hide</u></span></div>}} }}<br><!-- End source_types loop


  -->}}<br><!-- End source_types loop
--></includeonly><noinclude>
--></includeonly><noinclude>
==Variables==
==Variables==

Revision as of 02:15, 26 July 2024

Variables

  • <Buff, Debuff, Other> (case sensitive)
{{GenerateStatusTables|Buff}}

Buff