Changes

Jump to: navigation, search

Template:Set-Details-Compact

4,439 bytes added, 05:03, 30 December 2018
Created page with "<noinclude>Shorthand for creating a miniature table with set details for a given Set. Parameters are: * <code><nowiki>{{{id}}}</nowiki></code>: The set's ID on mtgpq.info (e...."
<noinclude>Shorthand for creating a miniature table with set details for a given 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 the set (e.g. Dominaria)
* <code><nowiki>{{{abbr}}}</nowiki></code>: The 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 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 (e.g. 10)
* <code><nowiki>{{{cards_m}}}</nowiki></code>: The number of mythic cards in the set (e.g. 29)
* <code><nowiki>{{{cards_r}}}</nowiki></code>: The number of rare cards in the set (e.g. 48)
* <code><nowiki>{{{cards_u}}}</nowiki></code>: The number of uncommon cards in the set (e.g. 64)
* <code><nowiki>{{{cards_c}}}</nowiki></code>: The number of common cards in the set (e.g. 60)

A file named <code><nowiki>{{{abbr}}}_Symbol.png</nowiki></code> is assumed to exist and is used for the set icon.

== Example ==
This shorthand
<pre><nowiki>
{{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:
{{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
}}
</noinclude><includeonly>{| class="wikitable"
|-
! [[File:{{{abbr}}}_Symbol.png|24px|{{{title}}} icon]] &nbsp; {{{name}}} ({{{abbr}}})
| colspan="2" | '''Cards:''' [https://mtgpq.info/cards/search?sets={{{id}}} {{{cards_total}}}] &nbsp; <small><!--
-->C:{{#ifeq: {{{cards_c}}}|0|0|[https://mtgpq.info/cards/search?rarities=5&sets={{{id}}} {{{cards_c}}}]}} <!--
-->U:{{#ifeq: {{{cards_u}}}|0|0|[https://mtgpq.info/cards/search?rarities=4&sets={{{id}}} {{{cards_u}}}]}} <!--
-->R:{{#ifeq: {{{cards_r}}}|0|0|[https://mtgpq.info/cards/search?rarities=3&sets={{{id}}} {{{cards_r}}}]}} <!--
-->M:{{#ifeq: {{{cards_m}}}|0|0|[https://mtgpq.info/cards/search?rarities=2&sets={{{id}}} {{{cards_m}}}]}} <!--
-->MP:{{#ifeq: {{{cards_mp}}}|0|0|[https://mtgpq.info/cards/search?rarities=1&sets={{{id}}} {{{cards_mp}}}]}}</small>
|-
| colspan="2" | [{{{notes}}} {{{date}}} (version {{{version}}})]
| {{#if: {{#explode:{{{mechanics}}}|,|0}} | '''New mechanics:''' [[Abilities#{{#explode:{{{mechanics}}}|,|0}}|{{#explode:{{{mechanics}}}|,|0}}]] <!--
-->{{#if: {{#explode:{{{mechanics}}}|,|1}} | [[Abilities#{{#explode:{{{mechanics}}}|,|1}}|{{#explode:{{{mechanics}}}|,|1}}]] | }} <!--
-->{{#if: {{#explode:{{{mechanics}}}|,|2}} | [[Abilities#{{#explode:{{{mechanics}}}|,|2}}|{{#explode:{{{mechanics}}}|,|2}}]] | }} <!--
-->{{#if: {{#explode:{{{mechanics}}}|,|3}} | [[Abilities#{{#explode:{{{mechanics}}}|,|3}}|{{#explode:{{{mechanics}}}|,|3}}]] | }} <!--
-->{{#if: {{#explode:{{{mechanics}}}|,|4}} | [[Abilities#{{#explode:{{{mechanics}}}|,|4}}|{{#explode:{{{mechanics}}}|,|4}}]] | }} <!--
-->{{#if: {{#explode:{{{mechanics}}}|,|5}} | [[Abilities#{{#explode:{{{mechanics}}}|,|5}}|{{#explode:{{{mechanics}}}|,|5}}]] | }} <!--
-->{{#if: {{#explode:{{{mechanics}}}|,|6}} | [[Abilities#{{#explode:{{{mechanics}}}|,|6}}|{{#explode:{{{mechanics}}}|,|6}}]] | }} <!--
-->{{#if: {{#explode:{{{mechanics}}}|,|7}} | [[Abilities#{{#explode:{{{mechanics}}}|,|7}}|{{#explode:{{{mechanics}}}|,|7}}]] | }} <!--
-->{{#if: {{#explode:{{{mechanics}}}|,|8}} | [[Abilities#{{#explode:{{{mechanics}}}|,|8}}|{{#explode:{{{mechanics}}}|,|8}}]] | }} <!--
-->{{#if: {{#explode:{{{mechanics}}}|,|9}} | [[Abilities#{{#explode:{{{mechanics}}}|,|9}}|{{#explode:{{{mechanics}}}|,|9}}]] | }} <!--
-->| ''(No new mechanics added)''
}}
|}</includeonly>

Navigation menu