Template:MTG: Difference between revisions
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...") |
Bongolium500 (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
Attr: -->|number={{{#|}}}<!-- | Attr: -->|number={{{#|}}}<!-- | ||
Attr: -->|title={{{title|{{{1}}}}}}<!-- Uses custom title/displayname if provided, otherwise just card name | Attr: -->|title={{{title|{{{1}}}}}}<!-- Uses custom title/displayname if provided, otherwise just card name | ||
-->}}</includeonly><!--adapted from https://mtg.fandom.com/wiki/Template:Card--><noinclude>{{Documentation}} | |||
-->}}</includeonly><!--adapted from https://mtg.fandom.com/wiki/Template:Card--><noinclude>{{Documentation}} | |||
[[Category:Magic product templates]]</noinclude> | [[Category:Magic product templates]]</noinclude> |
Latest revision as of 19:03, 17 October 2023
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[[edit source]]
- {{MTG|Davros, Dalek Creator}} : Davros, Dalek Creator
- {{MTG|The Fourth Doctor}} : The Fourth Doctor
- {{MTG|The Fourth Doctor|#=1146}} : The Fourth Doctor
- {{MTG|Davros, Dalek Creator|title=Davro's MTG card}} : Davro's MTG card
- {{MTG|Past in Flames}} : Past in Flames
- {{MTG|Mountain|#=202}} : Mountain
- {{MTG|Bowie Base One}} : Bowie Base One
- ''{{MTG|An Unearthly Child}}'' : An Unearthly Child
- {{MTG|Enlisted Wurm|Planechase 2012}} : Enlisted Wurm
- {{MTG|Enlisted Wurm||PC2}} : Enlisted Wurm
Technical details[[edit source]]
This template uses Extension:ScryfallLinks.
Template data[[edit source]]
Creates an external link to a specific card on Scryfall that displays the card's art when hovered over.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Card Name | 1 | The name of the card.
| String | required |
Set Name | 2 | The name of the set the card appeared in. Defaults to 'Doctor Who'.
| String | optional |
Scryfall Set Code | 3 | The set's code as it appears on Scryfall. Defaults to 'WHO'.
| String | optional |
Display Name | title | Override the card name in the link with custom text.
| String | optional |
Collector Number | # | The collector number as it appears on Scryfall. Usefull for choosing a card with specific art.
| String | optional |