Difference between revisions of "Template:Pw restrict"

From mtgpq wiki
Jump to: navigation, search
Line 3: Line 3:
 
Generally notifies about planeswalker restrictions in an event, or shows specific requirements in an event or node.
 
Generally notifies about planeswalker restrictions in an event, or shows specific requirements in an event or node.
  
 +
This template may be used in three different modes.
 +
'''First mode'''
 
If no parameters are given, a general notification is produced.
 
If no parameters are given, a general notification is produced.
  
Otherwise, the parameters are in groups of 2:
+
'''Second mode'''
* The first parameter in a group is the name of the situation in which the first planeswalker is required for a node.
+
Otherwise, if a single parameter is given, the parameter is the name of a Planeswalker, and the result is a notification that that planeswalker is required.
 +
 
 +
'''Third mode'''
 +
Otherwise, an even number of parameters must be given, and the parameters are in groups of 2:
 +
* The first parameter in a group is the name of the situation in which the first Planeswalker is required for a node.
 
* The second parameter in a group is the name of the Planeswalker required for the node.
 
* The second parameter in a group is the name of the Planeswalker required for the node.
  
Line 14: Line 20:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Pw restrict}}
 
{{Pw restrict}}
 +
 +
{{Pw restrict|Arlinn Kord}}
  
 
{{Pw restrict
 
{{Pw restrict
Line 28: Line 36:
  
 
{{Pw restrict}}
 
{{Pw restrict}}
 +
 +
{{Pw restrict|Arlinn Kord}}
  
 
{{Pw restrict
 
{{Pw restrict
Line 44: Line 54:
 
{{#if:{{{1|}}}|
 
{{#if:{{{1|}}}|
 
{{!}}-
 
{{!}}-
 +
{{#if:{{{2|}}}|
 
! {{{1}}}
 
! {{{1}}}
{{!}} colspan="1" {{!}} [[{{Trim|{{{2}}}}}]]&nbsp; '''·''' &nbsp;{{Color Icons|{{PW data: {{{2}}}|7}}}}&nbsp; '''·''' &nbsp;<!--
+
{{!}} colspan="1" {{!}}<!--
 +
-->{{#if: {{PW data: {{{2}}}|3}}|[[File:{{PW data: {{{2}}}|3}}|x26px|link={{Trim|{{{2}}}}}|{{{2}}}]]|&nbsp; &nbsp; &nbsp; &thinsp;}} &nbsp;[[{{Trim|{{{2}}}}}]]<!--
 +
-->&nbsp; '''·''' &nbsp;{{Color Icons|{{PW data: {{{2}}}|7}}}}&nbsp; '''·''' &nbsp;<!--
 
-->{{Creatures|{{#explode: {{PW data: {{{2}}}|9}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Creatures|{{#explode: {{PW data: {{{2}}}|9}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Spells|{{#explode: {{PW data: {{{2}}}|9}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Spells|{{#explode: {{PW data: {{{2}}}|9}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
Line 52: Line 65:
 
{{!}}-
 
{{!}}-
 
! {{{3}}}
 
! {{{3}}}
{{!}} colspan="1" {{!}} [[{{Trim|{{{4}}}}}]]&nbsp;  '''·''' &nbsp;{{Color Icons|{{PW data: {{{4}}}|7}}}}&nbsp; '''·''' &nbsp;<!--
+
{{!}} colspan="1" {{!}}<!--
 +
-->{{#if: {{PW data: {{{4}}}|3}}|[[File:{{PW data: {{{4}}}|3}}|x26px|link={{Trim|{{{4}}}}}|{{{4}}}]]|&nbsp; &nbsp; &nbsp; &thinsp;}} &nbsp;[[{{Trim|{{{4}}}}}]]<!--
 +
-->&nbsp;  '''·''' &nbsp;{{Color Icons|{{PW data: {{{4}}}|7}}}}&nbsp; '''·''' &nbsp;<!--
 
-->{{Creatures|{{#explode: {{PW data: {{{4}}}|9}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Creatures|{{#explode: {{PW data: {{{4}}}|9}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Spells|{{#explode: {{PW data: {{{4}}}|9}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Spells|{{#explode: {{PW data: {{{4}}}|9}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
Line 60: Line 75:
 
{{!}}-
 
{{!}}-
 
! {{{5}}}
 
! {{{5}}}
{{!}} colspan="1" {{!}} [[{{Trim|{{{6}}}}}]]&nbsp;  '''·''' &nbsp;{{Color Icons|{{PW data: {{{6}}}|7}}}}&nbsp; '''·''' &nbsp;<!--
+
{{!}} colspan="1" {{!}}<!--
 +
-->{{#if: {{PW data: {{{6}}}|3}}|[[File:{{PW data: {{{6}}}|3}}|x26px|link={{Trim|{{{6}}}}}|{{{6}}}]]|&nbsp; &nbsp; &nbsp; &thinsp;}} &nbsp;[[{{Trim|{{{6}}}}}]]<!--
 +
-->&nbsp;  '''·''' &nbsp;{{Color Icons|{{PW data: {{{6}}}|7}}}}&nbsp; '''·''' &nbsp;<!--
 
-->{{Creatures|{{#explode: {{PW data: {{{6}}}|9}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Creatures|{{#explode: {{PW data: {{{6}}}|9}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Spells|{{#explode: {{PW data: {{{6}}}|9}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Spells|{{#explode: {{PW data: {{{6}}}|9}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
 
-->{{Supports|{{#explode: {{PW data: {{{6}}}|9}}|,|2}}}}
 
-->{{Supports|{{#explode: {{PW data: {{{6}}}|9}}|,|2}}}}
 +
}}
 +
|
 +
{{!}} colspan="1" {{!}}<!--
 +
-->{{#if: {{PW data: {{{1}}}|3}}|[[File:{{PW data: {{{1}}}|3}}|x26px|link={{{1}}}|{{{1}}}]]|&nbsp; &nbsp; &nbsp; &thinsp;}} &nbsp;[[{{{1}}}]]<!--
 +
-->&nbsp; '''·''' &nbsp;{{Color Icons|{{PW data: {{{1}}}|7}}}}&nbsp; '''·''' &nbsp;<!--
 +
-->{{Creatures|{{#explode: {{PW data: {{{1}}}|9}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
 +
-->{{Spells|{{#explode: {{PW data: {{{1}}}|9}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
 +
-->{{Supports|{{#explode: {{PW data: {{{1}}}|9}}|,|2}}}}
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" {{!}} <small>''This node is restricted to one of the above '''required Planeswalkers''', depending on which version of the event is run.''</small>
+
{{!}} colspan="2" {{!}} <small>{{#if:{{{2|}}}
 +
| ''This node is restricted to one of the above '''required Planeswalkers''', depending on which version of the event is run.''
 +
| ''This node is restricted to the above '''required Planeswalker'''.''
 +
}}</small>
 
|
 
|
 
{{!}} <small>''One or more nodes in this event can only be played with a '''required Planeswalker'''.''</small>}}
 
{{!}} <small>''One or more nodes in this event can only be played with a '''required Planeswalker'''.''</small>}}
 
|}</includeonly>
 
|}</includeonly>

Revision as of 11:54, 26 October 2019

Usage

Generally notifies about planeswalker restrictions in an event, or shows specific requirements in an event or node.

This template may be used in three different modes. First mode If no parameters are given, a general notification is produced.

Second mode Otherwise, if a single parameter is given, the parameter is the name of a Planeswalker, and the result is a notification that that planeswalker is required.

Third mode Otherwise, an even number of parameters must be given, and the parameters are in groups of 2:

  • The first parameter in a group is the name of the situation in which the first Planeswalker is required for a node.
  • The second parameter in a group is the name of the Planeswalker required for the node.

Example

The following shorthand:

{{Pw restrict}}

{{Pw restrict|Arlinn Kord}}

{{Pw restrict
|Elspeth HoD
|Elspeth, Sun's Champion
|Bolas HoD
|Nicol Bolas, God-Pharaoh
|Samut HoD
|Samut, the Tested
}}

Produces:

Planeswalker requirement Planeswalker requirement One or more nodes in this event can only be played with a required Planeswalker.
Planeswalker requirement Planeswalker requirement
Arlinn Kord  Arlinn Kord  ·  RedGreen  ·  Creatures 7 · Spells 6 · Supports 6  
This node can only be played with this required Planeswalker.
Planeswalker requirement Planeswalker requirement
Elspeth HoD Elspeth, Sun's Champion  Elspeth, Sun's Champion  ·  White  ·  Creatures 6 · Spells 6 · Supports 5  
Bolas HoD Nicol Bolas, God-Pharaoh  Nicol Bolas, God-Pharaoh  ·  BlueBlackRed  ·  Creatures 5 · Spells 8 · Supports 5  
Samut HoD Samut, the Tested  Samut, the Tested  ·  RedGreen  ·  Creatures 10 · Spells 4 · Supports 4  
This node is restricted to one of the above required Planeswalkers, depending on which version of the event is run.