Difference between revisions of "Template:Infobox set"

From mtgpq wiki
Jump to: navigation, search
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}}
+
| headerstyle = background:#eaecf0;font-weight:normal
| data2   = {{#if: {{#pos:{{StandardSetList}}|{{{1}}}}}|[[Standard]]| [[File:Legacy-bg.png|x18px|Legacy]] [[Legacy]]}}
+
| header2  =<!--
| label3 = Set mechanics
+
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} - 1}}}} }}|<!--
| data3   = {{#if:{{Card set data: {{{1}}}|7}}|<!--  {{#replace:{{Card set data: {{{1}}}|7}}|,|<br>}}}}
+
-->[[{{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;}}<!--
 +
-->[[{{{1}}}]] [[File:{{{1}}}_Symbol.png|x16px|{{{1}}}]]<!--
 +
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 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}}}}]]}}<br><small>''<!--
 +
-->{{#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}}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}}<!--
 +
-->{{Card set data: {{{1}}}|4}}<!--
 +
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}} }}|<!--
 +
-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{{Card set data: {{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}}|4}}}}''</small>
 +
| label4 = {{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{{1}}}}}|Format}}
 +
| data4   = {{#if: {{#pos:{{StandardSetList}}|{{{1}}}}}|[[Standard]]| [[File:Legacy-bg.png|x18px|Legacy]] [[Legacy]]}}
 +
| label5 = Set mechanics
 +
| data5   = {{#if:{{Card set data: {{{1}}}|7}}|<!--  {{#replace:{{Card set data: {{{1}}}|7}}|,|<br>}}}}
 
-->[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|0}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|0}}]]<!--
 
-->[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|0}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|0}}]]<!--
 
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|1}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|1}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|1}}]]}}<!--
 
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|1}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|1}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|1}}]]}}<!--
Line 38: Line 50:
 
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|9}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|9}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|9}}]]}}<!--
 
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|9}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|9}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|9}}]]}}<!--
 
-->|<small>''No new mechanics added''</small>}}
 
-->|<small>''No new mechanics added''</small>}}
| label4 = {{#if:{{Card set data: {{{1}}}|8}}|Cards}}
+
| label6 = {{#if:{{Card set data: {{{1}}}|8}}|Cards}}
| data4   = {{#if:{{Card set data: {{{1}}}|8}}|'''[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}} {{Card set data: {{{1}}}|8}}]'''}}
+
| data6   = {{#if:{{Card set data: {{{1}}}|8}}|'''[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}} {{Card set data: {{{1}}}|8}}]'''}}
| data5   = <!--
+
| data7   = <!--
 
-->{{#if:{{Card set data: {{{1}}}|14}}|{{Creatures|size=x14px}}[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}}&types=1 {{Card set data: {{{1}}}|14}}]}}<!--
 
-->{{#if:{{Card set data: {{{1}}}|14}}|{{Creatures|size=x14px}}[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}}&types=1 {{Card set data: {{{1}}}|14}}]}}<!--
 
-->{{#if:{{Card set data: {{{1}}}|15}}|&nbsp;'''·'''&nbsp;{{Spells|size=x14px}}[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}}&types=2 {{Card set data: {{{1}}}|15}}]}}<!--
 
-->{{#if:{{Card set data: {{{1}}}|15}}|&nbsp;'''·'''&nbsp;{{Spells|size=x14px}}[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}}&types=2 {{Card set data: {{{1}}}|15}}]}}<!--
 
-->{{#if:{{Card set data: {{{1}}}|16}}|&nbsp;'''·'''&nbsp;{{Supports|size=x14px}}[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}}&types=3 {{Card set data: {{{1}}}|16}}]}}
 
-->{{#if:{{Card set data: {{{1}}}|16}}|&nbsp;'''·'''&nbsp;{{Supports|size=x14px}}[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}}&types=3 {{Card set data: {{{1}}}|16}}]}}
| data6   = {{Card rarity counts|set={{Card set data: {{{1}}}|3}}|c={{Card set data: {{{1}}}|9}}|u={{Card set data: {{{1}}}|10}}|r={{Card set data: {{{1}}}|11}}|m={{Card set data: {{{1}}}|12}}|mp={{Card set data: {{{1}}}|13}}}}
+
| data8   = {{Card rarity counts|set={{Card set data: {{{1}}}|3}}|c={{Card set data: {{{1}}}|9}}|u={{Card set data: {{{1}}}|10}}|r={{Card set data: {{{1}}}|11}}|m={{Card set data: {{{1}}}|12}}|mp={{Card set data: {{{1}}}|13}}}}
| headerstyle = background:#ddf;font-weight:normal
+
| belowstyle = background:#ddf;
| header7 = '''[[Portal:Cards]]''' &nbsp; <small>([[Template:Infobox set|Infobox]] '''·''' [[Template:Card set data: {{{1}}}|Data]])</small>
+
| below = '''[[Portal:Cards]]''' &nbsp; <small>([[Template:Infobox set|Infobox]] '''·''' [[Template:Card set data: {{{1}}}|Data]])</small>
| data8  =<!--
 
-->{{#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}}}}]]&nbsp; &nbsp; ← &nbsp; &nbsp;}}<!--
 
-->[[{{{1}}}]] [[File:{{{1}}}_Symbol.png|x16px|{{{1}}}]]<!--
 
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 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}}}}]]}}
 
| data9  = <small>''<!--
 
-->{{#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}}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}}<!--
 
-->{{Card set data: {{{1}}}|4}}<!--
 
-->{{#if: {{#pos:{{LegacySetList}} {{StandardSetList}}|{{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}} }}|<!--
 
-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{{Card set data: {{id_to_set|{{#expr:{{Card set data: {{{1}}}|3}} + 1}}}}|4}}}}''</small>
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 06:45, 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)