Open main menu

mtgpq wiki β

Changes

Template:EventTableRow

2,369 bytes added, 02:01, 4 January 2019
Created page with "<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) Parameter..."
<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 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, starting charges, max charges, recharge time. (e.g. 2x3,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 ==
This shorthand within a table
<pre><nowiki>
{{EventTableRow
|name = A World Reborn
|alias = AWR
|set = DOM
|type = pve,standard,coalition
|rewards = progression,coalition
|nodes = 2x3,2,5,8h
|specials = perm_support,bonus_cards
|entry_cost_crystals =
}}</nowiki></pre>

Produces:
{| class="wikitable"
{{EventTableRow
|name = A World Reborn
|alias = AWR
|set = DOM
|type = pve,standard,coalition
|rewards = progression,coalition
|nodes = 2x3,2,5,8h
|specials = perm_support,bonus_cards
|entry_cost_crystals =}}
|}
</noinclude><includeonly>|-
! style="text-align: left;" | {{nowrap| [[{{{name}}}]]<!--
-->{{#if: {{{alias|}}} |&nbsp;<small>({{{alias}}})</small>}} }}
| [[{{{set}}}]]
| {{{type}}}
| {{{rewards}}}
| {{#explode:{{{nodes}}}|,|0}}
| ({{#explode:{{{nodes}}}|,|1}}/{{#explode:{{{nodes}}}|,|2}})
| {{#explode:{{{nodes}}}|,|3}}
| {{{specials}}}
| {{#if: {{{entry_cost_crystals|}}} | {{crystals | {{{entry_cost_crystals|}}} }} }}</includeonly>