Template:Card: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
m (Yanderesliver moved page Template:Cardlink to Template:Card: shorter)
>Yandere-sliver
No edit summary
Line 2: Line 2:
This template can be used within another template to link to a card passed as a parameter.
This template can be used within another template to link to a card passed as a parameter.


:<code><nowiki>{{cardlink|card name|edition|scryfall set code|#=collector number}}</nowiki></code>
:<code><nowiki>{{card|card name|edition|scryfall set code|#=collector number}}</nowiki></code>


===Parameters===
===Parameters===
Line 12: Line 12:


===Examples===
===Examples===
#<nowiki>{{cardlink|Jace Beleren}}</nowiki>  
#<nowiki>{{card|Jace Beleren}}</nowiki>  
#*{{cardlink|Jace Beleren}}
#*{{card|Jace Beleren}}
#<nowiki>{{cardlink|Jace Beleren|Lorwyn}}</nowiki>  
#<nowiki>{{card|Jace Beleren|Lorwyn}}</nowiki>  
#*{{cardlink|Jace Beleren|Lorwyn}}
#*{{card|Jace Beleren|Lorwyn}}
#<nowiki>{{cardlink|Jace Beleren|Promo|PDD2}}</nowiki>  
#<nowiki>{{card|Jace Beleren|Promo|PDD2}}</nowiki>  
#*{{cardlink|Jace Beleren|Promo|PDD2}}
#*{{card|Jace Beleren|Promo|PDD2}}
#<nowiki>{{cardlink|Jace Beleren||PBOK}}</nowiki>
#<nowiki>{{card|Jace Beleren||PBOK}}</nowiki>
#*{{cardlink|Jace Beleren||PBOK}}
#*{{card|Jace Beleren||PBOK}}
#<nowiki>{{cardlink|Golgari Guildgate|Guilds of Ravnica|#=248}}</nowiki><br/><nowiki>{{cardlink|Golgari Guildgate|Guilds of Ravnica|#=249}}</nowiki>
#<nowiki>{{card|Golgari Guildgate|Guilds of Ravnica|#=248}}</nowiki><br/><nowiki>{{card|Golgari Guildgate|Guilds of Ravnica|#=249}}</nowiki>
#*{{cardlink|Golgari Guildgate|Guilds of Ravnica|#=248}}
#*{{card|Golgari Guildgate|Guilds of Ravnica|#=248}}
#*{{cardlink|Golgari Guildgate|Guilds of Ravnica|#=249}}
#*{{card|Golgari Guildgate|Guilds of Ravnica|#=249}}
#<nowiki>{{cardlink|Cylian Elf|title=Cylian elves}}</nowiki>
#<nowiki>{{card|Cylian Elf|title=Cylian elves}}</nowiki>
#*{{cardlink|Cylian Elf|title=Cylian elves}}
#*{{card|Cylian Elf|title=Cylian elves}}
[[Category:Magic product templates]]
[[Category:Magic product templates]]

Revision as of 15:48, 9 February 2019

Usage

This template can be used within another template to link to a card passed as a parameter.

{{card|card name|edition|scryfall set code|#=collector number}}

Parameters

  • {{{1}}}: the official card name.
  • {{{2}}}: Optional - the edition to be used. Also shown after the card name.
  • {{{3}}}: Optional - Scryfall set code. Only needed for special releases like media Inserts of FNM promos. Use third parameter while leaving second parameter blank to avoid having the edition shown in parentheses after the card name.
  • {{{#}}}: Optional - the collector number of a specific card, if multiple cards in the same set have the same name, e.g. basic lands.
  • {{{title}}}: Optional - It the text displayed should be somehow different from the card title.

Examples

  1. {{card|Jace Beleren}}
  2. {{card|Jace Beleren|Lorwyn}}
  3. {{card|Jace Beleren|Promo|PDD2}}
  4. {{card|Jace Beleren||PBOK}}
  5. {{card|Golgari Guildgate|Guilds of Ravnica|#=248}}
    {{card|Golgari Guildgate|Guilds of Ravnica|#=249}}
  6. {{card|Cylian Elf|title=Cylian elves}}