Difference between revisions of "Template:Quest infobox"

Jump to navigation Jump to search
Added the ability to hide phases
(Added the ability to hide phases)
Line 1: Line 1:
<includeonly><onlyinclude><table class='qtable sortable' style='min-width: 800px;
<includeonly><onlyinclude>{{#arraydefine:hidden phases|{{#var:hide phases|}}|;}}<table class='qtable sortable' style='min-width: 800px;
text-align: center;
text-align: center;
border: 1px solid black;'>
border: 1px solid black;'>
Line 24: Line 24:
  | 1
  | 1
  | {{{phases|1}}}
  | {{{phases|1}}}
  | {{#arraydefine:quest transient list|{{{enemies{{#var:phasecount}}|}}}|;}}{{#arraydefine:quest drop list|{{{drops{{#var:phasecount}}|}}}|;}}{{#vardefine:qtl size|{{#arraysize:quest transient list}}}}{{#vardefine:qdl size|{{#arraysize:quest drop list}}}}{{#vardefine:quest column size|{{#ifexpr:{{#var:qtl size|0}} > {{#var:qdl size|0}}|{{#var:qtl size}}|{{#var:qdl size|0}}}}}}{{#ifeq:{{#var:quest column size}}|0||<tr><th style='background-color: #cccccc;' rowspan='{{#var:quest column size}}'>Phase {{#var:phasecount}}<br>{{#if:{{{maxenemies{{#var:phasecount}}|}}}|<abbr title='The maximum amount of enemies that will appear in this phase.'>Max: {{{maxenemies{{#var:phasecount}}|}}}</abbr>}}</th>{{#loop:i
  | {{#arraysearch:hidden phases|{{#var:phasecount}}|0||{{#arraydefine:quest transient list|{{{enemies{{#var:phasecount}}|}}}|;}}{{#arraydefine:quest drop list|{{{drops{{#var:phasecount}}|}}}|;}}{{#vardefine:qtl size|{{#arraysize:quest transient list}}}}{{#vardefine:qdl size|{{#arraysize:quest drop list}}}}{{#vardefine:quest column size|{{#ifexpr:{{#var:qtl size|0}} > {{#var:qdl size|0}}|{{#var:qtl size}}|{{#var:qdl size|0}}}}}}{{#ifeq:{{#var:quest column size}}|0||<tr><th style='background-color: #cccccc;' rowspan='{{#var:quest column size}}'>Phase {{#var:phasecount}}<br>{{#if:{{{maxenemies{{#var:phasecount}}|}}}|<abbr title='The maximum amount of enemies that will appear in this phase.'>Max: {{{maxenemies{{#var:phasecount}}|}}}</abbr>}}</th>{{#loop:i
  | 0
  | 0
  | {{#var:quest column size}}
  | {{#var:quest column size}}
Line 42: Line 42:
   <td>{{#if:{{#explode:{{#var:quest drop}}|,|1}}|{{#explode:{{#var:quest drop}}|,|1}}}}</td><!--% drop-->
   <td>{{#if:{{#explode:{{#var:quest drop}}|,|1}}|{{#explode:{{#var:quest drop}}|,|1}}}}</td><!--% drop-->
   <td>{{#if:{{#explode:{{#var:quest drop}}|,|2}}|{{#explode:{{#var:quest drop}}|,|2}}}}</td><!--amount--></tr><tr>
   <td>{{#if:{{#explode:{{#var:quest drop}}|,|2}}|{{#explode:{{#var:quest drop}}|,|2}}}}</td><!--amount--></tr><tr>
}}</tr>}}}}
}}</tr>}}}}}}
</table></includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude>
</table></includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude>
trusted
5,929

edits

Navigation menu