Difference between revisions of "Template:Block restrict icons"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude> ==Usage== Show the icons of the sets which may be used in a Block restricted event. The first parameter is a comma-separated list of card set abbreviations to sho...")
 
Line 3: Line 3:
 
Show the icons of the sets which may be used in a Block restricted event.
 
Show the icons of the sets which may be used in a Block restricted event.
  
The first parameter is a comma-separated list of card set abbreviations to show icons for. (This template supports up to 8 card set abbreviations.)
+
The first parameter is the name of the event to show block restriction icons for.
  
 
A second optional parameter is the height in pixels at which to display the icons.  (The default is 18px.)
 
A second optional parameter is the height in pixels at which to display the icons.  (The default is 18px.)
Line 9: Line 9:
 
==Example==
 
==Example==
 
<pre><nowiki>
 
<pre><nowiki>
{{Block restrict icons|ORI,M19,M20,ODY|30}}
+
{{Block restrict icons|Seize the Day|30}}
 
</nowiki></pre>
 
</nowiki></pre>
 
Produces:
 
Produces:
  
{{Block restrict icons|ORI,M19,M20,ODY|30}}
+
{{Block restrict icons|Seize the Day|30}}
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
-->{{#if:{{#explode:{{{1}}}|,|0}}|{{SetSymbol|{{#explode:{{{1}}}|,|0}}|{{{2|18}}}}}}}<!--
+
-->{{#if:{{#explode:{{Event data: {{{1}}}|16}}|,|0}}|{{SetSymbol|{{#explode:{{Event data: {{{1}}}|16}}|,|0}}|{{{2|18}}}}}}}<!--
-->{{#if:{{#explode:{{{1}}}|,|1}}|{{SetSymbol|{{#explode:{{{1}}}|,|1}}|{{{2|18}}}}}}}<!--
+
-->{{#if:{{#explode:{{Event data: {{{1}}}|16}}|,|1}}|{{SetSymbol|{{#explode:{{Event data: {{{1}}}|16}}|,|1}}|{{{2|18}}}}}}}<!--
-->{{#if:{{#explode:{{{1}}}|,|2}}|{{SetSymbol|{{#explode:{{{1}}}|,|2}}|{{{2|18}}}}}}}<!--
+
-->{{#if:{{#explode:{{Event data: {{{1}}}|16}}|,|2}}|{{SetSymbol|{{#explode:{{Event data: {{{1}}}|16}}|,|2}}|{{{2|18}}}}}}}<!--
-->{{#if:{{#explode:{{{1}}}|,|3}}|{{SetSymbol|{{#explode:{{{1}}}|,|3}}|{{{2|18}}}}}}}<!--
+
-->{{#if:{{#explode:{{Event data: {{{1}}}|16}}|,|3}}|{{SetSymbol|{{#explode:{{Event data: {{{1}}}|16}}|,|3}}|{{{2|18}}}}}}}<!--
-->{{#if:{{#explode:{{{1}}}|,|4}}|{{SetSymbol|{{#explode:{{{1}}}|,|4}}|{{{2|18}}}}}}}<!--
+
-->{{#if:{{#explode:{{Event data: {{{1}}}|16}}|,|4}}|{{SetSymbol|{{#explode:{{Event data: {{{1}}}|16}}|,|4}}|{{{2|18}}}}}}}<!--
-->{{#if:{{#explode:{{{1}}}|,|5}}|{{SetSymbol|{{#explode:{{{1}}}|,|5}}|{{{2|18}}}}}}}<!--
+
-->{{#if:{{#explode:{{Event data: {{{1}}}|16}}|,|5}}|{{SetSymbol|{{#explode:{{Event data: {{{1}}}|16}}|,|5}}|{{{2|18}}}}}}}<!--
-->{{#if:{{#explode:{{{1}}}|,|6}}|{{SetSymbol|{{#explode:{{{1}}}|,|6}}|{{{2|18}}}}}}}<!--
+
-->{{#if:{{#explode:{{Event data: {{{1}}}|16}}|,|6}}|{{SetSymbol|{{#explode:{{Event data: {{{1}}}|16}}|,|6}}|{{{2|18}}}}}}}<!--
-->{{#if:{{#explode:{{{1}}}|,|7}}|{{SetSymbol|{{#explode:{{{1}}}|,|7}}|{{{2|18}}}}}}}<!--
+
-->{{#if:{{#explode:{{Event data: {{{1}}}|16}}|,|7}}|{{SetSymbol|{{#explode:{{Event data: {{{1}}}|16}}|,|7}}|{{{2|18}}}}}}}<!--
 
--></includeonly>
 
--></includeonly>

Revision as of 02:56, 22 March 2020

Usage

Show the icons of the sets which may be used in a Block restricted event.

The first parameter is the name of the event to show block restriction icons for.

A second optional parameter is the height in pixels at which to display the icons. (The default is 18px.)

Example

{{Block restrict icons|Seize the Day|30}}

Produces:

OriginsFrom the Vault: OdysseyFrom the Vault: TormentFrom the Vault: Judgment