Open main menu

mtgpq wiki β

Changes

Template:Set-Details-Compact

1,226 bytes removed, 05:49, 25 February 2019
no edit summary
<noinclude>==Usage==Shorthand for creating rows a row of a table containing set details for a given Setcard set.
Parameters are:* <code><nowiki>{{{id}}}</nowiki></code>: The set's ID on mtgpq.info (e.g. 13)* <code><nowiki>{{{name}}}</nowiki></code>: The name of only parameter is the set (e.g. Dominaria)* <code><nowiki>{{{abbr}}}</nowiki></code>: The three-letter abbreviation used for the set (e.g. DOM)* <code><nowiki>{{{date}}}</nowiki></code>: The month/year the set was released (e.g. May 2018)* <code><nowiki>{{{version}}}</nowiki></code>: The version of the app the card set released in (e.g. 2.7 for DOM)* <code><nowiki>{{{notes}}}</nowiki></code>: Release notes for the version* <code><nowiki>{{{mechanics}}}</nowiki></code>: Comma separated list of zero or more mechanics (e.g. "Saga, Historic, Leader")* <code><nowiki>{{{cards_total}}}</nowiki></code>: The total number of cards in the set (e.g. 211)* <code><nowiki>{{{cards_mp}}}</nowiki></code>: The number of masterpiece cards in the set, if any (e.g. 10)* <code><nowiki>{{{cards_m}}}</nowiki></code>: The number of mythic cards in the set, if any (e.g. 29)* <code><nowiki>{{{cards_r}}}</nowiki></code>: The number of rare cards in the set, if any (e.g. 48)* <code><nowiki>{{{cards_u}}}</nowiki></code>: The number of uncommon cards in the set, if any (e.g. 64)* <code><nowiki>{{{cards_c}}}</nowiki></code>: The number of common cards in the set, if any (e.g. 60) A file named <code><nowiki>{{{abbr}}}_Symbol.png</nowiki></code> is assumed to exist and other data is used for pulled from the corresponding card set icondata template.
== Example ==
This The following shorthand within a table:
<pre><nowiki>
{| class="wikitable"{{Set-Details-Compact|id = 13|name = Dominaria|abbr = DOM}}|date = May 2018|version = 2.7|notes = https://forums.d3go.com/discussion/72742/2-7-release-notes-updated-5-23-18|mechanics = Saga,Historic,Leader|cards_total = 211|cards_mp = 10|cards_m = 29|cards_r = 48|cards_u = 64|cards_c = 60}}</nowiki></pre>
Produces:
{| class="wikitable"
{{Set-Details-Compact|id = 13|name = Dominaria|abbr = DOM|date = May 2018|version = 2.7|notes = https://forums.d3go.com/discussion/72742/2-7-release-notes-updated-5-23-18|mechanics = Saga,Historic,Leader|cards_total = 211|cards_mp = 10|cards_r = 48|cards_m = 29|cards_u = 64|cards_c = 60}}
|}
 
</noinclude><includeonly>|-
! rowspan="2" | {{SetSymbol|{{{abbr1}}}|48}}! rowspan="2" style="text-align: left;" | {{nowrap|[[{{Card set data: {{name{1}}}|1}}]] ({{{abbr1}}})}}<small>''[{{Card set data: {{{notes1}}}|6}} {{Card set data: {{{date1}}}|4}} (version {{Card set data: {{version{1}}}|5}})]''</small>| {{Card rarity counts|set={{Card set data: {id{{1}}}|3}}|total={{Card set data: {cards_total{{1}}}|8}}|c={{Card set data: {{{cards_c1}}}|}9}}|u={{Card set data: {{{cards_u1}}}|}10}}|r={{Card set data: {{cards_r{1}}}|}11}}|m={{Card set data: {{{cards_m1}}}|}12}}|mp={{Card set data: {{cards_mp{1}}}|}13}}}}
|-
| {{#if: {{#explode:{{Card set data: {mechanics{{1}}}|7}}|,|0}} | '''New mechanics:''' <small>&nbsp; [[Abilities#{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|0}}|{{#explode:{{Card set data: {mechanics{{1}}}|7}}|,|0}}]]<!---->{{#if: {{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|1}} |&nbsp;'''·''' [[Abilities#{{#explode:{{Card set data: {mechanics{{1}}}|7}}|,|1}}|{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|1}}]]}}<!---->{{#if: {{#explode:{{Card set data: {mechanics{{1}}}|7}}|,|2}} |&nbsp;'''·''' [[Abilities#{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|2}}|{{#explode:{{Card set data: {mechanics{{1}}}|7}}|,|2}}]]}}<!---->{{#if: {{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|3}} |&nbsp;'''·''' [[Abilities#{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|3}}|{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|3}}]]}}<!---->{{#if: {{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|4}} |&nbsp;'''·''' [[Abilities#{{#explode:{{Card set data: {{mechanics{1}}}|7}}|,|4}}|{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|4}}]]}}<!---->{{#if: {{#explode:{{Card set data: {{mechanics{1}}}|7}}|,|5}} |&nbsp;'''·''' [[Abilities#{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|5}}|{{#explode:{{Card set data: {mechanics{{1}}}|7}}|,|5}}]]}}<!---->{{#if: {{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|6}} |&nbsp;'''·''' [[Abilities#{{#explode:{{Card set data: {mechanics{{1}}}|7}}|,|6}}|{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|6}}]]}}<!---->{{#if: {{#explode:{{Card set data: {mechanics{{1}}}|7}}|,|7}} |&nbsp;'''·''' [[Abilities#{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|7}}|{{#explode:{{Card set data: {mechanics{{1}}}|7}}|,|7}}]]}}<!---->{{#if: {{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|8}} |&nbsp;'''·''' [[Abilities#{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|8}}|{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|8}}]]}}<!---->{{#if: {{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|9}} |&nbsp;'''·''' [[Abilities#{{#explode:{{Card set data: {{mechanics{1}}}|7}}|,|9}}|{{#explode:{{Card set data:{{{mechanics1}}}|7}}|,|9}}]]}}<!--
-->| <small>''(No new mechanics added)''
}}</small></includeonly>