Difference between revisions of "Template:Event data"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude> ==Usage== Extract event data for an event for use in other templates. The only parameter is the event name. The event data is stored in templates named "Template...")
 
 
(19 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
Extract event data for an event for use in other templates.  The only parameter is the event name.
+
Event data templates extract data for an event for use in other templates.   
 +
Event data is extracted as follows:
 +
<pre><nowiki>
 +
{{Event data: {{{name}}}|param}}
 +
</nowiki></pre>
 +
* '''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==
 +
<pre><nowiki>
 +
{{Event data: A World Reborn|3}}
 +
</nowiki></pre>
 +
Produces:
 +
 
 +
{{Event data: A World Reborn|3}}
 +
==Details==
 +
The data is formatted as follows:
 +
 
 +
<pre><nowiki>
 +
{{p{{{1}}}
 +
|name|alias|type
 +
|rewards
 +
|cost|nodes|sub-nodes|charges-initial|charges-max|recharge|specials
 +
|date|version|set|image|xp-first|xp-repeat}}
 +
</nowiki></pre>
  
The event data is stored in templates named "Template:Event data: evnet name".  For example, [[Template:Event data: A World Reborn]]. The event data fields contain the following fields:
+
For example:
 +
<pre><nowiki>
 +
{{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|20|20}}
 +
</nowiki></pre>
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Field
+
! Param
 +
! Param name
 
! Description
 
! Description
 
! Examples
 
! Examples
 
|-
 
|-
 +
|
 +
| p{{{1}}}
 +
| A literal template formatting string which must always be present.
 +
|
 +
|-
 +
| 1
 
| name
 
| name
 
| The event name.
 
| The event name.
 
| "A World Reborn"
 
| "A World Reborn"
 
|-
 
|-
 +
| 2
 
| alias
 
| alias
 
| An abbreviation for the event.
 
| An abbreviation for the event.
 
| "AWR"
 
| "AWR"
 
|-
 
|-
 +
| 3
 
| type
 
| type
 
| A comma-separated list of types, including one of "pve" and "pvp", one of "standard" and "legacy", and may include "coalition".
 
| A comma-separated list of types, including one of "pve" and "pvp", one of "standard" and "legacy", and may include "coalition".
 
| "pve,standard,coalition"
 
| "pve,standard,coalition"
 
|-
 
|-
 +
| 4
 
| rewards
 
| rewards
| A comma-separated list of reward types offered by the event, which may include "progression", "individual", and "coalition".
+
| A comma-separated list of reward types offered by the event, which may include "progression", "placement", "coalition", and "winning-wide".
 
| "progression,coalition"
 
| "progression,coalition"
 
|-
 
|-
 +
| 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.
| "2x3"
+
| "2"
 
|-
 
|-
| charges
+
| 7
| The number of initial and total charges of each node, separated by "/"Blank if nodes have no charges.
+
| sub-nodes
| "2/5"
+
| The number of variations of each node.  Must not be blank!  Set to 1 if no sub-nodes.
 +
| "3"
 
|-
 
|-
 +
| 8
 +
| charges-initial
 +
| The number of initial charges of each node.  Blank if no charges.
 +
| "2"
 +
|-
 +
| 9
 +
| charges-max
 +
| The number of maximum charges of each node.  Blank if no charges.
 +
| "5"
 +
|-
 +
| 10
 
| 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"
 
|-
 
|-
 +
| 11
 
| 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"
 
|-
 
|-
 +
| 12
 
| introduced
 
| introduced
 
| The date the event was introduced to the game.
 
| The date the event was introduced to the game.
 
| "May 2018"
 
| "May 2018"
 
|-
 
|-
 +
| 13
 
| 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"
 
|-
 
|-
 +
| 14
 
| 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.
 
| "DOM"
 
| "DOM"
 +
|-
 +
| 15
 +
| image
 +
| (Optional) The filename of an image to display.
 +
| "RT-Boros-Legion.png"
 +
|-
 +
| 16
 +
| xp-first
 +
| The amount of XP awarded per unmastered card per won game on the first game played on a node.
 +
| "20"
 +
|-
 +
| 17
 +
| xp-repeat
 +
| The amount of XP awarded per unmastered card per won game on a repeated game played on a node.
 +
| "2"
 +
|-
 +
| 18
 +
| valid-sets
 +
| (Optional) The list of sets which can be used for the event (displayed for Block restricted events)
 +
| "ORI,M19,M20,ODY"
 +
|-
 +
| 19
 +
| charges-per-recharge
 +
| (Optional) The number of charges accumulated per node recharge.  If not specified, 1 is assumed.
 +
| "3"
 
|}
 
|}
 
==Example==
 
The following mark-up:
 
<pre><nowiki>
 
{{Event data|A World Reborn}}
 
</nowiki></pre>
 
 
Produces:
 
 
{{Event data|A World Reborn}}
 
 
  
 
</noinclude><includeonly>{{Event data: {{{1}}}}}</includeonly>
 
</noinclude><includeonly>{{Event data: {{{1}}}}}</includeonly>

Latest revision as of 12:02, 14 February 2022

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|recharge|specials
|date|version|set|image|xp-first|xp-repeat}}

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|20|20}}
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", "placement", "coalition", and "winning-wide". "progression,coalition"
5 cost The cost in crystals to enter the event, if any. "20"
6 nodes The number of nodes in the event. "2"
7 sub-nodes The number of variations of each node. Must not be blank! Set to 1 if no sub-nodes. "3"
8 charges-initial The number of initial charges of each node. Blank if no charges. "2"
9 charges-max The number of maximum charges of each node. Blank if no charges. "5"
10 recharge The time between node recharges. Blank of nodes have no charges. "8h"
11 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"
12 introduced The date the event was introduced to the game. "May 2018"
13 version The version in which the event was introduced to the game. "2.7"
14 set The three-letter abbreviation of the expansion set with which the event was introduced to the game. "DOM"
15 image (Optional) The filename of an image to display. "RT-Boros-Legion.png"
16 xp-first The amount of XP awarded per unmastered card per won game on the first game played on a node. "20"
17 xp-repeat The amount of XP awarded per unmastered card per won game on a repeated game played on a node. "2"
18 valid-sets (Optional) The list of sets which can be used for the event (displayed for Block restricted events) "ORI,M19,M20,ODY"
19 charges-per-recharge (Optional) The number of charges accumulated per node recharge. If not specified, 1 is assumed. "3"