Template:Card: Difference between revisions

From DominionStrategy Wiki
Jump to navigation Jump to search
M knox (talk | contribs)
Undo revision 62394 by M knox (talk) performance issues detected
allow variable to set specific link e.g. Inheritance#Versions
Line 1: Line 1:
<includeonly><span class="card-popup">[[{{{1}}}|{{nowrap|{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}}}]]<span class="noprint">[[File:{{{1}}}{{#if:{{{oi|}}}|Old{{#ifeq:{{{oi}}}|1||{{{oi}}}}}|}}.jpg|200px|link=]]</span></span></includeonly><noinclude>
<includeonly><span class="card-popup">[[{{{link|{{{1}}}}}}|{{nowrap|{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}}}]]<span class="noprint">[[File:{{{1}}}{{#if:{{{oi|}}}|Old{{#ifeq:{{{oi}}}|1||{{{oi}}}}}|}}.jpg|200px|link=]]</span></span></includeonly><noinclude>
{{doc}}</noinclude>
{{doc}}</noinclude>

Revision as of 20:29, 1 September 2024

Usage

{{Card|card name|alt text|oi=number}}
card name
is a card name, like Moat, Throne Room etc.
alt text
is optional. It is an alternative link text that will be displayed instead of the supplied card name.
oi
this named parameter stands for "old image". When present, will change the image that is displayed by hovering over the link. Value of 1 simply adds "Old" to the image name. Any other value of this parameter adds "Old" + the value itself, for example oi=2 will add "Old2" to the file name.

Examples