Difference between revisions of "Template:EventTableRow"

From mtgpq wiki
Jump to: navigation, search
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>Shorthand for creating a row of a table containing details of an event.
 
<noinclude>Shorthand for creating a row of a table containing details of an event.
  
(In development: This template will be upgraded to replace some text with icons)
+
The only parameter is the event name.  The event data is pulled from the associated event data template.
 
 
Parameters are:
 
* <code><nowiki>{{{name}}}</nowiki></code>: The name of the event (e.g. A World Reborn)
 
* <code><nowiki>{{{alias}}}</nowiki></code>: An alias for the event, if any (e.g. AWR)
 
* <code><nowiki>{{{set}}}</nowiki></code>: The abbreviation of the most recently released set when the event was released (e.g. DOM)
 
* <code><nowiki>{{{type}}}</nowiki></code>: A list of types of the event, which may include one or more of: pvp, pve, legacy, standard, or coalition(e.g. pve,standard,coalition)
 
* <code><nowiki>{{{rewards}}}</nowiki></code>: The reward categories for the event, which may include one or more of: progression, placement, coalition (e.g. progression,coalition)
 
* <code><nowiki>{{{nodes}}}</nowiki></code>: The node details of the event: number of nodes, number of sub-nodes per node, starting charges, max charges, recharge time.  (e.g. 2,3,2,5,8h)
 
* <code><nowiki>{{{specials}}}</nowiki></code>: Any other special details of the event, which may include one or more of: bonus_cards, boss_hp, color_restrict, duel_decks, enraged, locked_nodes, perm_support, premade_deck, pw_restrict, special_rules, supercharged.  (e.g. perm_support,bonus_cards)
 
* <code><nowiki>{{{entry_cost_crystals}}}</nowiki></code>: The entry cost of the event in crystals, if any.
 
  
 
== Example ==
 
== Example ==
 
This shorthand within a table
 
This shorthand within a table
 
<pre><nowiki>
 
