Open main menu

mtgpq wiki β

Changes

Template:Elite pack table span

1,092 bytes added, 06:30, 10 March 2019
Created page with "<noinclude> ==Usage== 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 s..."
<noinclude>
==Usage==
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 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.

==Example==

The following shorthand:
<pre><nowiki>
{| class="wikitable"
! 1 || 2 || 3 || 4 || 5 || 6
|-
{{Elite pack table span|2|6|AKH}}
|-
{{Elite pack table span|6|6|HOU}}
|-
{{Elite pack table span|2|3|M19}}
{{Elite pack table span|2|3|GRN}}
|}
</nowiki></pre>

Produces:

{| class="wikitable"
! 1 || 2 || 3 || 4 || 5 || 6
|-
{{Elite pack table span|2|6|AKH}}
|-
{{Elite pack table span|6|6|HOU}}
|-
{{Elite pack table span|2|3|M19}}
{{Elite pack table span|2|3|GRN}}
|}

</noinclude><includeonly>
{{#ifexpr:{{{1}}} > 1|
{{!}} colspan="{{#expr:{{{1}}} - 1}}" {{!}} }}
| style="background:#a20a90;" | {{SetSymbol|{{{3}}}}}
{{#ifexpr:{{{2}}} - {{{1}}} > 0|
{{!}} colspan="{{#expr:{{{2}}} - {{{1}}}}}" {{!}} }}
</includeonly>

[[Category:Event tip templates]]