Template:Card: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
mNo edit summary
>Yandere-sliver
(Reintroduced the title use-case)
Line 1: Line 1:
<includeonly>{{#tag:c|{{{1}}}|set={{#if:{{{2|}}}|{{{3|{{code by set|{{{2|}}}}}}}}|{{#if:{{{3|}}}|{{{3|}}}}}}}|number={{{#|}}}|title={{{1}}}}}{{#if:{{{2|}}}|&#32;(''{{#if:{{{3|}}}|[[{{{2|}}}]]|[[{{set by code|{{code by set|{{{2|}}}}}}}|{{{2|}}}]]}}{{#if:{{{#|}}}|, #{{{#}}}}}'')}}</includeonly><noinclude>==Usage==
<includeonly>{{#tag:c|{{{1}}}|set={{#if:{{{2|}}}|{{{3|{{code by set|{{{2|}}}}}}}}|{{#if:{{{3|}}}|{{{3|}}}}}}}|number={{{#|}}}|title={{{title|{{{1}}}}}}}}{{#if:{{{2|}}}|&#32;(''{{#if:{{{3|}}}|[[{{{2|}}}]]|[[{{set by code|{{code by set|{{{2|}}}}}}}|{{{2|}}}]]}}{{#if:{{{#|}}}|, #{{{#}}}}}'')}}</includeonly><noinclude>==Usage==
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.


Line 9: Line 9:
*<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>{{{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>{{{#}}}</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===
===Examples===
Line 22: Line 23:
#*{{cardlink|Golgari Guildgate|Guilds of Ravnica|#=248}}
#*{{cardlink|Golgari Guildgate|Guilds of Ravnica|#=248}}
#*{{cardlink|Golgari Guildgate|Guilds of Ravnica|#=249}}
#*{{cardlink|Golgari Guildgate|Guilds of Ravnica|#=249}}
 
# <nowiki>{{cardlink|Cylian Elf|title=Cylian elves}}</nowiki>
#*{{cardlink|Cylian Elf|title=Cylian elves}}
[[Category:Magic product templates]]
[[Category:Magic product templates]]

Revision as of 10:28, 9 February 2019

Usage

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

{{cardlink|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. {{cardlink|Jace Beleren}}
  2. {{cardlink|Jace Beleren|Lorwyn}}
  3. {{cardlink|Jace Beleren|Promo|PDD2}}
  4. {{cardlink|Jace Beleren||PBOK}}
  5. {{cardlink|Golgari Guildgate|Guilds of Ravnica|#=248}}
    {{cardlink|Golgari Guildgate|Guilds of Ravnica|#=249}}
  6. {{cardlink|Cylian Elf|title=Cylian elves}}