Difference between revisions of "Template:Event data"

From mtgpq wiki
Jump to: navigation, search
Line 24: Line 24:
 
{{p{{{1}}}
 
{{p{{{1}}}
 
|name|alias|type
 
|name|alias|type
|rewards
+
|rewards|cost
 
|nodes|sub-nodes|charges-initial|charges-max|charges-recharge|specials
 
|nodes|sub-nodes|charges-initial|charges-max|charges-recharge|specials
 
|date|version|set}}
 
|date|version|set}}
Line 33: Line 33:
 
{{p{{{1}}}
 
{{p{{{1}}}
 
|A World Reborn|AWR|pve,standard,coalition
 
|A World Reborn|AWR|pve,standard,coalition
|progression,coalition
+
|progression,coalition|
 
|2|3|2|5|8h|perm_support,bonus_cards
 
|2|3|2|5|8h|perm_support,bonus_cards
 
|May 2018|2.7|DOM}}
 
|May 2018|2.7|DOM}}
Line 71: Line 71:
 
|-
 
|-
 
| 5
 
| 5
 +
| cost
 +
| The cost in crystals to enter the event, if any.
 +
| "20"
 +
|-
 +
| 6
 
| nodes
 
| nodes
 
| The number of nodes in the event, optionally followed by the number of variations of each node, separated by "x".
 
| The number of nodes in the event, optionally followed by the number of variations of each node, separated by "x".
 
| "2x3"
 
| "2x3"
 
|-
 
|-
| 6
+
| 7
 
| charges
 
| charges
 
| The number of initial and total charges of each node, separated by "/".  Blank if nodes have no charges.
 
| The number of initial and total charges of each node, separated by "/".  Blank if nodes have no charges.
 
| "2/5"
 
| "2/5"
 
|-
 
|-
| 7
+
| 8
 
| recharge
 
| recharge
 
| The time between node recharges.  Blank of nodes have no charges.
 
| The time between node recharges.  Blank of nodes have no charges.
 
| "8h"
 
| "8h"
 
|-
 
|-
| 8
+
| 9
 
| specials
 
| specials
 
| A comma-separated list of special features of the event, if any.  May include any number of the following: "bonus_cards", "boss_hp", "color_restrict", "duel_decks", "enraged", "locked_nodes", "perm_support", "premade_deck", "pw_restrict", "special_rules", "supercharged".
 
| A comma-separated list of special features of the event, if any.  May include any number of the following: "bonus_cards", "boss_hp", "color_restrict", "duel_decks", "enraged", "locked_nodes", "perm_support", "premade_deck", "pw_restrict", "special_rules", "supercharged".
 
| "perm_support,bonus_cards"
 
| "perm_support,bonus_cards"
 
|-
 
|-
| 9
+
| 10
 
| introduced
 
| introduced
 
| The date the event was introduced to the game.
 
| The date the event was introduced to the game.
 
| "May 2018"
 
| "May 2018"
 
|-
 
|-
| 10
+
| 11
 
| version
 
| version
 
| The version in which the event was introduced to the game.
 
| The version in which the event was introduced to the game.
 
| "2.7"
 
| "2.7"
 
|-
 
|-
| 11
+
| 12
 
| set
 
| set
 
| The three-letter abbreviation of the expansion set with which the event was introduced to the game.
 
| The three-letter abbreviation of the expansion set with which the event was introduced to the game.

Revision as of 06:47, 14 February 2019

Usage

Event data templates extract data for an event for use in other templates. Event data is extracted as follows:

{{Event data: {{{name}}}|param}}
  • name: The name of the event
  • param: A number indicating the position of the parameter to extract.

The event data is stored in templates named "Template:Event data: event name", such as Template:Event data: A World Reborn.

Example

{{Event data: A World Reborn|3}}

Produces:

pve,legacy,coalition

Details

The data is formatted as follows:

{{p{{{1}}}
|name|alias|type
|rewards|cost
|nodes|sub-nodes|charges-initial|charges-max|charges-recharge|specials
|date|version|set}}

For example:

{{p{{{1}}}
|A World Reborn|AWR|pve,standard,coalition
|progression,coalition|
|2|3|2|5|8h|perm_support,bonus_cards
|May 2018|2.7|DOM}}
Param Param name Description Examples
p{{{1}}} A literal template formatting string which must always be present.
1 name The event name. "A World Reborn"
2 alias An abbreviation for the event. "AWR"
3 type A comma-separated list of types, including one of "pve" and "pvp", one of "standard" and "legacy", and may include "coalition". "pve,standard,coalition"
4 rewards A comma-separated list of reward types offered by the event, which may include "progression", "individual", and "coalition". "progression,coalition"
5 cost The cost in crystals to enter the event, if any. "20"
6 nodes The number of nodes in the event, optionally followed by the number of variations of each node, separated by "x". "2x3"
7 charges The number of initial and total charges of each node, separated by "/". Blank if nodes have no charges. "2/5"
8 recharge The time between node recharges. Blank of nodes have no charges. "8h"
9 specials A comma-separated list of special features of the event, if any. May include any number of the following: "bonus_cards", "boss_hp", "color_restrict", "duel_decks", "enraged", "locked_nodes", "perm_support", "premade_deck", "pw_restrict", "special_rules", "supercharged". "perm_support,bonus_cards"
10 introduced The date the event was introduced to the game. "May 2018"
11 version The version in which the event was introduced to the game. "2.7"
12 set The three-letter abbreviation of the expansion set with which the event was introduced to the game. "DOM"