Deckstats Forum

English-language Forums => About Deckstats => Deckstats Feedback => Topic started by: N4M3Z on April 02, 2018, 07:03:06 pm

Title: Linking card preview in deck description and card comments
Post by: N4M3Z on April 02, 2018, 07:03:06 pm
Hello everyone and thank your for all the time and effort you devote to DeckStats.net. It's an amazing tool.

I would like to ask if it is possible to link card preview in deck descriptions, card comments and forum posts, i.e. the same preview that you get when you point mouse on the card name in the deck lists. The established way within the community seems to be [[Card Name]] notation so [[Avenger of Zendikar]] should work, but I don't see this documented anywhere and it does not seem to work.

Thank you for your help.
Title: Re: Linking card preview in deck description and card comments
Post by: Nils on April 04, 2018, 10:31:16 am
Card names should be linked automatically, so if you just write Avenger of Zendikar (http://cards.deckstats.net/magiccard.php?lng=en&card=Avenger+of+Zendikar) that should work! I might look into also adding an explicit way of doing this (eg. [[card]]) but it shouldn't really be required unless a card is not being detected for some reason.
Title: Re: Linking card preview in deck description and card comments
Post by: N4M3Z on April 11, 2018, 12:00:44 am
Hello and thanks for the response. I later noticed that it works in the deck description if used by it's own like so: Contamination (https://cards.deckstats.net/magiccard.php?lng=en&card=Contamination). It wouldn't work if used as [[Contamination]] however which is what I was trying first. However, automatic card links still don't work in card notes, which I believe is a great place to have them. Also, if you are doing it automatically rather than explicitly, you might face contamination (https://cards.deckstats.net/magiccard.php?lng=en&card=Contamination) even if don't want to.
Title: Re: Linking card preview in deck description and card comments
Post by: Nils on June 03, 2018, 01:53:45 pm
I have now added support for links such as [[Forest]] (https://cards.deckstats.net/magiccard.php?lng=en&card=Forest), so you can now use either notation. This is particularly useful for card names that are also commonly used words, such as [[Sorry]] (https://cards.deckstats.net/magiccard.php?lng=en&card=Sorry), which will normally not be linked.

By card notes, do you mean the comments that you can add to each card in your deck list? Could you send me an example?
Title: Re: Linking card preview in deck description and card comments
Post by: N4M3Z on August 08, 2018, 11:29:37 pm
Hi Nils, great job, thanks a lot. Would you consider removing the [[ ]] (https://cards.deckstats.net/magiccard.php?lng=en&card=+), when the card is recognized?

Correct, I was talking about card comments that you can add to each card in the deck list. So for example let's say my comment is:
`Seems necessary to deal with Maze of Ith (https://cards.deckstats.net/magiccard.php?lng=en&card=Maze+of+Ith) etc. strategies`
I would like the [[Maze of Ith]] (https://cards.deckstats.net/magiccard.php?lng=en&card=Maze+of+Ith) to link a card.