Template:CardLangVersionImage/doc

From DominionStrategy Wiki
Jump to: navigation, search

This template is meant to be used on a card's page, and uses the {{PAGENAME}} template to determine the card's name. This can be overridden; see below.

Usage:

{{CardLangVersionImage|language|description|d=?|o=?|n=?}}

language and description parameters are not named, and are ordered.

The first parameter (language) is any string that will be appended to card's base name, for example:

{{CardLangVersionImage|German}}

on WitchWitch.jpg page will produce:

German language Witch

Omitting the first parameter (language) will produce the English card preview.


The second parameter is the description displayed in a hint when a user moves mouse over the image. If omitted, it displays the card's name prepended with the language name (none in case of English language).


The named parameter d determines if the digital version of the card is to be displayed. Setting this parameter to 1 automatically adds Digital to the card's base name (before language name, if any). Then, if the description parameter is not provided, the description will be the name of the card is appended with "from Shuffle iT" (prepended with language name).

{{CardLangVersionImage|Russian|d=1}}

on Witch page will display this:

Russian language Witch from Shuffle iT


The named parameter o determines if the old version of the card is to be displayed. Setting this parameter to 1 automatically adds Old to the card's base name (after Digital and language, if any are specified). Setting this parameter to anything other than 1 adds Old to the filename as well, but also appends this value - for example o=2 will produce Old2.

{{CardLangVersionImage|o=1}}

on Witch page will display this:

WitchOld.jpg


The named parameter n can override the automatic use of the {{PAGENAME}} template and display the image of any card.

{{CardLangVersionImage|n=Scheme|d=1|Russian}}

on any page will display this:

Russian language Scheme from Shuffle iT

Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox