Difference between revisions of "Template:EventTableRow"

From mtgpq wiki
Jump to: navigation, search
Line 57: Line 57:
 
| {{#if: {{#explode:{{{nodes}}}|,|2}} | {{#explode:{{{nodes}}}|,|2}}/{{#explode:{{{nodes}}}|,|3}} <small>''++{{#explode:{{{nodes}}}|,|4}}''</small> | -}}
 
| {{#if: {{#explode:{{{nodes}}}|,|2}} | {{#explode:{{{nodes}}}|,|2}}/{{#explode:{{{nodes}}}|,|3}} <small>''++{{#explode:{{{nodes}}}|,|4}}''</small> | -}}
 
| {{#if: {{#pos:{{{specials}}}|color_restrict}}|[[File:event-color_restrict.png|x24px|Planeswalker choice restricted by color]]}}<!--
 
| {{#if: {{#pos:{{{specials}}}|color_restrict}}|[[File:event-color_restrict.png|x24px|Planeswalker choice restricted by color]]}}<!--
 +
-->{{#if: {{#pos:{{{specials}}}|locked_nodes}}|[[File:event-locked_nodes.png|x24px|Planeswalker choice can't be changed once made]]}}<!--
 
-->{{#if: {{#pos:{{{specials}}}|pw_restrict}}|[[File:event-pw_restrict.png|x24px|A node can only be played by a certain Planeswalker]]}}</includeonly><!--
 
-->{{#if: {{#pos:{{{specials}}}|pw_restrict}}|[[File:event-pw_restrict.png|x24px|A node can only be played by a certain Planeswalker]]}}</includeonly><!--
-->{{#if: {{#pos:{{{specials}}}|locked_nodes}}|[[File:event-locked_nodes.png|x24px|Planeswalker choice can't be changed once made]]}}<!--
 
 
-->{{#if: {{#pos:{{{specials}}}|boss_hp}}|[[File:event-boss_hp.png|x24px|Boss Health event]]}}<!--
 
-->{{#if: {{#pos:{{{specials}}}|boss_hp}}|[[File:event-boss_hp.png|x24px|Boss Health event]]}}<!--
 
-->{{#if: {{#pos:{{{specials}}}|perm_support}}|[[File:event-perm_support.png|x24px|Permanent support affects play]]}}<!--
 
-->{{#if: {{#pos:{{{specials}}}|perm_support}}|[[File:event-perm_support.png|x24px|Permanent support affects play]]}}<!--

Revision as of 11:46, 4 January 2019

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:

  • {{{name}}}: The name of the event (e.g. A World Reborn)
  • {{{alias}}}: An alias for the event, if any (e.g. AWR)
  • {{{set}}}: The abbreviation of the most recently released set when the event was released (e.g. DOM)
  • {{{type}}}: 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)
  • {{{rewards}}}: The reward categories for the event, which may include one or more of: progression, placement, coalition (e.g. progression,coalition)
  • {{{nodes}}}: 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)
  • {{{specials}}}: 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)
  • {{{entry_cost_crystals}}}: The entry cost of the event in crystals, if any.

Example

This shorthand within a table

{{EventTableRow
|name = A World Reborn
|alias = AWR
|set = DOM
|type = pve,standard,coalition
|rewards = progression,coalition
|nodes = 2,3,2,5,8h
|specials = perm_support,bonus_cards
|entry_cost_crystals =}}

Produces:

[[File:{{Event data: {{{1}}}|15}}|x28px|link={{{1}}}|{{{1}}}]] [[{{Event data: {{{1}}}|1}}|{{Event data: {{{1}}}|1}}]] ({{Event data: {{{1}}}|2}})  (entry {{Event data: {{{1}}}|5}} Crystal.png)  [[File:{{Event data: {{{1}}}|14}}_Symbol.png|x16px|link={{Event data: {{{1}}}|14}}|{{Event data: {{{1}}}|14}}]] [[{{Event data: {{{1}}}|14}}]] Reward-blank.pngReward-blank.pngReward-blank.png {{Event data: {{{1}}}|6}}Expression error: Unrecognized punctuation character "{". 8}}/{{Event data: {{{1}}}|9}} +{{Event data: {{{1}}}|10}}