<pre><nowiki>
{{EventTableRow
+
{{EventTableRow|A World Reborn}}
|name = A World Reborn
+
{{EventTableRow|Across Ixalan}}
|alias = AWR
+
{{EventTableRow|Duel Decks: Zendikar vs Eldrazi}}
|set = DOM
+
{{EventTableRow|Planechasing Fblthp}}
|type = pve,standard,coalition
+
{{EventTableRow|Saheeli Rai's Challenge}}
|rewards = progression,coalition
+
{{EventTableRow|Fateful Showdown}}
|nodes = 2,3,2,5,8h
+
</nowiki></pre>
|specials = perm_support,bonus_cards
 
|entry_cost_crystals =}}</nowiki></pre>
 
  
 
Produces:
 
Produces:
 
{| class="wikitable"
 
{| class="wikitable"
{{EventTableRow
+
{{EventTableRow|A World Reborn}}
|name = A World Reborn
+
{{EventTableRow|Across Ixalan}}
|alias = AWR
+
{{EventTableRow|Duel Decks: Zendikar vs Eldrazi}}
|set = DOM
+
{{EventTableRow|Planechasing Fblthp}}
|type = pve,standard,coalition
+
{{EventTableRow|Saheeli Rai's Challenge}}
|rewards = progression,coalition
+
{{EventTableRow|Fateful Showdown}}
|nodes = 2,3,2,5,8h
 
|specials = perm_support,bonus_cards
 
|entry_cost_crystals =}}
 
 
|}
 
|}
 +
 
</noinclude><includeonly>|-
 
</noinclude><includeonly>|-
! style="text-align: left;" | {{nowrap| [[{{{name}}}]]<!--
+
! style="text-align: left; padding: 0px" | {{nowrap|<!--
-->{{#if: {{{alias|}}} |&nbsp;<small>({{{alias}}})</small>}} }}<!--
+
-->{{#if: {{Event data: {{{1}}}|15}}|[[File:{{Event data: {{{1}}}|15}}|x28px|link={{{1}}}|{{{1}}}]]|{{Spacing|62px}}}}&nbsp;<!--
-->{{#if: {{{entry_cost_crystals|}}} |&nbsp;<span style="color:#808080"><small>{{nowrap|''(entry {{{entry_cost_crystals}}} [[File:crystal.png|x14px]])''}}</small></span>}}
+
-->[[{{Event data: {{{1}}}|1}}|{{#explode:{{Event data: {{{1}}}|1}}|(|0}}]]<!--
| [[{{{set}}}]]
+
-->{{#if: {{Event data: {{{1}}}|2}} |&nbsp;<small>({{Event data: {{{1}}}|2}})</small>}} }}<!--
| style="background:#22354b" | {{#if: {{#pos:{{{type}}}|pvp}}|{{#if: {{#pos:{{{type}}}|legacy}}|{{#if: {{#pos:{{{type}}}|coalition}}|
+
-->{{#if: {{Event data: {{{1}}}|5}} |&nbsp;<span style="color:#808080"><small>{{nowrap|''(entry {{Event data: {{{1}}}|5}} [[File:crystal.png|x14px]])''}}</small></span>}}&nbsp;
[[File:pvp-leg-coa.png|x24px|PvP Legacy Coalition]] | [[File:pvp-leg.png|x24px|PvP Legacy]] }} }} }}<!--
+
| {{#if:{{Event data: {{{1}}}|14}}|{{Nowrap|{{SetSymbol|{{Event data: {{{1}}}|14}}}} [[{{Event data: {{{1}}}|14}}]]}}}}
-->{{#if: {{#pos:{{{type}}}|pvp}}|{{#if: {{#pos:{{{type}}}|standard}}|{{#if: {{#pos:{{{type}}}|coalition}}|
+
| style="background: #22354b; text-align: center; padding: 2px" | {{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|legacy}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
[[File:pvp-sta-coa.png|x24px|PvP Standard Coalition]] | [[File:pvp-sta.png|x24px|PvP Standard]] }} }} }}<!--
+
[[File:pvp-leg-coa.png|x24px|PvP Legacy Coalition|link=#Icon descriptions]] | [[File:pvp-leg.png|x24px|PvP Legacy|link=#Icon descriptions]] }} }} }}<!--
-->{{#if: {{#pos:{{{type}}}|pve}}|{{#if: {{#pos:{{{type}}}|legacy}}|{{#if: {{#pos:{{{type}}}|coalition}}|
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|standard}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
[[File:pve-leg-coa.png|x24px|PvE Legacy Coalition]] | [[File:pve-leg.png|x24px|PvE Legacy]] }} }} }}<!--
+
[[File:pvp-sta-coa.png|x24px|PvP Standard Coalition|link=#Icon descriptions]] | [[File:pvp-sta.png|x24px|PvP Standard|link=#Icon descriptions]] }} }} }}<!--
-->{{#if: {{#pos:{{{type}}}|pve}}|{{#if: {{#pos:{{{type}}}|standard}}|{{#if: {{#pos:{{{type}}}|coalition}}|
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|legacy}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
[[File:pve-sta-coa.png|x24px|PvE Standard Coalition]] | [[File:pve-sta.png|x24px|PvE Standard]] }} }} }}
+
[[File:pve-leg-coa.png|x24px|PvE Legacy Coalition|link=#Icon descriptions]] | [[File:pve-leg.png|x24px|PvE Legacy|link=#Icon descriptions]] }} }} }}<!--
| style="background:#22354b" | {{#if: {{#pos:{{{rewards}}}|progression}}|[[File:reward-progression.png|x24px|Progression rewards]]|[[File:reward-blank.png|x24px]]}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|standard}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
-->{{#if: {{#pos:{{{rewards}}}|placement}}|[[File:reward-placement.png|x24px|Placement rewards]]|[[File:reward-blank.png|x24px]]}}<!--
+
[[File:pve-sta-coa.png|x24px|PvE Standard Coalition|link=#Icon descriptions]] | [[File:pve-sta.png|x24px|PvE Standard|link=#Icon descriptions]] }} }} }}<!--
-->{{#if: {{#pos:{{{rewards}}}|coalition}}|[[File:reward-coalition.png|x24px|Coalition rewards]]|[[File:reward-blank.png|x24px]]}}
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|block}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
| {{#explode:{{{nodes}}}|,|0}}{{#if:{{#explode:{{{nodes}}}|,|1}} | <small>x{{#explode:{{{nodes}}}|,|1}} }}</small>
+
[[File:pvp-sta-coa.png|x24px|PvP Block restricted Coalition|link=#Icon descriptions]] | [[File:pvp-sta.png|x24px|PvP Block restricted|link=#Icon descriptions]] }} }} }}<!--
| {{#if: {{#explode:{{{nodes}}}|,|2}} | {{#explode:{{{nodes}}}|,|2}}/{{#explode:{{{nodes}}}|,|3}} <small>''++{{#explode:{{{nodes}}}|,|4}}''</small> | -}}
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|block}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
| {{#if: {{#pos:{{{specials}}}|color_restrict}}|[[File:event-color_restrict.png|x24px|Planeswalker choice restricted by color]]}}<!--
+
[[File:pve-leg-coa.png|x24px|PvE Block restricted Coalition|link=#Icon descriptions]] | [[File:pve-sta.png|x24px|PvE Block restricted|link=#Icon descriptions]] }} }} }}
-->{{#if: {{#pos:{{{specials}}}|locked_nodes}}|[[File:event-locked_nodes.png|x24px|Planeswalker choice can't be changed once made]]}}<!--
+
| style="background: #22354b; text-align: center; padding: 2px" | {{#if: {{#pos:{{Event data: {{{1}}}|4}}|progression}}|[[File:reward-progression.png|x24px|Progression rewards|link=#Icon descriptions]]|[[File:reward-blank.png|x24px]]}}<!--
-->{{#if: {{#pos:{{{specials}}}|pw_restrict}}|[[File:event-pw_restrict.png|x24px|A node can only be played by a certain Planeswalker]]}}</includeonly><!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|placement}}|[[File:reward-placement.png|x24px|Placement rewards|link=#Icon descriptions]]|[[File:reward-blank.png|x24px]]}}<!--
-->{{#if: {{#pos:{{{specials}}}|boss_hp}}|[[File:event-boss_hp.png|x24px|Boss Health event]]}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|coalition}}|[[File:reward-coalition.png|x24px|Coalition rewards|link=#Icon descriptions]]|<!--
-->{{#if: {{#pos:{{{specials}}}|perm_support}}|[[File:event-perm_support.png|x24px|Permanent support affects play]]}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|winning-side}}|[[File:reward-winning-side.png|x24px|Winning side rewards|link=#Icon descriptions]]|[[File:reward-blank.png|x24px]]}}}}
-->{{#if: {{#pos:{{{specials}}}|special_rules}}|[[File:event-special_rules.png|x24px|Special rules affect play]]}}<!--
+
| style="text-align:center" | {{Event data: {{{1}}}|6}}{{#if:{{Event data: {{{1}}}|7}} | {{#ifexpr:{{Event data: {{{1}}}|7}} > 1 | <small>x{{Event data: {{{1}}}|7}} }} }}</small>
-->{{#if: {{#pos:{{{specials}}}|bonus_cards}}|[[File:event-bonus_cards.png|x24px|Bonus cards are added to hand]]}}<!--
+
| {{#if: {{Event data: {{{1}}}|8}} | {{Event data: {{{1}}}|8}}/{{Event data: {{{1}}}|9}} <!--
-->{{#if: {{#pos:{{{specials}}}|enraged}}|[[File:event-enraged.png|x24px|Enraged (2x damage after 5 turns)]]}}<!--
+
-->{{#if: {{Event data: {{{1}}}|10}} | <small>''+{{Event data: {{{1}}}|10}}''</small>}} | <small>''unlimited''</small>}}
-->{{#if: {{#pos:{{{specials}}}|supercharged}}|[[File:event-supercharged.png|x24px|Supercharged (2x mana after 5 turns)]]}}<!--
+
| style="padding: 2px" | {{#if: {{#pos:{{Event data: {{{1}}}|11}}|color_restrict}}|[[File:event-color_restrict.png|x24px|Planeswalker choice restricted by color|link=#Icon descriptions]]}}<!--
-->{{#if: {{#pos:{{{specials}}}|legendary}}|[[File:event-legendary.png|x24px|Legendary (2x damage and mana after 3 turns)]]}}<!--
+
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|locked_nodes}}|[[File:event-locked_nodes.png|x24px|Planeswalker choice can't be changed once made|link=#Icon descriptions]]}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|pw_restrict}}|[[File:event-pw_restrict.png|x24px|A node can only be played by a certain Planeswalker|link=#Icon descriptions]]}}
 +
| style="padding: 2px" | {{#if: {{#pos:{{Event data: {{{1}}}|11}}|boss_hp}}|[[File:event-boss_hp.png|x24px|Boss Health event|link=#Icon descriptions]]}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|duel_decks}}|[[File:event-duel_decks.png|x24px|Duel Decks event|link=#Icon descriptions]]}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|perm_support}}|[[File:event-perm_support.png|x24px|Permanent support affects play|link=#Icon descriptions]]}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|special_rules}}|[[File:event-special_rules.png|x24px|Special rules affect play|link=#Icon descriptions]]}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|bonus_cards}}|[[File:event-bonus_cards.png|x24px|Bonus cards are added to hand|link=#Icon descriptions]]}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|starting_cards}}|[[File:event-starting_cards.png|x24px|Game begins with cards in play|link=#Icon descriptions]]}}
 +
| style="padding: 2px" | {{#if: {{#pos:{{Event data: {{{1}}}|11}}|enraged}}|[[File:event-enraged.png|x24px|Enraged (2x damage after 5 turns)|link=#Icon descriptions]]}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|supercharged}}|[[File:event-supercharged.png|x24px|Supercharged (2x mana after 5 turns)|link=#Icon descriptions]]}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|11}}|legendary}}|[[File:event-legendary.png|x24px|Legendary (2x damage and mana after 3 turns)|link=#Icon descriptions]]}}</includeonly>

Latest revision as of 11:20, 7 May 2020

Shorthand for creating a row of a table containing details of an event.

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

Example

This shorthand within a table

{{EventTableRow|A World Reborn}}
{{EventTableRow|Across Ixalan}}
{{EventTableRow|Duel Decks: Zendikar vs Eldrazi}}
{{EventTableRow|Planechasing Fblthp}}
{{EventTableRow|Saheeli Rai's Challenge}}
{{EventTableRow|Fateful Showdown}}

Produces:

A World Reborn A World Reborn (AWR)   Dominaria DOM PvE Legacy Coalition Progression rewardsReward-blank.pngCoalition rewards 2x3 2/5 +8h Permanent support affects playBonus cards are added to hand
Across Ixalan Across Ixalan (AX)   Ixalan XLN PvP Legacy Progression rewardsReward-blank.pngReward-blank.png 4 2/3 +2h Special rules affect play
Duel Decks: Zendikar vs Eldrazi Duel Decks: Zendikar vs Eldrazi (ZvE)   Core Set 2019 M19 PvP Block restricted Progression rewardsReward-blank.pngWinning side rewards 2 3/12 +2h A node can only be played by a certain Planeswalker Duel Decks eventPermanent support affects play
Planechasing Fblthp Planechasing Fblthp (PF)   War of the Spark WAR PvE Legacy Progression rewardsReward-blank.pngReward-blank.png 1 5/5 Permanent support affects play
Spacing-horz.png Saheeli Rai's Challenge (SRC)   Shadows over Innistrad SOI PvP Legacy Progression rewardsPlacement rewardsCoalition rewards 4 ?/5 +4h A node can only be played by a certain Planeswalker
Fateful Showdown Fateful Showdown (FS)   Kaladesh KLD PvE Legacy Progression rewardsReward-blank.pngReward-blank.png 9 unlimited