Template:CardLangVersionImage/doc

From DominionStrategy Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "This template is meant to be used on a card's page, and uses the <nowiki>{{PAGENAME}}</nowiki> parameter to determine the card's name. Usage: <nowiki>{{</nowiki>CardLangVer...")
 
Line 1: Line 1:
This template is meant to be used on a card's page, and uses the <nowiki>{{PAGENAME}}</nowiki> parameter to determine the card's name.
+
This template is meant to be used on a card's page, and uses the <nowiki>{{PAGENAME}}</nowiki> template to determine the card's name. This can be overridden; see below.
  
 
Usage:
 
Usage:
  
  <nowiki>{{</nowiki>CardLangVersionImage|''language''|''description''|d=?<nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki>CardLangVersionImage|''language''|''description''|d=?|o=?|n=?<nowiki>}}</nowiki>
  
 
''language'' and ''description'' parameters are not named, and are ordered.
 
''language'' and ''description'' parameters are not named, and are ordered.
Line 9: Line 9:
 
'''The first''' parameter (''language'') is any string that will be appended to card's base name, for example:
 
'''The first''' parameter (''language'') is any string that will be appended to card's base name, for example:
  
  <nowiki>{{</nowiki>CardLangVersionImage|German<nowiki>}}</nowiki>
+
  <nowiki>{{CardLangVersionImage|German}}</nowiki>
  
on {{Card|Witch}} page will produce:
+
on '''{{Card|Witch}}''' page will produce:
  
 
[[File:WitchGerman.jpg|100px|German language&#32;Witch]]
 
[[File:WitchGerman.jpg|100px|German language&#32;Witch]]
Line 21: Line 21:
  
  
The only 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).
+
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).
  
 +
<nowiki>{{CardLangVersionImage|Russian|d=1}}</nowiki>
  
<nowiki>{{</nowiki>CardLangVersionImage|Russian|d=1<nowiki>}}</nowiki>
+
on '''Witch''' page will display this:
 
+
on Witch page will display this:
+
  
 
[[File:WitchDigitalRussian.jpg|100px|Russian language&#32;Witch from Shuffle iT]]
 
[[File:WitchDigitalRussian.jpg|100px|Russian language&#32;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'''.
 +
 +
<nowiki>{{CardLangVersionImage|o=1}}</nowiki>
 +
 +
on '''Witch''' page will display this:
 +
 +
[[File:WitchOld.jpg|100px|]]
 +
 +
 +
The named parameter '''''n''''' can override the automatic use of the <nowiki>{{PAGENAME}}</nowiki> template and display the image of any card.
 +
 +
<nowiki>{{CardLangVersionImage|n=Scheme|d=1|Russian}}</nowiki>
 +
 +
on '''''any''''' page will display this:
 +
 +
{{CardLangVersionImage|n=Scheme|d=1|Russian}}

Revision as of 07:31, 6 March 2020

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