Changes

Jump to: navigation, search

Template:EventTableRow

901 bytes added, 11:20, 7 May 2020
no edit summary
<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) Parameters are:* <code><nowiki>{{{name}}}</nowiki></code>: The name of only parameter is 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 coalitionname. (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 data is pulled from the associated 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 anydata template.
== Example ==
This shorthand within a table
<pre><nowiki>
{{EventTableRow|name = A World Reborn}}{{EventTableRow|alias = AWRAcross Ixalan}}{{EventTableRow|set = DOMDuel Decks: Zendikar vs Eldrazi}}{{EventTableRow|type = pve,standard,coalitionPlanechasing Fblthp}}{{EventTableRow|rewards = progression,coalition|nodes = 2,3,2,5,8|specials = perm_support,bonus_cardsSaheeli Rai's Challenge}}{{EventTableRow|entry_cost_crystals =Fateful Showdown}}</nowiki></pre>
Produces:
{| class="wikitable"
{{EventTableRow|name = A World Reborn}}{{EventTableRow|alias = AWR|set = DOM|type = pve,standard,coalitionAcross Ixalan}}{{EventTableRow|rewards = progression,coalitionDuel Decks: Zendikar vs Eldrazi}}{{EventTableRow|nodes = 2,3,2,5,8hPlanechasing Fblthp}}{{EventTableRow|specials = perm_support,bonus_cardsSaheeli Rai's Challenge}}{{EventTableRow|entry_cost_crystals =Fateful Showdown}}
|}
 
</noinclude><includeonly>|-
! style="text-align: left;padding: 0px" | {{nowrap| [[{{{name}}}]]<!---->{{#if: {{Event data: {alias|{{1}}} |&nbsp;<small>({{{alias15}}})</small>}} }}<!---->|[[File:{{#ifEvent data: {{{entry_cost_crystals1}}}|15}}} |&nbsp;<span stylex28px|link="color:#808080"><small>{{nowrap{1}}}|''(entry {{{entry_cost_crystals1}}} [[File:crystal.png]]|{{Spacing|x14px]])''62px}}</small></span>}}&nbsp;<!--| -->[[{{Event data: {{{set1}}}]]| style="background:#22354b" 1}}| {{#ifexplode: {{#posEvent data:{{{type1}}}|pvp1}}|(|0}}]]<!---->{{{#if: {{#posEvent data:{{{type1}}}|legacy2}}|&nbsp;<small>({{#ifEvent data: {{#pos:{{{type{1}}}|coalition2}})</small>}} }}|<!--[[File:pvp-leg-coa.png|x24px|PvP Legacy Coalition|link=>{{#PvP Coalition]] if: {{Event data: {{{1}}}| [[File:pvp-leg.png5}} |x24px|PvP Legacy|link&nbsp;<span style="color:#PvP]] }} }} }}808080"><!----small>{{#if: nowrap|''(entry {{#posEvent data:{{{type1}}}|pvp5}}[[File:crystal.png|x14px]])''}}</small></span>}}&nbsp;|{{#if: {{#pos:Event data: {{{type1}}}|standard14}}|{{#if: Nowrap|{{SetSymbol|{{#posEvent data:{{{type1}}}|coalition14}}}}|[[File{{Event data:pvp-sta-coa.png{{{1}}}|x24px|PvP Standard Coalition|link=#PvP Coalition14}}]] }}}}| [[Filestyle="background: #22354b; text-align: center; padding:pvp-sta.png2px" |x24px|PvP Standard|link={{#PvP]] }} }} }}<!---->if: {{#ifpos: {{#posEvent data:{{{type1}}}|pve3}}|pvp}}|{{#if: {{#pos:{{Event data: {type}{{1}}}|3}}|legacy}}|{{#if: {{#pos:{{Event data: {type{{1}}}|3}}|coalition}}|[[File:pvepvp-leg-coa.png|x24px|PvE PvP Legacy Coalition|link=#PvE CoalitionIcon descriptions]] | [[File:pvepvp-leg.png|x24px|PvE PvP Legacy|link=#PvEIcon descriptions]] }} }} }}<!---->{{#if: {{#pos:{{Event data: {type{{1}}}|pve3}}|pvp}}|{{#if: {{#pos:{{Event data: {{type{1}}}|3}}|standard}}|{{#if: {{#pos:{{Event data:{{{type1}}}|3}}|coalition}}|[[File:pvepvp-sta-coa.png|x24px|PvE PvP Standard Coalition|link=#PvE CoalitionIcon descriptions]] | [[File:pvepvp-sta.png|x24px|PvE PvP Standard|link=#PvEIcon descriptions]] }} }} }}<!--| style="background:#22354b" | -->{{#if: {{#pos:{{Event data:{{{rewards1}}}|progression3}}|[[File:reward-progression.pngpve}}|x24px|Progression rewards|link={{#Progression rewards]]|[[Fileif:reward-blank.png|x24px]]}}<!---->{{{{#ifpos: {{#posEvent data:{{{rewards1}}}|placement3}}|[[File:reward-placement.pnglegacy}}|x24px|Placement rewards|link={{#Placement rewards]]|[[Fileif:reward-blank.png|x24px]]}}<!---->{{{#ifpos: {{#posEvent data:{{{rewards1}}}|3}}|coalition}}|[[File:rewardpve-leg-coalitioncoa.png|x24px|PvE Legacy Coalition rewards|link=#Coalition rewardsIcon descriptions]]|[[File:rewardpve-blankleg.png|x24px|PvE Legacy|link=#Icon descriptions]]}}}} }}<!--| style="text-align->{{#if:center" | {{#explodepos:{{Event data:{{{nodes1}}}|,3}}|0pve}}|{{#if:{{#explodepos:{{Event data: {nodes{{1}}}|,3}}|1standard}} | <small>x{{#explodeif: {{#pos:{{Event data:{{{nodes1}}}|,|13}} |coalition}}</small>|| {{#if[[File: {{#explode:{{{nodes}}}pve-sta-coa.png|,x24px|2}} PvE Standard Coalition| {{link=#explodeIcon descriptions]] | [[File:{{{nodes}}}pve-sta.png|,x24px|2PvE Standard|link=#Icon descriptions]] }} }} }}/<!---->{{#explodeif:{{#pos:{nodes}}{Event data: {{{1}}}|,3}}|3pvp}} <small>''++|{{#if: {{#explodepos:{{Event data:{{{nodes1}}}|,|43}}''</small> | -block}}| {{#if: {{#pos:{{Event data: {specials{{1}}}|3}}|color_restrictcoalition}}|[[File:eventpvp-sta-color_restrictcoa.png|x24px|Planeswalker choice PvP Block restricted Coalition|link=#Icon descriptions]] | [[File:pvp-sta.png|x24px|PvP Block restricted by color|link=#Color restrictionIcon descriptions]]}} }} }}<!---->{{#if: {{#pos:{{Event data: {specials{{1}}}|3}}|locked_nodespve}}|[[File{{#if: {{#pos:event-locked_nodes.png|x24px|Planeswalker choice can't be changed once made|link=#Locked nodes]]}}<!---->{{#ifEvent data: {{#pos:{1}}}|3}}|block}}|{{#if: {{#pos:{{Event data: {specials{{1}}}|pw_restrict3}}|[coalition}}|[[File:eventpve-leg-pw_restrictcoa.png|x24px|A node can only be played by a certain PlaneswalkerPvE Block restricted Coalition|link=#Planeswalker requirementIcon descriptions]]}}| {{#if: {{#pos:{{{specials}}}|boss_hp}}|[[[File:eventpve-boss_hpsta.png|x24px|Boss Health eventPvE Block restricted|link=#Boss Health eventIcon descriptions]]}}<!--}} }}| style="background: #22354b; text-->align: center; padding: 2px" | {{#if: {{#pos:{{Event data:{{{specials1}}}|4}}|perm_supportprogression}}|[[File:eventreward-perm_supportprogression.png|x24px|Permanent support affects playProgression rewards|link=#Permanent supportIcon descriptions]]}}<!|[[File:reward-blank.png|x24px]]}}<!---->{{#if: {{#pos:{{Event data:{{{specials1}}}|4}}|special_rulesplacement}}|[[File:eventreward-special_rulesplacement.png|x24px|Special rules affect playPlacement rewards|link=#Special rulesIcon descriptions]]|[[File:reward-blank.png|x24px]]}}<!---->{{#if: {{#pos:{{Event data:{{{specials1}}}|bonus_cards4}}|coalition}}|[[File:eventreward-bonus_cardscoalition.png|x24px|Bonus cards are added to handCoalition rewards|link=#Bonus cardsIcon descriptions]]}}|<!--| -->{{#if: {{#pos:{{Event data: {{specials{1}}}|enraged4}}|winning-side}}|[[File:eventreward-winning-enragedside.png|x24px|Enraged (2x damage after 5 turns)Winning side rewards|link=#EnragedIcon descriptions]]}}<!-|[[File:reward-blank.png|x24px]]}}}}| style="text-->align:center" | {{#ifEvent data: {{#{1}}}|6}}{{#if:{{Event data: {{{1}}}|7}} | {{#ifexpr:{{Event data: {{{1}}}|7}} > 1 | <small>x{{Event data: {{{1}}}|7}} }} }}</small>| {{#if: {{Event data: {{{1}}}|8}} | {{Event data: {{{1}}}|8}}/{{Event data: {{{1}}}|9}} <!---->{{#if: {{Event data: {{{1}}}|10}} | <small>''+{{Event data: {{{1}}}|10}}''</small>}} | <small>''unlimited''</small>}}| style="padding: 2px" | {{#if: {{#pos:{{{specials}}:{{Event data: {{{1}}}|11}}|color_restrict}}|[[File:event-color_restrict.png|x24px|Planeswalker choice restricted by color|link=#Icon descriptions]]}}<!---->{{#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}|supercharged}}|[[File:event-supercharged.png|x24px|Supercharged (2x mana after 5 turns)|link=#Supercharged]]}}<!---->{{#if: {{#pos:{{{specials}11}}|legendary}}|[[File:event-legendary.png|x24px|Legendary (2x damage and mana after 3 turns)|link=#LegendaryIcon descriptions]]}}</includeonly>

Navigation menu