Difference between revisions of "Template:Elite pack table span"

From mtgpq wiki
Jump to: navigation, search
Line 18: Line 18:
 
{{Elite pack table span|6|6|HOU}}
 
{{Elite pack table span|6|6|HOU}}
 
|-
 
|-
{{Elite pack table span|2|3|M19}}{{Elite pack table span|2|3|GRN}}
+
{{Elite pack table span|2|3|M19}}
 +
{{Elite pack table span|2|3|GRN}}
 
|}
 
|}
 
</nowiki></pre>
 
</nowiki></pre>
Line 35: Line 36:
 
|}
 
|}
  
</noinclude><includeonly>{{#ifexpr:{{{1}}} > 1|
+
</noinclude><includeonly>{{#ifexpr:{{{1}}} > 1|<!--
{{!}} colspan="{{#expr:{{{1}}} - 1}}" {{!}} }}
+
--> {{!}} colspan="{{#expr:{{{1}}} - 1}}" {{!}}&nbsp;}}<!--
| style="background:#a20a90;" | {{SetSymbol|{{{3}}}}}<!--
+
-->|| style="background:#a20a90;" | {{SetSymbol|{{{3}}}}}<!--
-->{{#ifexpr:{{{2}}} - {{{1}}} > 0|<br>
+
-->{{#ifexpr:{{{2}}} - {{{1}}} > 0|<!--
{{!}} colspan="{{#expr:{{{2}}} - {{{1}}}}}" {{!}} }}</includeonly>
+
--> {{!}}{{!}} colspan="{{#expr:{{{2}}} - {{{1}}}}}" {{!}}&nbsp;}}</includeonly>
  
 
[[Category:Event tip templates]]
 
[[Category:Event tip templates]]

Revision as of 07:24, 10 March 2019

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:

{| 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}}
|}

Produces:

1 2 3 4 5 6
  Amonkhet - Elite pack #2  
  Hour of Devastation - Elite pack #6
  Core Set 2019 - Elite pack #2     Guilds of Ravnica - Elite pack #2