Template talk:Card

From MTG Wiki
Jump to: navigation, search

Documentation

It would be nice if the positional parameters were documented. I can't figure out what they do from looking at the code. —Fenhl 11:51, 28 April 2016 (UTC)

i think that should show all possible parameters and options. there are currently some things the template cant do, but thats some problems with the <c> tag behind it, or with magiccards.info like with split cards, it only shows the left side, not the right one. --Hanmac (talk) 12:09, 28 April 2016 (UTC)

Innistrad Bug

I just write this here that we remove the hot-fix once the actual problem is fixed. - Yandere Sliver H09 symbol.png 13:19, 28 April 2016 (UTC)

yeah i already did send a message at magiccards.info, it says it might take a week until the admin will react, if. but i added my e-mail where he can respond to me --Hanmac (talk) 13:26, 28 April 2016 (UTC)

Modified template

I updated this template so that it is now possible to just include a set code (and not a set name) in the template, by leaving the second parameter blank, and the appropriate print will still be fetched, but if you do this the set name will not be shown in parentheses after the card name. I did this because sometimes specific editions of cards are necessary in article text (as opposed to lists of cards), but surrounding text already provides set information, and so having the set name in parentheses is redundant.

To see what I mean, compare this version (old version) and this version (new version) of the page for Tombstone icon. In particular, look at the two cards Valor and Call of the Herd linked in the "Description" section of the page. The old version includes (Time Spiral) after the card names. However, if you read the sentence that contains these card links, you will see that it already mentions that it is the Time Spiral editions of these cards that is being referred to, so having (Time Spiral) there as well after each card name is redundant.

I don't want to go around changing dozens of instances of this template in articles, so I've only edited the Tombstone icon article to use the template in this new way for now. If some people object to my update to the template code for some reason and it ends up getting reverted, I don't want them to also have to revert who-knows-how-many articles to use the old template parameter options. So I will give it a little time so that people can comment on this change.

(Note that all previously-existing calls to the template will still function as they used to. None of the old stuff has changed; it's just that now there is a new way to use the template in addition to the old ways.) --WGnome (talk) 05:23, 25 August 2018 (UTC)

Very cool addition. That is definitely helpful with a lot of Promo cardlinks. We sometimes have them listed on the page they link to. Thank you very much. - Yandere Sliver H09 symbol.png 16:21, 25 August 2018 (UTC)

Multiple versions

Is there a way to link to a specific version, if there are two versions in the same set? of e.g Golgari Guildgate in Guilds of Ravnica? Or Amateur Auteur in Unstable? (Basically linking the card number) --Hunter (talk) 08:09, 16 September 2018 (UTC)

Currently not, it is on my to do list to figure that out. But I have no immediate idea how to implement that. Let me check that perhaps I can figure something out. - Yandere Sliver H09 symbol.png 12:47, 16 September 2018 (UTC)
Hunter -- the code for the extension is at this github repository if you know any JS and would like to try working on it yourself. --WGnome (talk) 15:47, 16 September 2018 (UTC)

Shorten template name

"Cardlink" is not long but it could be shortend to "card". "C" is out because that would be colorless mana, but I think card is at least be the link could be dropped. - Yandere Sliver H09 symbol.png 10:39, 9 February 2019 (UTC)