Template:Digtd

From A KoL Wiki
{{Digtd}}
| class="digsection"|{{#ifeq:{{#rand:1|10}}|1|<span style="color: #AAAAAA;">(100%)</span>

|{{#switch:{{{1}}}| whole=<u>{{{2}}}</u><br />({{#rand:0|99}}{{#ifeq:{{#rand:1|10}}|1|%|.{{#rand:1|9}}%}})|

section=<u>{{{2}}}: {{{3}}}</u><br />({{#rand:0|99}}%)}}}}

This template is used to create a table cell in Bigg's Dig. It supports building cells in either the whole Dig table or the 2nd layer section table. The percentage complete within the cell is randomized.

Usage

  • {{digtd|whole|17}}
17
(53%)
17
(71.4%)
17
(31.4%)
17
(59.3%)
  • {{digtd|section|17|3}}
17: 3
(11%)
17: 3
(97%)
17: 3
(24%)
(100%)