Template:Card: Difference between revisions
(clarified the language code usage) |
No edit summary |
||
Line 2: | Line 2: | ||
{{#template_params:1|2}} | {{#template_params:1|2}} | ||
Parameter 1 should refer to the card. Usually this can just be the card name: ''<nowiki>{{Card|The One Ring, The Ruling Ring}}</nowiki>'' or ''<nowiki>{{Card| | Parameter 1 should refer to the card. Usually this can just be the card name: ''<nowiki>{{Card|The One Ring, The Ruling Ring}}</nowiki>'' or ''<nowiki>{{Card|The Ruling Ring}}</nowiki>'' produce {{Card|The Ruling Ring}}. If you want to link to a different version of the same card, you can use the card's collector number: ''<nowiki>{{Card|4C2}}</nowiki>'' produces {{Card|4C2}}. If that doesn't work, you can instead use the "Wiki Base Card ID" parameter, found in each card page's infobox under "Technical Info". For example, using ''<nowiki>{{Card|LOTR-EN15G060.0}}</nowiki>'' is currently the only working way to link to the Gondor version {{Card|LOTR-EN15G060.0}}. | ||
Parameter 2 is the language code, which will produce the appropriate title + image for the requested language. ''<nowiki>{{Card|Gimli, Son of Gloin|FR}}</nowiki>'' produces {{Card|Gimli, Son of Gloin|FR}}, and ''<nowiki>{{Card|Gimli, Son of Gloin|TW}}</nowiki>'' produces the tengwar {{Card|Gimli, Son of Gloin|TW}}. | Parameter 2 is the language code, which will produce the appropriate title + image for the requested language. ''<nowiki>{{Card|Gimli, Son of Gloin|FR}}</nowiki>'' produces {{Card|Gimli, Son of Gloin|FR}}, and ''<nowiki>{{Card|Gimli, Son of Gloin|TW}}</nowiki>'' produces the tengwar {{Card|Gimli, Son of Gloin|TW}}. |
Revision as of 07:25, 21 January 2023
This is the "Card" template.
It should be called in the following format:
{{Card |1= |2= }}
Edit the page to see the template text.
Parameter 1 should refer to the card. Usually this can just be the card name: {{Card|The One Ring, The Ruling Ring}} or {{Card|The Ruling Ring}} produce The One Ring, The Ruling Ring (1C2) . If you want to link to a different version of the same card, you can use the card's collector number: {{Card|4C2}} produces The One Ring, The Ruling Ring (4C2) . If that doesn't work, you can instead use the "Wiki Base Card ID" parameter, found in each card page's infobox under "Technical Info". For example, using {{Card|LOTR-EN15G060.0}} is currently the only working way to link to the Gondor version Forth the Three Hunters! (15C60) .
Parameter 2 is the language code, which will produce the appropriate title + image for the requested language. {{Card|Gimli, Son of Gloin|FR}} produces Gimli, Fils de Glóin (1R13) , and {{Card|Gimli, Son of Gloin|TW}} produces the tengwar Gimli, Son of Gloin (1R13T) .