Open main menu

mtgpq wiki β

Changes

Template:PWLevelTableRow

390 bytes added, 12:14, 2 January 2019
no edit summary
== Example ==
This shorthand within a table
<pre><nowiki>{{PWLevelTableRow |1| 1-5,1220 | 3,+1,-1,-1,+1,-1,0 | 1,6,3,2 | 2,32 | 5,0 | 10,0 | 10,0 | WR}}{{PWLevelTableRow |1| | | 6,'''7''',3,2 | | | | | WR}}{{PWLevelTableRow |1| | | | 2,35 | | | | WR}}{{PWLevelTableRow |1| | 6,'''+2''',-1,-1,+1,-1,0 | | | | | | WR}}{{PWLevelTableRow |1| | | | 2,38 | | | | WR}}{{PWLevelTableRow |2| 6-10,4580 | | | | 5,1 | | | WR}}{{PWLevelTableRow |2| | | | 2,41 | | | | WR}}{{PWLevelTableRow |2| | | 6,'''7''',3,4 | | | | | WR}}{{PWLevelTableRow |2| | | | 2,44 | | | | WR}}{{PWLevelTableRow |2| | 6,+2,-1,-1,'''+2''',-1,0 | | | | | | WR}}</nowiki></pre>
Produces:
{| class="wikitable"
{{PWLevelTableRow |1| 1-5,1220 | 3,+1,-1,-1,+1,-1,0 | 1,6,3,2 | 2,32 | 5,0 | 10,0 | 10,0 | WR}}{{PWLevelTableRow |1| | | 6,'''7''',3,2 | | | | | WR}}{{PWLevelTableRow |1| | | | 2,35 | | | | WR}}{{PWLevelTableRow |1| | 6,'''+2''',-1,-1,+1,-1,0 | | | | | | WR}}{{PWLevelTableRow |1| | | | 2,38 | | | | WR}}{{PWLevelTableRow |2| 6-10,4580 | | | | 5,1 | | | WR}}{{PWLevelTableRow |2| | | | 2,41 | | | | WR}}{{PWLevelTableRow |2| | | 6,'''7''',3,4 | | | | | WR}}{{PWLevelTableRow |2| | | | 2,44 | | | | WR}}{{PWLevelTableRow |2| | 6,+2,-1,-1,'''+2''',-1,0 | | | | | | WR}}
|}
| }}
| {{AltTableStyle{{{1}}}}} |
{{#if: {{{3|}}} | {{!}} rowspan="{{#explode:{{{3}}}|,|0}}" {{#if: {{#pos:{{{9}}}|W}} | style='background: #fdfeff;' | }} {{!}} {{#explode:{{{3}}}|,|1}} {{!}}{{!}} rowspan="{{#explode:{{{3}}}|,|0}}" {{#if: {{#pos:{{{9}}}|U}} | style='background: #dbe1fa;' | }} {{!}} {{#explode:{{{3}}}|,|2}} {{!}}{{!}} rowspan="{{#explode:{{{3}}}|,|0}}" {{#if: {{#pos:{{{9}}}|B}} | style='background: #e0e1e2;' | }} {{!}} {{#explode:{{{3}}}|,|3}} {{!}}{{!}} rowspan="{{#explode:{{{3}}}|,|0}}" {{#if: {{#pos:{{{9}}}|R}} | style='background: #f8e1e2;' | }} {{!}} {{#explode:{{{3}}}|,|4}} {{!}}{{!}} rowspan="{{#explode:{{{3}}}|,|0}}" {{#if: {{#pos:{{{9}}}|G}} | style='background: #e0f9e2;' | }} {{!}} {{#explode:{{{3}}}|,|5}} {{!}}{{!}} rowspan="{{#explode:{{{3}}}|,|0}}" {{!}} {{#explode:{{{3}}}|,|6}} | }}
| {{AltTableStyle{{{1}}}}} |
{{#if: {{{4|}}} | {{!}} rowspan="{{#explode:{{{4}}}|,|0}}" {{!}} {{#explode:{{{4}}}|,|1}} {{!}}{{!}} rowspan="{{#explode:{{{4}}}|,|0}}" {{!}} {{#explode:{{{4}}}|,|2}} {{!}}{{!}} rowspan="{{#explode:{{{4}}}|,|0}}" {{!}} {{#explode:{{{4}}}|,|3}} | }}