Difference between revisions of "Template:Infobox set"

From mtgpq wiki
Jump to: navigation, search
Line 24: Line 24:
 
| 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:{{Card set data: {{{1}}}|7}}|Set mechanics}}
 
| label2  = {{#if:{{Card set data: {{{1}}}|7}}|Set mechanics}}
| data2  = {{#if:{{Card set data: {{{1}}}|7}}|{{#replace:{{Card set data: {{{1}}}|7}}|,|<br>}}}}
+
| data2  = {{#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}}]]<!--
 +
-->{{#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}}|,|2}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|2}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|2}}]]}}<!--
 +
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|3}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|3}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|3}}]]}}<!--
 +
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|4}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|4}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|4}}]]}}<!--
 +
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|5}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|5}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|5}}]]}}<!--
 +
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|6}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|6}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|6}}]]}}<!--
 +
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|7}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|7}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|7}}]]}}<!--
 +
-->{{#if: {{#explode:{{Card set data: {{{1}}}|7}}|,|8}} |<br>[[Abilities#{{#explode:{{Card set data: {{{1}}}|7}}|,|8}}|{{#explode:{{Card set data: {{{1}}}|7}}|,|8}}]]}}<!--
 +
-->{{#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>}}
 
| label3  = {{#if:{{Card set data: {{{1}}}|8}}|Cards}}
 
| label3  = {{#if:{{Card set data: {{{1}}}|8}}|Cards}}
 
| data3  = {{#if:{{Card set data: {{{1}}}|8}}|'''[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}} {{Card set data: {{{1}}}|8}}]'''}}
 
| data3  = {{#if:{{Card set data: {{{1}}}|8}}|'''[https://mtgpq.info/cards/search?sets={{Card set data: {{{1}}}|3}} {{Card set data: {{{1}}}|8}}]'''}}
 
 
 
 
| data4  = {{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}}}}
 
| data4  = {{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}}}}
 
 
 
| belowstyle = background:#ddf;
 
| belowstyle = background:#ddf;
 
| below      = '''[[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>
 
}}</includeonly>
 
}}</includeonly>

Revision as of 11:17, 24 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|GRN}}

Produces:

Guilds of Ravnica (GRN)
EventsStoryPlaneswalkersCardsGuides
GRN Symbol.png
Released Nov 2018 (version 3.0)
Release notes
Format Legacy Legacy
ZVE ZVE    ←    GRN GRN    →    RNA RNA
Sep 2018              Nov 2018              Mar 2019
Set mechanics ConvokeConvoke
Jump-startJump-start
MentorMentor
Surveil
Undergrowth
Cards 200
Creatures100 · Spells63 · Supports37
Common60 · Uncommon55 · Rare40 · Mythic35 · Masterpiece10
Portal:Cards   (Infobox · Data)