Template:CardImage: Difference between revisions

From DominionStrategy Wiki
Jump to navigation Jump to search
M knox (talk | contribs)
reverting the #ifexist, so the page containing lots of card images is lighter for the wiki parser
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:{{{1}}}.jpg|200px|link={{{1}}}]]<noinclude>
<span class='cardcost cost{{{cost|}}}'>[[Image:{{{1}}}{{#if:{{{o|}}}|{{#ifeq: {{{o}}}|1|Old|Old{{{o}}}}}}}.jpg|200px|link={{{1}}}]]</span><noinclude>
{{doc}}
{{doc}}
</noinclude>
</noinclude>

Latest revision as of 02:13, 13 September 2024

[[Image:{{{1}}}.jpg|200px|link={{{1}}}]]

This template displays card images which are linked to the corresponding card page.

Usage

{{CardImage|name|o=number}}, where name is the name of the card being displayed. The o parameter is optional, and it is used to display old image of the card; it's value of 1 adds just Old suffix, any other value adds Oldnumber suffix.


Example:

{{CardImage|Copper}}{{CardImage|Copper|o=1}}{{CardImage|Copper|o=2}}

produces:

  • If you click on either image, you will go to the Copper page.