Difference between revisions of "Template:Infobox event"

From mtgpq wiki
Jump to: navigation, search
(Created page with "{{Infobox | abovestyle = {{Infobox sec|above}} | headerstyle = {{Infobox sec|header}} | labelstyle = {{Infobox sec|label|width=30%}} | above = {{{name|{{PAGENAME}}}}} |...")
 
Line 1: Line 1:
{{Infobox
 
| abovestyle  = {{Infobox sec|above}}
 
| headerstyle  = {{Infobox sec|header}}
 
| labelstyle  = {{Infobox sec|label|width=30%}}
 
| above  = {{{name|{{PAGENAME}}}}}
 
| image  = {{#if:{{{image|}}}|[[File:{{{image}}}|250px]]}}
 
| label1  = Name
 
| data1  = {{{name|{{PAGENAME}}}}}
 
| label2  = {{#if:{{{alias|}}}|Abbreviation}}
 
| data2  = {{#if:{{{alias|}}}|{{{alias}}}}}
 
| label3  = {{#if:{{{type|}}}|Type}}
 
| data3  = {{#if:{{{type|}}}|{{{type}}}}}
 
| belowstyle = background:#ddf;
 
| below      = [[Events]]
 
}}
 
 
 
<noinclude>
 
<noinclude>
 
==Template usage==
 
==Template usage==
<nowiki>{{{image}}}</nowiki> and <nowiki>{{{aliases}}}</nowiki> - as well as all the lore fields - are hidden, if not specified . You can simply copy/paste the template below and fill in data (or remove lines) where necessary.
+
 
 +
The only parameter is the event name. The event data is pulled from the associated event data template.
  
 
==Example==
 
==Example==
 
<pre>
 
<pre>
{{Infobox event
+
{{Infobox event|A World Reborn}}
{{Template:Event data|A World Reborn}}
 
}}
 
 
</pre>
 
</pre>
  
{{Infobox event
+
{{Infobox event|A World Reborn}}
{{Template:Event data|A World Reborn}}
 
}}
 
  
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
</noinclude>
+
 
 +
</noinclude><includeonly>{{Infobox
 +
| abovestyle  = {{Infobox sec|above}}
 +
| headerstyle  = {{Infobox sec|header}}
 +
| labelstyle  = {{Infobox sec|label|width=30%}}
 +
| above  = {{Event data: {{{1}}}|1}}
 +
| image  = {{#if:{{{image|}}}|[[File:{{{image}}}|250px]]}}
 +
| label1  = {{#if:{{Event data: {{{1}}}|2}}|Abbreviation}}
 +
| data1  = {{#if:{{Event data: {{{1}}}|2}}|{{Event data: {{{1}}}|2}}}}
 +
| label2  = {{#if:{{Event data: {{{1}}}|3}}|Type}}
 +
| data2  = {{#if:{{Event data: {{{1}}}|3}}|<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|legacy}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
 +
[[File:pvp-leg-coa.png|x24px|PvP Legacy Coalition|link=#Icon descriptions]] PvP Legacy Coalition | [[File:pvp-leg.png|x24px|PvP Legacy|link=#Icon descriptions]] PvP Legacy}} }} }}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pvp}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|standard}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
 +
[[File:pvp-sta-coa.png|x24px|PvP Standard Coalition|link=#Icon descriptions]] PvP Standard Coalition| [[File:pvp-sta.png|x24px|PvP Standard|link=#Icon descriptions]] PvP Standard}} }} }}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|legacy}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
 +
[[File:pve-leg-coa.png|x24px|PvE Legacy Coalition|link=#Icon descriptions]] PvE Legacy Coalition| [[File:pve-leg.png|x24px|PvE Legacy|link=#Icon descriptions]] PvE Legacy}} }} }}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|3}}|pve}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|standard}}|{{#if: {{#pos:{{Event data: {{{1}}}|3}}|coalition}}|
 +
[[File:pve-sta-coa.png|x24px|PvE Standard Coalition|link=#Icon descriptions]] PvE Standard Coalition| [[File:pve-sta.png|x24px|PvE Standard|link=#Icon descriptions]] PvE Standard}} }} }}
 +
}}
 +
| label3  = {{#if:{{Event data: {{{1}}}|4}}|Rewards}}
 +
| data3  = {{#if:{{Event data: {{{1}}}|4}}|<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|progression}}|[[File:reward-progression.png|x24px|Progression rewards|link=#Icon descriptions]] Progression<br>}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|placement}}|[[File:reward-placement.png|x24px|Placement rewards|link=#Icon descriptions]] Individual placement<br>}}<!--
 +
-->{{#if: {{#pos:{{Event data: {{{1}}}|4}}|coalition}}|[[File:reward-coalition.png|x24px|Coalition rewards|link=#Icon descriptions]] Coalition placement<br>}}}}
 +
| label4  = {{#if:{{Event data: {{{1}}}|5}}|Nodes}}
 +
| data4  = {{#if:{{Event data: {{{1}}}|5}}|{{Event data: {{{1}}}|5}}}}<!--
 +
-->{{#if: {{Event data: {{{1}}}|6}}|(x{{Event data: {{{1}}}|6}} sub-nodes)}}
 +
| belowstyle = background:#ddf;
 +
| below      = [[Events]]
 +
}}</includeonly>

Revision as of 02:40, 14 February 2019

Template usage

The only parameter is the event name. The event data is pulled from the associated event data template.

Example

{{Infobox event|A World Reborn}}
A World Reborn (AWR)
EventsStoryPlaneswalkersCardsGuides
AWorldReborn.png
Type PvE Legacy Coalition PvE Legacy Coalition
Rewards Progression rewards Progression
Coalition rewards Coalition placement
Nodes 2 (x3 sub-nodes)
Charges 2 initial charges
5 maximum charges
8h recharge time
Specials Permanent support  Perma-support in play
Bonus cards Bonus cards in hand
Introduced Dominaria DOM · May 2018 · v2.7
Portal:Events   (Infobox · Data)