Difference between revisions of "Template:Set-Details"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude>Shorthand for creating a table with set details for a given Set. Parameters are: * <code><nowiki>{{{title}}}</nowiki></code>: The set's name (e.g. Dominaria) * <co...")
 
Line 2: Line 2:
  
 
Parameters are:
 
Parameters are:
 +
* <code><nowiki>{{{id}}}</nowiki></code>: The set's ID on mtgpq.info (e.g. 13)
 
* <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)
Line 7: Line 8:
 
* <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)
* <code><nowiki>{{{notes}}}</nowiki></code>: Release notes for the verion
+
* <code><nowiki>{{{notes}}}</nowiki></code>: Release notes for the version
 
* <code><nowiki>{{{mechanics}}}</nowiki></code>: Comma separated list of mechanics (e.g. "Saga, Historic, Leader")
 
* <code><nowiki>{{{mechanics}}}</nowiki></code>: Comma separated list of mechanics (e.g. "Saga, Historic, Leader")
* <code><nowiki>{{{abbr}}}</nowiki></code>: The abbreviation used for the set (e.g. AKH for Amonkhet)
+
* <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)
  
 
== Example ==
 
== Example ==
Line 15: Line 21:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Set-Details
 
{{Set-Details
 +
|id = 13
 
|title = Dominaria
 
|title = Dominaria
 
|abbr = DOM
 
|abbr = DOM
Line 21: Line 28:
 
|version = 2.7
 
|version = 2.7
 
|notes = https://forums.d3go.com/discussion/72742/2-7-release-notes-updated-5-23-18
 
|notes = https://forums.d3go.com/discussion/72742/2-7-release-notes-updated-5-23-18
|Set mechanics:
+
|mechanics = Saga, Historic, Leader
 +
|cards_total = 211
 +
|cards_mp = 10
 +
|cards_m = 29
 +
|cards_r = 48
 +
|cards_u = 64
 +
|cards_c = 60
 
}}</nowiki></pre>
 
}}</nowiki></pre>
  
 
Produces:
 
Produces:
 
{{Set-Details
 
{{Set-Details
 +
|id = 13
 
|title = Dominaria
 
|title = Dominaria
 
|abbr = DOM
 
|abbr = DOM
Line 32: Line 46:
 
|version = 2.7
 
|version = 2.7
 
|notes = https://forums.d3go.com/discussion/72742/2-7-release-notes-updated-5-23-18
 
|notes = https://forums.d3go.com/discussion/72742/2-7-release-notes-updated-5-23-18
|Set mechanics:
+
|mechanics = Saga, Historic, Leader
 +
|cards_total = 211
 +
|cards_mp = 10
 +
|cards_m = 29
 +
|cards_r = 48
 +
|cards_u = 64
 +
|cards_c = 60
 
}}
 
}}
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 +
 
=={{{title}}}==
 
=={{{title}}}==
 
{| class="wikitable"
 
{| class="wikitable"
Line 46: Line 67:
 
|Release notes:||{{{notes}}}
 
|Release notes:||{{{notes}}}
 
|-
 
|-
|Set mechanics:||TODO
+
|Set mechanics:||
 +
{{
 +
#ifeq: {{#explode:{{{mechanics}}}|,|0}} | "None" | "None" |
 +
* [[{{#explode:{{{mechanics}}}|,|0}}]]
 +
{{#if: {{#explode:{{{mechanics}}}|,|1}} | * [[{{#explode:{{{mechanics}}}|,|1}}]] | }}
 +
{{#if: {{#explode:{{{mechanics}}}|,|2}} | * [[{{#explode:{{{mechanics}}}|,|2}}]] | }}
 +
{{#if: {{#explode:{{{mechanics}}}|,|3}} | * [[{{#explode:{{{mechanics}}}|,|3}}]] | }}
 +
{{#if: {{#explode:{{{mechanics}}}|,|4}} | * [[{{#explode:{{{mechanics}}}|,|4}}]] | }}
 +
{{#if: {{#explode:{{{mechanics}}}|,|5}} | * [[{{#explode:{{{mechanics}}}|,|5}}]] | }}}}
 
|-
 
|-
|Total cards:||[https://mtgpq.info/cards/search?sets=13 211]
+
|Total cards:||[https://mtgpq.info/cards/search?sets={{{id}}} {{{cards_total}}}]
 
|-
 
|-
|Masterpiece:||[https://mtgpq.info/cards/search?rarities=1&sets=13 10]
+
|Masterpiece:||[https://mtgpq.info/cards/search?rarities=1&sets={{{id}}} {{{cards_mp}}}]
 
|-
 
|-
|Mythic:||[https://mtgpq.info/cards/search?rarities=2&sets=13 29]
+
|Mythic:||[https://mtgpq.info/cards/search?rarities=2&sets={{{id}}} {{{cards_m}}}]
 
|-
 
|-
|Rare:||[https://mtgpq.info/cards/search?rarities=3&sets=13 48]
+
|Rare:||[https://mtgpq.info/cards/search?rarities=3&sets={{{id}}} {{{cards_r}}}]
 
|-
 
|-
|Uncommon:||[https://mtgpq.info/cards/search?rarities=4&sets=13 64]
+
|Uncommon:||[https://mtgpq.info/cards/search?rarities=4&sets={{{id}}} {{{cards_u}}}]
 
|-
 
|-
|Common:||[https://mtgpq.info/cards/search?rarities=5&sets=13 60]
+
|Common:||[https://mtgpq.info/cards/search?rarities=5&sets={{{id}}} {{{cards_c}}}]
 
|}</includeonly>
 
|}</includeonly>

Revision as of 11:35, 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)
  • {{{icon}}}: The set's icon (e.g. Dominaria_Expansion_Symbol)
  • {{{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)

Example

This shorthand

{{Set-Details
|id = 13
|title = Dominaria
|abbr = DOM
|icon = Dominaria_Expansion_Symbol
|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