Difference between revisions of "Template:Infobox set"

From mtgpq wiki
Jump to: navigation, search
Line 11: Line 11:
  
 
Produces:
 
Produces:
{{Infobox set|M19}}
+
{{Infobox set|BFZ}}
  
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
Line 23: Line 23:
 
| label1  = {{#if:{{Card set data: {{{1}}}|4}}|Released}}
 
| label1  = {{#if:{{Card set data: {{{1}}}|4}}|Released}}
 
| data1  = {{#if:{{Card set data: {{{1}}}|4}}|'''{{Card set data: {{{1}}}|4}}'''&nbsp;}}{{#if:{{Card set data: {{{1}}}|5}}|(version {{Card set data: {{{1}}}|5}})}}{{#if:{{Card set data: {{{1}}}|6}}|<br><small>[{{Card set data: {{{1}}}|6}} Release notes]</small>}}
 
| data1  = {{#if:{{Card set data: {{{1}}}|4}}|'''{{Card set data: {{{1}}}|4}}'''&nbsp;}}{{#if:{{Card set data: {{{1}}}|5}}|(version {{Card set data: {{{1}}}|5}})}}{{#if:{{Card set data: {{{1}}}|6}}|<br><small>[{{Card set data: {{{1}}}|6}} Release notes]</small>}}
 +
| label2  = {{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{{1}}}}}|Format}}
 +
| data2  = {{#if: {{#pos:{{StandardSetList}}|{{{1}}}}}|[[Standard]]| [[File:Legacy-bg.png|x18px|Legacy]] [[Legacy]]}}
 
| label3  = Set mechanics
 
| label3  = Set mechanics
 
| data3  = {{#if:{{Card set data: {{{1}}}|7}}|<!--  {{#replace:{{Card set data: {{{1}}}|7}}|,|<br>}}}}
 
| data3  = {{#if:{{Card set data: {{{1}}}|7}}|<!--  {{#replace:{{Card set data: {{{1}}}|7}}|,|<br>}}}}

Revision as of 06:36, 25 February 2019

Template usage

The only parameter is the three-letter expansion set abbreviation. The card set data is pulled from the associated data template.

Example

This shorthand:

{{Infobox set|M19}}

Produces:

Battle for Zendikar (BFZ)
EventsStoryPlaneswalkersCardsGuides
BFZ Symbol.png
Released Apr 2016 (version 1.4)
Release notes
Format Legacy Legacy
ORI ORI    ←    BFZ BFZ    →    OGW OGW
Dec 2015              Apr 2016              Jun 2016
Set mechanics AwakenAwaken
ConvergeConverge
DevoidDevoid
Ingest
Landfall
Process
Rally
Cards 238
Creatures133 · Spells68 · Supports37
Common97 · Uncommon75 · Rare42 · Mythic24
Portal:Cards   (Infobox · Data)