Difference between revisions of "Template:Infobox set"

From mtgpq wiki
Jump to: navigation, search
Line 27: Line 27:
 
| headerstyle = background:#eaecf0;font-weight:normal
 
| headerstyle = background:#eaecf0;font-weight:normal
 
| header3  =<!--
 
| header3  =<!--
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 1}}}} }}|<!--
+
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{Set_relative|{{{1}}}|-1}} }}|<!--
-->[[{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 1}}}}]] [[File:{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 1}}}}_Symbol.png|x16px|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 1}}}}]]&nbsp; &nbsp; ← &nbsp; &nbsp;<!--
+
-->[[{{Set_relative|{{{1}}}|-1}}]] [[File:{{Set_relative|{{{1}}}|-1}}_Symbol.png|x16px|{{Set_relative|{{{1}}}|-1}}]]<!--
-->|{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 2}}}} }}|<!--
+
-->&nbsp; &nbsp; ← &nbsp; &nbsp;<!--
-->[[{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 2}}}}]] [[File:{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 2}}}}_Symbol.png|x16px|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 2}}}}]]&nbsp; &nbsp; ← &nbsp; &nbsp;}}}}<!--
+
-->|{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{Set_relative|{{{1}}}|-2}} }}|<!--
 +
-->[[{{Set_relative|{{{1}}}|-2}}]] [[File:{{Set_relative|{{{1}}}|-2}}_Symbol.png|x16px|{{Set_relative|{{{1}}}|-2}}]]<!--
 +
-->&nbsp; &nbsp; ← &nbsp; &nbsp;}}}}<!--
 
-->[[{{{1}}}]] [[File:{{{1}}}_Symbol.png|x16px|{{{1}}}]]<!--
 
-->[[{{{1}}}]] [[File:{{{1}}}_Symbol.png|x16px|{{{1}}}]]<!--
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}} }}|<!--
+
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{Set_relative|{{{1}}}|+1}} }}|<!--
-->&nbsp; &nbsp; → &nbsp; &nbsp;[[{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}}]] [[File:{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}}_Symbol.png|x16px|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}}]]<!--
+
-->&nbsp; &nbsp; → &nbsp; &nbsp;<!--
-->|{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 2}}}} }}|<!--
+
-->[[{{Set_relative|{{{1}}}|+1}}]] [[File:{{Set_relative|{{{1}}}|+1}}_Symbol.png|x16px|{{Set_relative|{{{1}}}|+1}}]]<!--
-->&nbsp; &nbsp; → &nbsp; &nbsp;[[{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 2}}}}]] [[File:{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 2}}}}_Symbol.png|x16px|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 2}}}}]]<!--
+
-->|{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{Set_relative|{{{1}}}|+2}} }}|<!--
 +
-->&nbsp; &nbsp; → &nbsp; &nbsp;<!--
 +
-->[[{{Set_relative|{{{1}}}|+2}}]] [[File:{{Set_relative|{{{1}}}|+2}}_Symbol.png|x16px|{{Set_relative|{{{1}}}|+2}}]]<!--
 
-->}}}}<!--
 
-->}}}}<!--
 
--><br><small>''<!--
 
--><br><small>''<!--
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 1}}}} }}|<!--
+
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{Set_relative|{{{1}}}|-1}} }}|<!--
-->{{Card set data: {{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 1}}}}|4}}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<!--
+
-->{{Card set data: {{Set_relative|{{{1}}}|-1}}|4}}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<!--
-->|{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 2}}}} }}|<!--
+
-->|{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{Set_relative|{{{1}}}|-2}} }}|<!--
-->{{Card set data: {{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 2}}}}|4}}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}}}}<!--
+
-->{{Card set data: {{Set_relative|{{{1}}}|-2}}|4}}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}}}}<!--
 
-->{{Card set data: {{{1}}}|4}}<!--
 
-->{{Card set data: {{{1}}}|4}}<!--
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}} }}|<!--
+
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{Set_relative|{{{1}}}|+1}} }}|<!--
-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{{Card set data: {{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}}|4}}<!--
+
-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{{Card set data: {{Set_relative|{{{1}}}|+1}}|4}}<!--
-->|{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 2}}}} }}|<!--
+
-->|{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{Set_relative|{{{1}}}|+2}} }}|<!--
-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{{Card set data: {{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 2}}}}|4}}<!--
+
-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{{Card set data: {{Set_relative|{{{1}}}|+2}}|4}}<!--
 
-->}}}}''</small>
 
-->}}}}''</small>
 
| label5  = Set mechanics
 
| label5  = Set mechanics

Revision as of 08:18, 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:

Core Set 2019 (M19)
EventsStoryPlaneswalkersCardsGuides
M19 Symbol.png
Released Jul 2018 (version 2.8)
Release notes
Format Legacy Legacy
DOM DOM    ←    M19 M19    →    ZVE ZVE
May 2018              Jul 2018              Sep 2018
Set mechanics FlashFlash
Stored ManaStored Mana
Cards 190
Creatures104 · Spells56 · Supports30
Common60 · Uncommon55 · Rare40 · Mythic25 · Masterpiece10
Portal:Cards   (Infobox · Data)