Difference between revisions of "Template:Elite pack table span"
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
==Usage== | ==Usage== | ||
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 (optional) is the number of the Elite pack within the set. | * The first parameter (optional) is the number of the Elite pack within the set. | ||
Line 9: | Line 7: | ||
* 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. | ||
* The fourth parameter is either "vip" or empty, indicating whether the elite pack's availability is VIP-only. | * The fourth parameter is either "vip" or empty, indicating whether the elite pack's availability is VIP-only. | ||
+ | |||
+ | An alternative which occupies less horizontal space is [[Template:Elite pack table span 2]]. | ||
==Example== | ==Example== | ||
Line 15: | Line 15: | ||
<pre><nowiki> | <pre><nowiki> | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 | + | ! 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 |
|- | |- | ||
! A | ! A | ||
Line 42: | Line 42: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 | + | ! 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 |
|- | |- | ||
! A | ! A | ||
Line 65: | Line 65: | ||
|} | |} | ||
− | </noinclude><includeonly>{{#if:{{{1|}}}| | + | </noinclude><includeonly>{{#if:{{{1|}}}|{{#ifexpr:{{{1}}} > 1| |
+ | {{!}} colspan="{{#expr:{{{1}}} - 1}}" style="{{#if:{{#pos:{{LegacySetList}}|{{{3}}}}}|{{TintLegacy}}|{{TintStandard}}}}" {{!}} }} | ||
{{!}} style={{#ifeq:{{{4|}}}|vip|"background:#edd340;|"background:#a20a90;"}} {{!}}{{SetSymbol|{{{3}}}||<!-- | {{!}} style={{#ifeq:{{{4|}}}|vip|"background:#edd340;|"background:#a20a90;"}} {{!}}{{SetSymbol|{{{3}}}||<!-- | ||
-->{{#switch:{{{3}}} | -->{{#switch:{{{3}}} | ||
Line 73: | Line 74: | ||
|ELD|THB|IKO|M21=Elite pack card pools (ELD-M21)#{{{3}}}{{{1}}} | |ELD|THB|IKO|M21=Elite pack card pools (ELD-M21)#{{{3}}}{{{1}}} | ||
|ZNR|KHM|STX|AFR=Elite pack card pools (ZNR-AFR)#{{{3}}}{{{1}}} | |ZNR|KHM|STX|AFR=Elite pack card pools (ZNR-AFR)#{{{3}}}{{{1}}} | ||
− | |#{{{3}}}}}|{{Set expand|{{{3}}}}} - Elite pack #{{{1}}}}}<small>''' {{{1}}}'''</small>| | + | |#{{{3}}}}}|{{Set expand|{{{3}}}}} - Elite pack #{{{1}}}}}<!--<small>''' {{{1}}}'''</small>--><!-- |
− | {{!}} style="{{#if:{{#pos:{{LegacySetList}}|{{{3}}}}}|{{TintLegacy}}|{{TintStandard}}}}" {{!}} }}</includeonly> | + | -->{{#ifexpr:{{{2}}} - {{{1}}} > 0|<!-- |
+ | --> {{!}}{{!}} colspan="{{#expr:{{{2}}} - {{{1}}}}}" style="{{#if:{{#pos:{{LegacySetList}}|{{{3}}}}}|{{TintLegacy}}|{{TintStandard}}}}" {{!}} }}| | ||
+ | {{!}} colspan={{{2}}} style="{{#if:{{#pos:{{LegacySetList}}|{{{3}}}}}|{{TintLegacy}}|{{TintStandard}}}}" {{!}} }}</includeonly> |
Latest revision as of 08:49, 14 October 2021
Usage
Generates a span in an Elite pack tracking table, containing one highlighted cell.
- The first parameter (optional) is the number of the Elite pack within the set.
- The second parameter is the total number of cells in the span (in the set).
- The third parameter is the three-letter set abbreviation associated with the highlighted cell.
- The fourth parameter is either "vip" or empty, indicating whether the elite pack's availability is VIP-only.
An alternative which occupies less horizontal space is Template:Elite pack table span 2.
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||3|KLD}} {{Elite pack table span||3|AKH}} {{Elite pack table span|1|3|HOU}} {{Elite pack table span||1|XLN}} {{Elite pack table span||1|RIX}} {{Elite pack table span||3|DOM}} {{Elite pack table span|3|3|M19}} {{Elite pack table span|1|3|GRN}} |- ! B {{Elite pack table span||3|KLD}} {{Elite pack table span|1|3|AKH}} {{Elite pack table span||3|HOU}} {{Elite pack table span||1|XLN}} {{Elite pack table span|1|1|RIX}} {{Elite pack table span||3|DOM}} {{Elite pack table span||3|M19}} {{Elite pack table span|2|3|GRN|vip}} |}
Produces:
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | ||||||||||||||||||||
B |