Difference between revisions of "Template:Color restrict overview"

From mtgpq wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
Gives an overview of the planeswalker color restrictions for a whole event.
 
Gives an overview of the planeswalker color restrictions for a whole event.
  
Each parameter is a string of letters representing colors, from the set WUBRGC.  The nth parameter is the color restriction for the nth node.  Up to 5 parameters are accepted.
+
Each parameter is a string of letters representing colors, from the set WUBRGC.  The nth parameter is the color restriction for the nth node.  Zero to 5 parameters are accepted.
  
 
==Example==
 
==Example==
Line 9: Line 9:
 
The following shorthand:
 
The following shorthand:
 
<pre><nowiki>
 
<pre><nowiki>
{{Color restrict_overview|W|G|R|U}}
+
{{Color restrict overview|W|G|R|U}}
 
</nowiki></pre>
 
</nowiki></pre>
  
 
Produces:
 
Produces:
  
{{Color restrict_overview|W|G|R|U}}
+
{{Color restrict overview|W|G|R|U}}
  
 
</noinclude><includeonly>{| class="wikitable"
 
</noinclude><includeonly>{| class="wikitable"
! style="text-align:left" | {{Event Icon|color_restrict}} Planeswalker color restriction
+
! style="text-align:left" | {{Event Icon|color_restrict}} Color restriction
| {{#if:{{{1|}}}|'''1:''' {{Color Icons|{{{1}}}}}}}<!--
+
{{#if:{{{1|}}}|
 +
{{!}} {{#if:{{{1|}}}|'''1:''' {{Color Icons|{{{1}}}}}}}<!--
 
-->{{#if:{{{2|}}}|'''&nbsp;· &nbsp;2:'''  {{Color Icons|{{{2}}}}}}}<!--
 
-->{{#if:{{{2|}}}|'''&nbsp;· &nbsp;2:'''  {{Color Icons|{{{2}}}}}}}<!--
 
-->{{#if:{{{3|}}}|'''&nbsp;· &nbsp;3:'''  {{Color Icons|{{{3}}}}}}}<!--
 
-->{{#if:{{{3|}}}|'''&nbsp;· &nbsp;3:'''  {{Color Icons|{{{3}}}}}}}<!--
 
-->{{#if:{{{4|}}}|'''&nbsp;· &nbsp;4:'''  {{Color Icons|{{{4}}}}}}}<!--
 
-->{{#if:{{{4|}}}|'''&nbsp;· &nbsp;4:'''  {{Color Icons|{{{4}}}}}}}<!--
 
-->{{#if:{{{5|}}}|'''&nbsp;· &nbsp;5:'''  {{Color Icons|{{{5}}}}}}}
 
-->{{#if:{{{5|}}}|'''&nbsp;· &nbsp;5:'''  {{Color Icons|{{{5}}}}}}}
|-
+
{{!}}-
| colspan="2" | <small>''This event includes nodes which restrict the choice of Planeswalker by color.''</small>
+
}}
 +
| colspan="2" | <small>''One or more nodes in this event can only be played by Planeswalkers of a specified '''color'''.''</small>
 
|}</includeonly>
 
|}</includeonly>
  
 
[[Category:Event tip templates]]
 
[[Category:Event tip templates]]

Latest revision as of 03:38, 28 February 2019

Usage

Gives an overview of the planeswalker color restrictions for a whole event.

Each parameter is a string of letters representing colors, from the set WUBRGC. The nth parameter is the color restriction for the nth node. Zero to 5 parameters are accepted.

Example

The following shorthand:

{{Color restrict overview|W|G|R|U}}

Produces:

Color restriction Color restriction 1: White ·  2: Green ·  3: Red ·  4: Blue
One or more nodes in this event can only be played by Planeswalkers of a specified color.