Difference between revisions of "Template:Set-Details"

From mtgpq wiki
Jump to: navigation, search
Line 5: Line 5:
 
* <code><nowiki>{{{title}}}</nowiki></code>: The set's name (e.g. Dominaria)
 
* <code><nowiki>{{{title}}}</nowiki></code>: The set's name (e.g. Dominaria)
 
* <code><nowiki>{{{abbr}}}</nowiki></code>: The abbreviation used for the set (e.g. DOM for Dominaria)
 
* <code><nowiki>{{{abbr}}}</nowiki></code>: The abbreviation used for the set (e.g. DOM for Dominaria)
* <code><nowiki>{{{icon}}}</nowiki></code>: The set's icon (e.g. Dominaria_Expansion_Symbol)
 
 
* <code><nowiki>{{{date}}}</nowiki></code>: The month/year the set was released (e.g. May 2018)
 
* <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>{{{version}}}</nowiki></code>: The version of the app the set released in (e.g. 2.7 for DOM)
Line 16: Line 15:
 
* <code><nowiki>{{{cards_u}}}</nowiki></code>: The number of uncommon cards in the set (e.g. 64)
 
* <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)
 
* <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 ==
 
== Example ==
Line 24: Line 25:
 
|title = Dominaria
 
|title = Dominaria
 
|abbr = DOM
 
|abbr = DOM
|icon = Dominaria_Expansion_Symbol
 
 
|date = May 2018
 
|date = May 2018
 
|version = 2.7
 
|version = 2.7
Line 42: Line 42:
 
|title = Dominaria
 
|title = Dominaria
 
|abbr = DOM
 
|abbr = DOM
|icon = Dominaria_Expansion_Symbol
 
 
|date = May 2018
 
|date = May 2018
 
|version = 2.7
 
|version = 2.7
Line 59: Line 58:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|Set code||{{{abbr}}}
+
|Set code:||{{{abbr}}}
 
|-
 
|-
|Set icon||[[File:{{{icon}}}.png|24px|{{{title}}} icon]]
+
|Set icon:||[[File:{{{abbr}}}_Symbol.png|24px|{{{title}}} icon]]
 
|-
 
|-
 
|Set introduced:||{{{date}}} (version {{{version}}})
 
|Set introduced:||{{{date}}} (version {{{version}}})

Revision as of 12:07, 11 August 2018

Shorthand for creating a table with set details for a given Set.

Parameters are:

  • {{{id}}}: The set's ID on mtgpq.info (e.g. 13)
  • {{{title}}}: The set's name (e.g. Dominaria)
  • {{{abbr}}}: The abbreviation used for the set (e.g. DOM for Dominaria)
  • {{{date}}}: The month/year the set was released (e.g. May 2018)
  • {{{version}}}: The version of the app the set released in (e.g. 2.7 for DOM)
  • {{{notes}}}: Release notes for the version
  • {{{mechanics}}}: Comma separated list of mechanics (e.g. "Saga, Historic, Leader")
  • {{{cards_total}}}: The total number of cards in the set (e.g. 211)
  • {{{cards_mp}}}: The number of masterpiece cards in the set (e.g. 10)
  • {{{cards_m}}}: The number of mythic cards in the set (e.g. 29)
  • {{{cards_r}}}: The number of rare cards in the set (e.g. 48)
  • {{{cards_u}}}: The number of uncommon cards in the set (e.g. 64)
  • {{{cards_c}}}: The number of common cards in the set (e.g. 60)

A file named {{{abbr}}}_Symbol.png is assumed to exist and is used for the set icon.

Example

This shorthand

{{Set-Details
|id = 13
|title = 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
}}

Produces:


Set code: DOM
Set icon: Dominaria icon
Set introduced: May 2018 (version 2.7)
Release notes: https://forums.d3go.com/discussion/72742/2-7-release-notes-updated-5-23-18
Set mechanics:
Total cards: 211
Masterpiece: 10
Mythic: 29
Rare: 48
Uncommon: 64
Common: 60