Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MTG

Template page
Revision as of 18:52, 17 October 2023 by Bongolium500 (talk | contribs) (Created page with "<includeonly>{{#tag:c<!-- Card tag aka <c> Content: -->|{{{1}}}<!-- Card name (param1) Attr: -->|set={{#if:{{{2|}}}|{{{3|{{MTG code by set|{{{2|Doctor Who}}}}}}}}<!-- Uses set code (param3) if possible, otherwise tries to get set code from set name (param2) -->|{{#if:{{{3|WHO}}}|{{{3|WHO}}}}}<!-- Just uses set code if no set name -->}}<!-- Attr: -->|number={{{#|}}}<!-- Attr: -->|title={{{title|{{{1}}}}}}<!-- Uses custom...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Instructions for {{MTG}}
{{MTG}} is a template taken from the Magic: The Gathering wiki that creates a link to Scryfall (a database of MTG cards) that displays the card's artwork when hovered over. For example, {{MTG|The Fourth Doctor}} becomes The Fourth Doctor.

The syntax is as follows:

{{MTG|card name|set name|scryfall set code|#=collector number|title=display name}}

|card name= is the name of the card, exactly as it appears on the card. |set name= is the card's set's pagename on the Magic: The Gathering wiki. This defaults to "Doctor Who" so can usually be omitted. |scryfall set code= is for the set's code on Scryfall. It defaults to "WHO" so can usually be omitted. |#= is the card's collectors number as it appears on Scryfall and can be used for displaying alternate artwork. |title= lets you override the card's title as it appears in the link.

Examples

Technical details

This template uses Extension:ScryfallLinks.

Template data

Creates an external link to a specific card on Scryfall that displays the card's art when hovered over.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Card Name1

The name of the card.

Example
The Fourth Doctor; Davros, Dalek Creator; Mountain
Stringrequired
Set Name2

The name of the set the card appeared in. Defaults to 'Doctor Who'.

Example
Doctor Who; Limited Edition; Shadows over Innistrad; Theros: Beyond Death; Magic 2015
Stringoptional
Scryfall Set Code3

The set's code as it appears on Scryfall. Defaults to 'WHO'.

Example
WHO, LEA, SOI, TAKH, PKTK
Stringoptional
Display Nametitle

Override the card name in the link with custom text.

Example
Davro's MTG card
Stringoptional
Collector Number#

The collector number as it appears on Scryfall. Usefull for choosing a card with specific art.

Example
13, 41f
Stringoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.