Difference between revisions of "Template:Elite pack table span"
Line 3: | Line 3: | ||
Generates a span in an Elite pack tracking table, containing one highlighted cell. | Generates a span in an Elite pack tracking table, containing one highlighted cell. | ||
− | * The first parameter is which cell in the span to highlight. | + | * The first parameter (optional) is which cell in the span to highlight. |
* The second parameter is the total number of cells in the span. | * The second parameter is the total number of cells in the span. | ||
* The third parameter is the three-letter set abbreviation associated with the highlighted cell. | * The third parameter is the three-letter set abbreviation associated with the highlighted cell. | ||
Line 22: | Line 22: | ||
! B | ! B | ||
{{Elite pack table span|4|9|HOU|2}} | {{Elite pack table span|4|9|HOU|2}} | ||
− | {{Elite pack table span|2| | + | {{Elite pack table span|2|4|M19|2}} |
+ | {{Elite pack table span||4|M19|}} | ||
{{Elite pack table span|2|3|GRN|3}} | {{Elite pack table span|2|3|GRN|3}} | ||
|} | |} | ||
Line 39: | Line 40: | ||
! B | ! B | ||
{{Elite pack table span|4|9|HOU|2}} | {{Elite pack table span|4|9|HOU|2}} | ||
− | {{Elite pack table span|2| | + | {{Elite pack table span|2|4|M19|2}} |
+ | {{Elite pack table span||4|M19|}} | ||
{{Elite pack table span|2|3|GRN|3}} | {{Elite pack table span|2|3|GRN|3}} | ||
|} | |} | ||
− | </noinclude><includeonly>{{#ifexpr:{{{1}}} > 1| | + | </noinclude><includeonly>{{#if:{{{1|}}}|{{#ifexpr:{{{1}}} > 1| |
{{!}} colspan="{{#expr:{{{1}}} - 1}}" {{!}} }} | {{!}} colspan="{{#expr:{{{1}}} - 1}}" {{!}} }} | ||
− | + | {{!}} style="background:#a20a90;" {{!}}{{SetSymbol|{{{3}}}||<!-- | |
-->{{#switch:{{{3}}} | -->{{#switch:{{{3}}} | ||
|KLD|AER|AKH|HOU=Elite pack card pools (KLD-HOU)#{{{3}}} | |KLD|AER|AKH|HOU=Elite pack card pools (KLD-HOU)#{{{3}}} | ||
Line 51: | Line 53: | ||
|#{{{3}}}}}|{{Set expand|{{{3}}}}} - Elite pack #{{{4}}}}}<!--<small>''' {{{4}}}'''</small>--><!-- | |#{{{3}}}}}|{{Set expand|{{{3}}}}} - Elite pack #{{{4}}}}}<!--<small>''' {{{4}}}'''</small>--><!-- | ||
-->{{#ifexpr:{{{2}}} - {{{1}}} > 0|<!-- | -->{{#ifexpr:{{{2}}} - {{{1}}} > 0|<!-- | ||
− | --> {{!}}{{!}} colspan="{{#expr:{{{2}}} - {{{1}}}}}" {{!}} }}</includeonly> | + | --> {{!}}{{!}} colspan="{{#expr:{{{2}}} - {{{1}}}}}" {{!}} }}| |
+ | {{!}} colspan={{{2}}} {{!}} }}</includeonly> |
Revision as of 09:59, 14 March 2019
Usage
Generates a span in an Elite pack tracking table, containing one highlighted cell.
- The first parameter (optional) is which cell in the span to highlight.
- The second parameter is the total number of cells in the span.
- The third parameter is the three-letter set abbreviation associated with the highlighted cell.
- The fourth parameter is the number of the Elite pack within the set.
Example
The following shorthand:
{| class="wikitable" ! 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || |- ! A {{Elite pack table span|7|9|HOU|1}} {{Elite pack table span|8|8|M19|1}} {{Elite pack table span|1|3|GRN|2}} |- ! B {{Elite pack table span|4|9|HOU|2}} {{Elite pack table span|2|4|M19|2}} {{Elite pack table span||4|M19|}} {{Elite pack table span|2|3|GRN|3}} |}
Produces:
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | ||||||||||||||||||||
B |