Difference between revisions of "Template:Set-Details-Compact"
(14 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>Shorthand for creating | + | <noinclude> |
+ | ==Usage== | ||
+ | Shorthand for creating a row of a table containing set details for a given card set. | ||
− | + | The only parameter is the three-letter abbreviation of the card set. The other data is pulled from the corresponding card set data template. If the parameter is empty or not present, no output is produced. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Example == | == Example == | ||
− | + | The following shorthand: | |
<pre><nowiki> | <pre><nowiki> | ||
− | {{Set-Details-Compact | + | {| class="wikitable" |
− | + | {{Set-Details-Compact|DOM}} | |
− | + | {{Set-Details-Compact|M19}} | |
− | | | + | |} |
− | + | </nowiki></pre> | |
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Produces: | Produces: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | {{Set-Details-Compact | + | {{Set-Details-Compact|DOM}} |
− | + | {{Set-Details-Compact|M19}} | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | }} | ||
|} | |} | ||
− | </noinclude><includeonly> | + | |
− | + | </noinclude><includeonly>{{#if:{{{1|}}}|<br> | |
− | ! | + | {{!}}- |
− | <small>''[{{{ | + | ! {{SetSymbol|{{{1}}}|48}} |
− | + | ! style="text-align: left;" {{!}} {{nowrap|[[{{Card set data: {{{1}}}|1}}]] ({{Trim|{{{1}}}}})}} | |
− | + | <small>''[{{Release data: {{Card set data: {{{1}}}|5}}|2}} {{Card set data: {{{1}}}|4}} (version {{Card set data: {{{1}}}|5}})]''</small> | |
− | + | {{!}} {{Card rarity counts|set={{Card set data: {{{1}}}|3}}|total={{Card set data: {{{1}}}|8}}|c={{Card set data: {{{1}}}|9}}|u={{Card set data: {{{1}}}|10}}|r={{Card set data: {{{1}}}|11}}|m={{Card set data: {{{1}}}|12}}|mp={{Card set data: {{{1}}}|13}}}} | |
− | + | {{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|0}} | '''New mechanics:''' <small> {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|0}}}}<!-- | |
− | -->{{# | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|1}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|1}}}}}}<!-- |
− | -->{{# | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|2}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|2}}}}}}<!-- |
− | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|3}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|3}}}}}}<!-- | |
− | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|4}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|4}}}}}}<!-- | |
− | -->{{#if: {{#explode:{{{ | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|5}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|5}}}}}}<!-- |
− | -->{{#if: {{#explode:{{{ | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|6}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|6}}}}}}<!-- |
− | -->{{#if: {{#explode:{{{ | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|7}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|7}}}}}}<!-- |
− | -->{{#if: {{#explode:{{{ | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|8}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|8}}}}}}<!-- |
− | -->{{#if: {{#explode:{{{ | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|9}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|9}}}}}}<!-- |
− | -->{{#if: {{#explode:{{{ | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|10}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|10}}}}}}<!-- |
− | -->{{#if: {{#explode:{{{ | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|11}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|11}}}}}}<!-- |
− | -->{{#if: {{#explode:{{{ | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|12}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|12}}}}}}<!-- |
− | -->{{#if: {{#explode:{{{ | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|13}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|13}}}}}}<!-- |
− | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|14}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|14}}}}}}<!-- | |
− | }} | + | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|15}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|15}}}}}}<!-- |
+ | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|16}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|16}}}}}}<!-- | ||
+ | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|17}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|17}}}}}}<!-- | ||
+ | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|18}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|18}}}}}}<!-- | ||
+ | -->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|19}} | '''·''' {{Ability|{{#explode:{{Card set data: {{{1}}}|7}}|,|19}}}}}}<!-- | ||
+ | -->|<small>''(No new mechanics added)'' | ||
+ | }}</small>}}</includeonly> |
Latest revision as of 17:03, 11 October 2022
Usage
Shorthand for creating a row of a table containing set details for a given card set.
The only parameter is the three-letter abbreviation of the card set. The other data is pulled from the corresponding card set data template. If the parameter is empty or not present, no output is produced.
Example
The following shorthand:
{| class="wikitable" {{Set-Details-Compact|DOM}} {{Set-Details-Compact|M19}} |}
Produces:
Dominaria (DOM) | Cards: 192 (60 · 55 · 41 · 26 · 10) | |
---|---|---|
Core Set 2019 (M19) | Cards: 190 (60 · 55 · 40 · 25 · 10)
New mechanics: Flash · Stored Mana |