Difference between revisions of "Template:Color restrict"

From mtgpq wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
Shows the planeswalker color restrictions on an event or event node.
+
Generally notifies about color restrictions on an event, or shows specific planeswalker color restrictions on an event or event node.
  
The only parameter is a string of letters representing colors, from the set WUBRGC.
+
If no parameters are given, a general notification is produced.
 +
 
 +
Otherwise, the only parameter is a string of letters representing colors, from the set WUBRGC.
  
 
==Example==
 
==Example==
Line 9: Line 11:
 
The following shorthand:
 
The following shorthand:
 
<pre><nowiki>
 
<pre><nowiki>
 +
{{Color restrict}}
 +
 
{{Color restrict|WRG}}
 
{{Color restrict|WRG}}
 
</nowiki></pre>
 
</nowiki></pre>
  
 
Produces:
 
Produces:
 +
{{Color restrict}}
  
 
{{Color restrict|WRG}}
 
{{Color restrict|WRG}}
 +
 +
[[Category:Event tip templates]]
  
 
</noinclude><includeonly>{| class="wikitable"
 
</noinclude><includeonly>{| class="wikitable"
! Planeswalker color restriction {{Event Icon|color_restrict}}
+
! style="text-align:left" | {{Event Icon|color_restrict}} {{#if:{{{1|}}}|Planeswalker color restriction
 
! {{Color Icons|{{{1}}}}} &nbsp;{{Colors expand|{{{1}}}}}
 
! {{Color Icons|{{{1}}}}} &nbsp;{{Colors expand|{{{1}}}}}
|-
+
{{!}}-
| colspan="2" | <small>''Only planeswalkers with affinity to '''{{Colors expand|{{{1}}}|or}}''' can be played.''</small>
+
{{!}} colspan="2" {{!}} <small>''Only planeswalkers with affinity to '''{{Colors expand|{{{1}}}|or}}''' can be played.''</small> |Color restriction
 +
{{!}} <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]]
 

Latest revision as of 08:53, 16 March 2019

Usage

Generally notifies about color restrictions on an event, or shows specific planeswalker color restrictions on an event or event node.

If no parameters are given, a general notification is produced.

Otherwise, the only parameter is a string of letters representing colors, from the set WUBRGC.

Example

The following shorthand:

{{Color restrict}}

{{Color restrict|WRG}}

Produces:

Color restriction Color restriction One or more nodes in this event can only be played by Planeswalkers of a specified color.
Color restriction Planeswalker color restriction WhiteRedGreen  White, Red, Green
Only planeswalkers with affinity to White, Red, or Green can be played.