Difference between revisions of "Template:Card image"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude> ==Usage== Produce a card image. The only parameter is the full card name. '''Note:''' Card images are hosted external to the wiki, and mediawiki is not able to r...")
 
 
Line 14: Line 14:
  
 
{{Card image|Farm//Market}}
 
{{Card image|Farm//Market}}
 +
 +
{{Card image|Counterspell}}
 
</nowiki></pre>
 
</nowiki></pre>
  
Line 22: Line 24:
 
{{Card image|Farm//Market}}
 
{{Card image|Farm//Market}}
  
</noinclude><includeonly>https://mtgpq.info/assets/packs/{{lc:{{Card data: {{{1}}}|2}}}}/{{Card data: {{{1}}}|11}}</includeonly>
+
{{Card image|Counterspell}}
 +
 
 +
</noinclude><includeonly>
 +
https://mtgpq.info/assets/packs/{{#ifeq:1|{{#expr:
 +
    {{#ifeq:{{Card data: {{{1}}}|3}}|MP|1|0}} and  <!-- IF card is masterpiece AND -->
 +
    {{Set to id|{{Card data: {{{1}}}|2}}}} <= 9}}  <!-- Card set is HOU or earlier THEN -->
 +
  |masterpiece                                    <!-- URL has "masterpiece" in it -->
 +
  |{{lc:{{Card data: {{{1}}}|2}}}}                <!-- ELSE URL has card set abbreviation in it -->
 +
}}/{{Card data: {{{1}}}|11}}</includeonly>

Latest revision as of 01:35, 17 February 2020

Usage

Produce a card image.

The only parameter is the full card name.

Note: Card images are hosted external to the wiki, and mediawiki is not able to resize such images when displaying them.

Example

This mark-up:

{{Card image|Omniscience}}

{{Card image|Farm//Market}}

{{Card image|Counterspell}}

Produces:


401611.png


401835.png


401618.png