Difference between revisions of "Template:Infobox set"
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}}''' }}{{#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}}''' }}{{#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]]}} | ||
| headerstyle = background:#eaecf0;font-weight:normal | | headerstyle = background:#eaecf0;font-weight:normal | ||
− | | | + | | header3 =<!-- |
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 1}}}} }}|<!-- | -->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 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}}}}]] ← }}<!-- | -->[[{{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}}}}]] ← }}<!-- | ||
Line 35: | Line 37: | ||
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}} }}|<!-- | -->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}} }}|<!-- | ||
--> {{Card set data: {{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}}|4}}}}''</small> | --> {{Card set data: {{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}}|4}}}}''</small> | ||
− | |||
− | |||
| label5 = Set mechanics | | label5 = Set mechanics | ||
| data5 = {{#if:{{Card set data: {{{1}}}|7}}|<!-- {{#replace:{{Card set data: {{{1}}}|7}}|,|<br>}}}} | | data5 = {{#if:{{Card set data: {{{1}}}|7}}|<!-- {{#replace:{{Card set data: {{{1}}}|7}}|,|<br>}}}} |
Revision as of 06:47, 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) | |
---|---|
Released |
Jul 2018 (version 2.8) Release notes |
Format | Legacy |
DOM ← M19 → ZVE May 2018 Jul 2018 Sep 2018 | |
Set mechanics |
Flash Stored Mana |
Cards | 190 |
104 · 56 · 30 | |
60 · 55 · 40 · 25 · 10 | |
Portal:Cards (Infobox · Data) |