Template:Card: Difference between revisions
Jump to navigation
Jump to search
>Yandere-sliver mNo edit summary |
>Tuamir mNo edit summary |
||
(31 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#tag:c|{{{1}}}|set={{#if:{{{2|}}}|{{{3|{{code by set|{{{2|}}}}}}}}|{{#if:{{{3|}}}|{{{3|}}}}}}}|number={{{#|}}}|title={{{1}}}}}{{#if:{{{2|}}}| (''{{#if:{{{3|}}}|[[{{{2| | <includeonly>{{#tag:c<!-- Card tag aka <c> | ||
Content: -->|{{{1}}}<!-- Card name (param1) | |||
Attr: -->|set={{#if:{{{2|}}}|{{{3|{{code by set|{{{2|}}}}}}}}<!-- Uses set code (param3) if possible, otherwise tries to get set code from set name (param2) | |||
-->|{{#if:{{{3|}}}|{{{3|}}}}}<!-- Just uses set code if no set name | |||
-->}}<!-- | |||
Attr: -->|number={{{#|}}}<!-- | |||
Attr: -->|title={{{title|{{{1}}}}}}<!-- Uses custom title/displayname if provided, otherwise just card name | |||
Attr: -->|artist={{{artist|}}}<!-- | |||
-->}}<!-- end c tag | |||
begin set & collector number note if set name is provided | |||
-->{{#if:{{{2|{{{3|}}}}}}| (''{{#if:{{{3|}}}|[[{{{2|{{set by code|{{{3|}}}}}}}}]]<!-- if set code provided, link to set by name, | |||
otherwise link set name normalized via set code (generating error categories if needed) | |||
-->|{{#if:{{{2|}}}|[[{{{{{set by code|{{code by set|{{{2|}}}}}}}|{{{2|}}}}}}]]}}<!-- Just uses set name if no set code | |||
# | -->}}<!-- | ||
# | -->{{#if:{{{#|}}}|, #{{{#}}}}}<!-- | ||
-->'')<!-- | |||
-->}}</includeonly><noinclude>{{Documentation}} | |||
[[Category:Magic product templates]]</noinclude> | |||
[[Category:Magic product templates]] |
Latest revision as of 00:55, 27 April 2023
This is a template documentation subpage for Template:Card.
It contains usage information, categories, interlanguage links and other content that is not part of the original template page.
It contains usage information, categories, interlanguage links and other content that is not part of the original template page.
This template can be used within another template to link to a card passed as a parameter.
{{card|card name|set name|scryfall set code|#=collector number}}
Creates an external link to a specific card on Scryfall.
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. If omitted, the latest print is used.
| String | suggested |
Scryfall Set Code | 3 | The set's code as it appears on Scryfall
| String | optional |
Display Name | title | Override the card name with custom text; useful for Godzilla cards
| String | optional |
Collector Number | # | The collector number as it appears on Scryfall; usefull for choosing a card with specific art
| String | optional |
Examples
- {{card|Jace Beleren}}
- {{card|Jace Beleren|Lorwyn}}
- {{card|Jace Beleren|Promo|DD2|#=1★}}
- Jace Beleren (Promo, #1★)
- {{card|Jace Beleren||PBOOK}}
- {{card|Golgari Guildgate|Guilds of Ravnica|#=248}}
{{card|Golgari Guildgate|Guilds of Ravnica|#=249}}- Golgari Guildgate (Guilds of Ravnica, #248)
- Golgari Guildgate (Guilds of Ravnica, #249)
- {{card|Black Lotus|title=a lotus which is black}}
- {{card|Urza's Tower||ATQ|#=85b}}
The above documentation is transcluded from Template:Card/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories and interwikis to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories and interwikis to the /doc subpage. Subpages of this template.