Difference between revisions of "Template:Infobox event"

From mtgpq wiki
Jump to: navigation, search
 
(37 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
==Example==
 
==Example==
 +
This shorthand:
 
<pre>
 
<pre>
{{Infobox event|A World Reborn}}
+
{{Infobox event|Ravnica at War: Eternity}}
 
</pre>
 
</pre>
  
{{Infobox event|A World Reborn}}
+
Produces:
 +
{{Infobox event|Ravnica at War: Eternity}}
  
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
Line 17: Line 19:
 
| headerstyle  = {{Infobox sec|header}}
 
| headerstyle  = {{Infobox sec|header}}
 
| labelstyle  = {{Infobox sec|label|width=30%}}
 
| labelstyle  = {{Infobox sec|label|width=30%}}
| above  = {{Event data: {{{1}}}|1}} {{#if:{{Event data: {{{1}}}|2}}|({{Event data: {{{1}}}|2}})}}
+
| subheader = {{Portal icons|noicon=1}}
| image  = {{#if:{{{image|}}}|[[File:{{{image}}}|250px]]}}
+
| above  = {{#explode:{{Event data: {{{1}}}|1}}|(|0}} {{#if:{{Event data: {{{1}}}|2}}|({{Event data: {{{1}}}|2}})}}
| label2 = {{#if:{{Event data: {{{1}}}|3}}|Type}}
+
| image  = {{#if:{{Event data: {{{1}}}|15}}|[[File:{{Event data: {{{1}}}|15}}|250px]]}}
| data2   = {{#if:{{Event data: {{{1}}}|3}}|<!--
+
| label1 = {{#if:{{Event data: {{{1}}}|3}}|Type}}
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|legacy}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
+
| data1   = {{#if:{{Event data: {{{1}}}|3}}|<!--
[[File:pvp-leg-coa.png|x24px|PvP Legacy Coalition|link=#Icon descriptions]] PvP Legacy Coalition | [[File:pvp-leg.png|x24px|PvP Legacy|link=#Icon descriptions]] PvP Legacy}} }} }}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|legacy}}|<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|standard}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|<!--
[[File:pvp-sta-coa.png|x24px|PvP Standard Coalition|link=#Icon descriptions]] PvP Standard Coalition| [[File:pvp-sta.png|x24px|PvP Standard|link=#Icon descriptions]] PvP Standard}} }} }}<!--
+
-->[[File:pvp-leg-coa.png|x24px|PvP Legacy Coalition|link=#Icon descriptions]] PvP Legacy Coalition<br>|<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|legacy}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
+
-->[[File:pvp-leg.png|x24px|PvP Legacy|link=Portal:Events#Icon descriptions]] PvP Legacy<br>}} }} }}<!--
[[File:pve-leg-coa.png|x24px|PvE Legacy Coalition|link=#Icon descriptions]] PvE Legacy Coalition| [[File:pve-leg.png|x24px|PvE Legacy|link=#Icon descriptions]] PvE Legacy}} }} }}<!--
+
 
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|standard}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|standard}}|<!--
[[File:pve-sta-coa.png|x24px|PvE Standard Coalition|link=#Icon descriptions]] PvE Standard Coalition| [[File:pve-sta.png|x24px|PvE Standard|link=#Icon descriptions]] PvE Standard}} }} }}
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|<!--
 +
-->[[File:pvp-sta-coa.png|x24px|PvP Standard Coalition|link=#Icon descriptions]] PvP Standard Coalition<br>|<!--
 +
-->[[File:pvp-sta.png|x24px|PvP Standard|link=Portal:Events#Icon descriptions]] PvP Standard<br>}} }} }}<!--
 +
 
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|legacy}}|<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|<!--
 +
-->[[File:pve-leg-coa.png|x24px|PvE Legacy Coalition|link=#Icon descriptions]] PvE Legacy Coalition<br>|<!--
 +
-->[[File:pve-leg.png|x24px|PvE Legacy|link=Portal:Events#Icon descriptions]] PvE Legacy<br>}} }} }}<!--
 +
 
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|standard}}|<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|<!--
 +
-->[[File:pve-sta-coa.png|x24px|PvE Standard Coalition|link=#Icon descriptions]] PvE Standard Coalition<br>|<!--
 +
-->[[File:pve-sta.png|x24px|PvE Standard|link=Portal:Events#Icon descriptions]] PvE Standard<br>}} }} }}<!--
 +
 
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|block}}|<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|<!--
 +
-->[[File:pvp-sta-coa.png|x24px|PvP Block Coalition|link=#Icon descriptions]] PvP Coalition<br><!--
 +
-->[[File:Spacing-horz.png|23px]]Block <small>&#91;{{Block restrict icons|{{{1}}}}}&#93;</small>|<!--
 +
-->[[File:pvp-sta.png|x24px|PvP Block|link=Portal:Events#Icon descriptions]] PvP<br><!--
 +
-->[[File:Spacing-horz.png|23px]]Block <small>&#91;{{Block restrict icons|{{{1}}}}}&#93;</small>}} }} }}<!--
 +
 
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|block}}|<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|<!--
 +
-->[[File:pve-sta-coa.png|x24px|PvE BlockCoalition|link=#Icon descriptions]] PvE Coalition<br><!--
 +
-->[[File:Spacing-horz.png|23px]]Block <small>&#91;{{Block restrict icons|{{{1}}}}}&#93;</small> |<!--
 +
-->[[File:pve-sta.png|x24px|PvE Block|link=Portal:Events#Icon descriptions]] PvE<br><!--
 +
-->[[File:Spacing-horz.png|23px]]Block <small>&#91;{{Block restrict icons|{{{1}}}}}&#93;</small>}} }} }}
 +
 
 
}}
 
}}
| label3 = {{#if:{{Event data: {{{1}}}|4}}|Rewards}}
+
| label2 = {{#if:{{Event data: {{{1}}}|4}}|Rewards}}
| data3   = {{#if:{{Event data: {{{1}}}|4}}|<!--
+
| data2   = {{#if:{{Event data: {{{1}}}|4}}|<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|progression}}|[[File:reward-progression.png|x24px|Progression rewards|link=#Icon descriptions]] Progression<br>}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|progression}}|[[File:reward-progression.png|x24px|Progression rewards|link=Portal:Events#Icon descriptions]] Progression<br>}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|placement}}|[[File:reward-placement.png|x24px|Placement rewards|link=#Icon descriptions]] Individual placement<br>}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|placement}}|[[File:reward-placement.png|x24px|Placement rewards|link=Portal:Events#Icon descriptions]] Individual placement<br>}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|coalition}}|[[File:reward-coalition.png|x24px|Coalition rewards|link=#Icon descriptions]] Coalition placement<br>}}}}
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|coalition}}|[[File:reward-coalition.png|x24px|Coalition rewards|link=Portal:Events#Icon descriptions]] Coalition placement<br>}}<!--
| label4  = {{#if:{{Event data: {{{1}}}|5}}|Nodes}}
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|winning-side}}|[[File:reward-winning-side.png|x24px|Winning side|link=Portal:Events#Icon descriptions]] Winning side<br>}}}}
| data4  = {{#if:{{Event data: {{{1}}}|5}}|'''{{Event data: {{{1}}}|5}}'''}}<!--
+
| label3  = {{#if:{{Event data: {{{1}}}|5}}|Entry fee}}
-->{{#if: {{Event data: {{{1}}}|6}}| &nbsp;(x{{Event data: {{{1}}}|6}} sub-nodes)}}
+
| data3  = {{#if:{{Event data: {{{1}}}|5}}|'''{{crystals|{{Event data: {{{1}}}|5}}}}'''}}
| label5 = {{#if:{{Event data: {{{1}}}|7}}|Charges}}
+
| label4 = {{#if:{{Event data: {{{1}}}|6}}|Nodes}}
| data5   = {{#if:{{Event data: {{{1}}}|7}}| * '''{{Event data: {{{1}}}|7}}''' initial charges}}
+
| data4   = {{#if:{{Event data: {{{1}}}|6}}|'''{{Event data: {{{1}}}|6}}'''}}<!--
{{#if:{{Event data: {{{1}}}|8}}| * '''{{Event data: {{{1}}}|8}}''' maximum charges}}
+
-->{{#if: {{Event data: {{{1}}}|7}}|{{#ifexpr: {{Event data: {{{1}}}|7}} > 1| &nbsp;(x{{Event data: {{{1}}}|7}} sub-nodes)}}}}
{{#if:{{Event data: {{{1}}}|9}}| * '''{{Event data: {{{1}}}|9}}''' recharge}}
+
| label5  = {{#if:{{Event data: {{{1}}}|8}}|Charges}}
| label6  = {{#if:{{Event data: {{{1}}}|10}}|Specials}}
+
| data5  = {{#if:{{Event data: {{{1}}}|8}}|'''{{Event data: {{{1}}}|8}}''' initial charges}}<!--
| data6  = {{#if:{{Event data: {{{1}}}|10}}|<!--
+
-->{{#if:{{Event data: {{{1}}}|9}}|<br>'''{{Event data: {{{1}}}|9}}''' maximum charges}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|color_restrict}}|[[File:event-color_restrict.png|x24px]] &nbsp;PW color-restricted<br>}}<!--
+
-->{{#if:{{Event data: {{{1}}}|19}}|{{#if:{{#pos:{{Event data: {{{1}}}|19}}|19}}||<br>'''+{{Event data: {{{1}}}|19}}''' charges per recharge  }}}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|locked_nodes}}|[[File:event-locked_nodes.png|x24px]] &nbsp; &nbsp;PW choice locked<br>}}<!--
+
-->{{#if:{{Event data: {{{1}}}|10}}|<br>'''{{Event data: {{{1}}}|10}}''' recharge time}}
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|pw_restrict}}|[[File:event-pw_restrict.png|x24px]] &nbsp;PW restricted<br>}}<!--
+
| label6  = {{#if:{{Event data: {{{1}}}|11}}|Specials}}
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|boss_hp}}|[[File:event-boss_hp.png|x24px]] &nbsp;Boss Health event<br>}}<!--
+
| data6  = {{#if:{{Event data: {{{1}}}|11}}|<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|duel_decks}}|[[File:event-duel_decks.png|x24px]] Duel Decks event<br>}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|duel_decks}}|{{Event Icon|duel_decks}} Duel Decks event<br>}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|perm_support}}|[[File:event-perm_support.png|x24px]] &nbsp;Perma-support in play<br>}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|color_restrict}}|{{Event Icon|color_restrict}} &nbsp;PW color-restricted<br>}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|special_rules}}|[[File:event-special_rules.png|x24px]] &nbsp;Special rules affect play<br>}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|locked_nodes}}|{{Event Icon|locked_nodes}} &nbsp; &nbsp;PW choice locked<br>}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|bonus_cards}}|[[File:event-bonus_cards.png|x24px]] Bonus cards in hand<br>}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|pw_restrict}}|{{Event Icon|pw_restrict}} &nbsp;PW restricted<br>}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|enraged}}|[[File:event-enraged.png|x24px]] &nbsp;Enraged (x2 damage)<br>}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|boss_hp}}|{{Event Icon|boss_hp}} &nbsp;Boss Health event<br>}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|supercharged}}|[[File:event-supercharged.png|x24px]] &nbsp;Supercharged (x2 mana)<br>}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|perm_support}}|{{Event Icon|perm_support}} &nbsp;Perma-support in play<br>}}<!--
-->{{#if: {{#pos:{{Event data: {{{1}}}|10}}|legendary}}|[[File:event-legendary.png|x24px]] &nbsp;Legendary (x2 both)<br>}}}}
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|special_rules}}|{{Event Icon|special_rules}} &nbsp;Special rules affect play<br>}}<!--
| label7  = {{#if:{{Event data: {{{1}}}|11}}|Introduced in}}
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|bonus_cards}}|{{Event Icon|bonus_cards}} Bonus cards in hand<br>}}<!--
| data7  = <!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|starting_cards}}|{{Event Icon|starting_cards}} Begin with cards in play<br>}}<!--
-->{{#if:{{Event data: {{{1}}}|13}}|{{SetSymbol|{{Event data: {{{1}}}|13}}}} [[{{Event data: {{{1}}}|13}}]]}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|enraged}}|{{Event Icon|enraged}} &nbsp;Enraged (x2 damage)<br>}}<!--
--> &nbsp; ''({{#if:{{Event data: {{{1}}}|11}}|{{Event data: {{{1}}}|11}}}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|supercharged}}|{{Event Icon|supercharged}} &nbsp;Supercharged (x2 mana)<br>}}<!--
-->{{#if:{{Event data: {{{1}}}|12}}|, v{{Event data: {{{1}}}|12}}}})''
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|legendary}}|{{Event Icon|legendary}} &nbsp;Legendary (x2 both)<br>}}}}
 
+
| label7  = {{#if:{{Event data: {{{1}}}|16}}|Card XP gain}}
 +
| data7  = {{#if:{{Event data: {{{1}}}|16}}|{{#ifeq:{{Event data: {{{1}}}|16}}|{{Event data: {{{1}}}|17}}|'''{{Event data: {{{1}}}|16}}''' XP ''<small>(all wins on a node)</small>''|'''{{Event data: {{{1}}}|16}}''' XP ''<small>(first win on node)</small>''<br>'''{{Event data: {{{1}}}|17}}''' XP ''<small>(subsequent wins on node)</small>''}}}}
 +
| label8  = {{#if:{{Event data: {{{1}}}|12}}|Introduced}}
 +
| data8  = <!--
 +
-->{{#if:{{Event data: {{{1}}}|14}}|{{SetSymbol|{{Event data: {{{1}}}|14}}}} [[{{Event data: {{{1}}}|14}}]]&nbsp;'''·'''&nbsp;}}<!--
 +
-->''{{#if:{{Event data: {{{1}}}|12}}|{{Event data: {{{1}}}|12}}}}<!--
 +
-->{{#if:{{Event data: {{{1}}}|13}}|&nbsp;'''·'''&nbsp;v{{Event data: {{{1}}}|13}}}}''
 
| belowstyle = background:#ddf;
 
| belowstyle = background:#ddf;
| below      = [[Events]]
+
| below      = '''[[Portal:Events]]''' &nbsp; <small>([[Template:Infobox event|Infobox]] '''·''' [[Template:Event data: {{{1}}}|Data]])</small>
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 11:50, 9 October 2020

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|Ravnica at War: Eternity}}

Produces:

Ravnica at War: Eternity (RaW:E)
EventsStoryPlaneswalkersCardsGuides
RaW-Eternity.png
Type PvP Block Coalition PvP Coalition
Spacing-horz.pngBlock [OriginsGuilds of RavnicaRavnica AllegianceWar of the SparkCore Set 2020Core Set 2021]
Rewards Progression rewards Progression
Placement rewards Individual placement
Coalition rewards Coalition placement
Nodes 3
Charges 1 initial charges
4 maximum charges
6h recharge time
Specials Color restriction  PW color-restricted
Locked nodes    PW choice locked
Permanent support  Perma-support in play
Card XP gain 20 XP (all wins on a node)
Introduced War of the Spark WAR · Jun 2019 · v3.5
Portal:Events   (Infobox · Data)