Difference between revisions of "Template:Quest infobox"

Removed drop columns if nothing gets dropped
(Removed drop columns if nothing gets dropped)
Line 1: Line 1:
<includeonly><onlyinclude>{{#arraydefine:hidden phases|{{#var:hide phases|}}|;}}<table class='qtable sortable' style='min-width: 800px;
<includeonly><onlyinclude>{{#arraydefine:hidden phases|{{#var:hide phases|}}|;}}{{#vardefine:show items|false}}{{#forargs:drops||value|{{#if:{{#var:value}}|{{#vardefine:show items|true}}}}}}<table class='qtable sortable' style='min-width: 800px;
text-align: center;
text-align: center;
border: 1px solid black;'>
border: 1px solid black;'>
Line 5: Line 5:
   <th><abbr title="The amount of runs ran to obtain this quest's data.<!--Statistically, n=30+ will yield sound statistics, but for our use cases, five should be good enough.-->">n={{{n|?}}}</abbr></th>
   <th><abbr title="The amount of runs ran to obtain this quest's data.<!--Statistically, n=30+ will yield sound statistics, but for our use cases, five should be good enough.-->">n={{{n|?}}}</abbr></th>
   <th colspan='8'>Enemies</th>
   <th colspan='8'>Enemies</th>
   <th colspan='3'>Drops</th>
   {{#ifeq:{{#var:show items}}|true|<th colspan='3'>Drops</th>}}
  </tr>
  </tr>
  <tr style='background-color: #bbbbbb;'>
  <tr style='background-color: #bbbbbb;'>
Line 17: Line 17:
   <th style='min-width:25px'><abbr title="The card's base attack used.">ATK</abbr></th>
   <th style='min-width:25px'><abbr title="The card's base attack used.">ATK</abbr></th>
   <th style='min-width:25px'><abbr title="How many cards of this type will occur in this phase.">#</abbr></th>
   <th style='min-width:25px'><abbr title="How many cards of this type will occur in this phase.">#</abbr></th>
   <th style='min-width:150px'><abbr title="The item rewarded for clearing this phase.">Item</abbr></th>
   {{#ifeq:{{#var:show items}}|true|<th style='min-width:150px'><abbr title="The item rewarded for clearing this phase.">Item</abbr></th>
   <th style='min-width:25px'><abbr title="The average percent chance of receiving this item.">%</abbr></th>
   <th style='min-width:25px'><abbr title="The average percent chance of receiving this item.">%</abbr></th>
   <th style='min-width:25px'><abbr title="The amount rewarded in one drop.">Amount</abbr></th>
   <th style='min-width:25px'><abbr title="The amount rewarded in one drop.">Amount</abbr></th>}}
  </tr>
  </tr>
{{#loop:phasecount
{{#loop:phasecount
Line 39: Line 39:
   <td>{{#if:{{#explode:{{#var:quest enemy}}|,|6}}|{{#ifeq:{{#explode:{{#var:quest enemy}}|,|6}}|auto|{{#expr:{{#show:{{#var:quest enemy subobject}}|?Has atk value #}}+{{#show:{{#var:quest enemy subobject}}|?Has atk growth value #}}*({{#explode:{{#var:quest enemy}}|,|2}}-1) round 0}}|{{#explode:{{#var:quest enemy}}|,|6}}}}}}</td><!--ATK-->
   <td>{{#if:{{#explode:{{#var:quest enemy}}|,|6}}|{{#ifeq:{{#explode:{{#var:quest enemy}}|,|6}}|auto|{{#expr:{{#show:{{#var:quest enemy subobject}}|?Has atk value #}}+{{#show:{{#var:quest enemy subobject}}|?Has atk growth value #}}*({{#explode:{{#var:quest enemy}}|,|2}}-1) round 0}}|{{#explode:{{#var:quest enemy}}|,|6}}}}}}</td><!--ATK-->
   <td>{{#if:{{#explode:{{#var:quest enemy}}|,|7}}|{{#explode:{{#var:quest enemy}}|,|7}}}}</td><!--Number-->{{#vardefine:quest drop|{{#arrayindex:quest drop list|{{#var:i}}}}}}
   <td>{{#if:{{#explode:{{#var:quest enemy}}|,|7}}|{{#explode:{{#var:quest enemy}}|,|7}}}}</td><!--Number-->{{#vardefine:quest drop|{{#arrayindex:quest drop list|{{#var:i}}}}}}
   <td style='text-align:left;'>{{#if:{{#explode:{{#var:quest drop}}|,|0}}|{{#ifexpr:{{#explode:{{#var:quest drop}}|,|0}} < 100000|{{#ifexpr:{{#explode:{{#var:quest drop}}|,|0}} < 1000|{{Item|id={{#explode:{{#var:quest drop}}|,|0}}}}|{{AR Equipment|id={{#explode:{{#var:quest drop}}|,|0}}}}}}|<!--transient drops-->{{Transient icon|id={{#explode:{{#var:quest drop}}|,|0}}}}}}}}</td><!--item-->
   {{#ifeq:{{#var:show items}}|true|<td style='text-align:left;'>{{#if:{{#explode:{{#var:quest drop}}|,|0}}|{{#ifexpr:{{#explode:{{#var:quest drop}}|,|0}} < 100000|{{#ifexpr:{{#explode:{{#var:quest drop}}|,|0}} < 1000|{{Item|id={{#explode:{{#var:quest drop}}|,|0}}}}|{{AR Equipment|id={{#explode:{{#var:quest drop}}|,|0}}}}}}|<!--transient drops-->{{Transient icon|id={{#explode:{{#var:quest drop}}|,|0}}}}}}}}</td><!--item-->
   <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>}}}}}}{{#vardefine:show items|false}}
</table></includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude>
</table></includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude>
trusted
5,929

edits