MTG Wiki
No edit summary
No edit summary
Line 5: Line 5:
   
 
===Parameters===
 
===Parameters===
*<code>{{{1}}}</code>: the official card name.
 
*<code>{{{2}}}</code>: Optional - the edition to be used. Also shown after the card name.
 
*<code>{{{3}}}</code>: Optional - [https://scryfall.com 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.
 
*<code>{{{#}}}</code>: Optional - the [[collector number]] of a specific card, if multiple cards in the same set have the same name, e.g. basic lands.
 
*<code>{{{title}}}</code>: Optional - It the text displayed should be somehow different from the card title.
 
 
===Examples===
 
#<nowiki>{{card|Jace Beleren}}</nowiki>
 
#*{{card|Jace Beleren}}
 
#<nowiki>{{card|Jace Beleren|Lorwyn}}</nowiki>
 
#*{{card|Jace Beleren|Lorwyn}}
 
#<nowiki>{{card|Jace Beleren|Promo|PDD2}}</nowiki>
 
#*{{card|Jace Beleren|Promo|PDD2}}
 
#<nowiki>{{card|Jace Beleren||PBOK}}</nowiki>
 
#*{{card|Jace Beleren||PBOK}}
 
#<nowiki>{{card|Golgari Guildgate|Guilds of Ravnica|#=248}}</nowiki><br/><nowiki>{{card|Golgari Guildgate|Guilds of Ravnica|#=249}}</nowiki>
 
#*{{card|Golgari Guildgate|Guilds of Ravnica|#=248}}
 
#*{{card|Golgari Guildgate|Guilds of Ravnica|#=249}}
 
#<nowiki>{{card|Black Lotus|title=a lotus which is black}}</nowiki>
 
#*{{card|Black Lotus|title=a lotus which is black}}
 
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 65: Line 45:
 
}
 
}
 
</templatedata>
 
</templatedata>
  +
 
===Examples===
 
#<nowiki>{{card|Jace Beleren}}</nowiki>
 
#*{{card|Jace Beleren}}
 
#<nowiki>{{card|Jace Beleren|Lorwyn}}</nowiki>
 
#*{{card|Jace Beleren|Lorwyn}}
 
#<nowiki>{{card|Jace Beleren|Promo|PDD2}}</nowiki>
 
#*{{card|Jace Beleren|Promo|PDD2}}
 
#<nowiki>{{card|Jace Beleren||PBOK}}</nowiki>
 
#*{{card|Jace Beleren||PBOK}}
 
#<nowiki>{{card|Golgari Guildgate|Guilds of Ravnica|#=248}}</nowiki><br/><nowiki>{{card|Golgari Guildgate|Guilds of Ravnica|#=249}}</nowiki>
 
#*{{card|Golgari Guildgate|Guilds of Ravnica|#=248}}
 
#*{{card|Golgari Guildgate|Guilds of Ravnica|#=249}}
 
#<nowiki>{{card|Black Lotus|title=a lotus which is black}}</nowiki>
 
#*{{card|Black Lotus|title=a lotus which is black}}

Revision as of 20:44, 27 September 2020

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

Creates an external link to a specific card on Scryfall.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name1

The name of the card

Example
Grizzly Bears; Daxos, With Eyes Open; Opt
Stringrequired
Set (optional)2

The name of the set the card appeared in. If omitted, the latest print is used.

Example
Limited Edition; Shadows over Innistrad; Theros: Beyond Death; Magic 2015
Stringsuggested
Set Code (optional)3

The set's code as it appears on Scryfall

Example
LEA, SOI, TAKH, PKTK
Stringoptional
Display name (optional)title

Override the card name with custom text; useful for Godzilla cards

Example
Godzilla, King of the Monsters; Ὁ πλανώμενος Φελδδαγρίφος
Stringoptional
Collector number (optional)#

The collector number as it appears on Scryfall; usefull for choosing a card with specific art

Example
13, 41f
Stringoptional

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|Black Lotus|title=a lotus which is black}}