Template:Card/doc: Difference between revisions

From DominionStrategy Wiki
Jump to navigation Jump to search
M knox (talk | contribs)
Created page with "==Usage== <nowiki>{{Card|card name|alt text|oi=number}}</nowiki><br> '''"card name"''' is a card name, like Moat, Throne Room etc. '''"alt text"''' is optional. It is an al..."
 
M knox (talk | contribs)
No edit summary
 
Line 1: Line 1:
==Usage==
==Usage==
<nowiki>{{Card|card name|alt text|oi=number}}</nowiki><br>
<pre>{{Card|card name|alt text|oi=number}}</pre>
'''"card name"''' is a card name, like Moat, Throne Room etc.
; 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.
; 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.
; 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 <tt>oi=2</tt> will add "Old2" to the file name.


==Examples==
==Examples==
* <nowiki>{{Card|Curse}}</nowiki> → {{Card|Curse}}
* <tt><nowiki>{{Card|Curse}}</nowiki> → {{Card|Curse}}</tt>
* <nowiki>{{Card|Curse|the Curse card}}</nowiki> → {{Card|Curse|the Curse card}}
* <tt><nowiki>{{Card|Curse|the Curse card}}</nowiki> → {{Card|Curse|the Curse card}}</tt>
* <nowiki>{{Card|Death Cart|first printing of Death Cart|oi=1}}</nowiki> → {{Card|Death Cart|first printing of Death Cart|oi=1}}
* <tt><nowiki>{{Card|Death Cart|first printing of Death Cart|oi=1}}</nowiki> → {{Card|Death Cart|first printing of Death Cart|oi=1}}</tt>
* <nowiki>{{Card|Death Cart|second printing of Death Cart|oi=2}}</nowiki> → {{Card|Death Cart|second printing of Death Cart|oi=2}}
* <tt><nowiki>{{Card|Death Cart|second printing of Death Cart|oi=2}}</nowiki> → {{Card|Death Cart|second printing of Death Cart|oi=2}}</tt>

Latest revision as of 17:00, 7 June 2022

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