Difference between revisions of "Template:Infobox event"

From mtgpq wiki
Jump to: navigation, search
Line 12: Line 12:
 
Produces:
 
Produces:
 
{{Infobox event|A World Reborn}}
 
{{Infobox event|A World Reborn}}
 +
 +
{{Infobox event|Terrors in the Shadows}}
  
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
Line 41: Line 43:
 
| label4  = {{#if:{{Event data: {{{1}}}|6}}|Nodes}}
 
| label4  = {{#if:{{Event data: {{{1}}}|6}}|Nodes}}
 
| data4  = {{#if:{{Event data: {{{1}}}|6}}|'''{{Event data: {{{1}}}|6}}'''}}<!--
 
| data4  = {{#if:{{Event data: {{{1}}}|6}}|'''{{Event data: {{{1}}}|6}}'''}}<!--
-->{{#if: {{Event data: {{{1}}}|7}}| &nbsp;(x{{Event data: {{{1}}}|7}} sub-nodes)}}
+
-->{{#if: {{Event data: {{{1}}}|7}}|{{#ifexpr: {{Event data: {{{1}}}|7}} > 1| &nbsp;(x{{Event data: {{{1}}}|7}} sub-nodes)}}}}
 
| label5  = {{#if:{{Event data: {{{1}}}|8}}|Charges}}
 
| label5  = {{#if:{{Event data: {{{1}}}|8}}|Charges}}
 
| data5  = {{#if:{{Event data: {{{1}}}|8}}|'''{{Event data: {{{1}}}|8}}''' initial charges}}<!--
 
| data5  = {{#if:{{Event data: {{{1}}}|8}}|'''{{Event data: {{{1}}}|8}}''' initial charges}}<!--

Revision as of 05:56, 1 March 2019

Template usage

The only parameter is the event name. The event data is pulled from the associated event data template.

Example

This shorthand:

{{Infobox event|A World Reborn}}

Produces:

A World Reborn (AWR)
EventsStoryPlaneswalkersCardsGuides
AWorldReborn.png
Type PvE Legacy Coalition PvE Legacy Coalition
Rewards Progression rewards Progression
Coalition rewards Coalition placement
Nodes 2 (x3 sub-nodes)
Charges 2 initial charges
5 maximum charges
8h recharge time
Specials Permanent support  Perma-support in play
Bonus cards Bonus cards in hand
Introduced Dominaria DOM · May 2018 · v2.7
Portal:Events   (Infobox · Data)
Terrors in the Shadows (TiS)
EventsStoryPlaneswalkersCardsGuides
TerrorsintheShadows.png
Type PvP Legacy PvP Legacy
Rewards Progression rewards Progression
Placement rewards Individual placement
Nodes 3
Charges 3 initial charges
5 maximum charges
8h recharge time
Specials Color restriction  PW color-restricted
Locked nodes    PW choice locked
Enraged (2x damage)  Enraged (x2 damage)
Card XP gain 20 XP (all wins on a node)
Introduced Shadows over Innistrad SOI · Aug 2016 · v1.6
Portal:Events   (Infobox · Data)