11

In Infractions/Player Communication - Infernal Tutor and Lion's Eye Diamond, it would be nice to link correctly to Lion's Eye Diamond. Using an apostrophe character, as in [mtg:Lion's Eye Diamond] seems to break the autocard markup: Lion's Eye Diamond. Is there some way to do this, perhaps with explicit character encoding? I had a go, but wasn't successful.

Two in the same day! [mtg: Sensei's Divining Top], needed in this question.

8
  • If we can escape the %27 it might work, but otherwise I don't know. Commented Apr 15, 2013 at 11:41
  • Isn't this related to this question? meta.boardgames.stackexchange.com/questions/794/…
    – Aarthi Staff
    Commented Apr 15, 2013 at 14:20
  • 3
    @Aarthi - Yes. I'm raising it again though because it's a pain, and there's been no satisfactory response to Alex P's comment. While I agree that the API doesn't support the quote, there's absolutely no reason our implementation can't accept the quote char, and then just drop it before calling the API.
    – ire_and_curses Mod
    Commented Apr 15, 2013 at 15:39
  • 1
    Ok. I'll ask KevinMontrose to take a look at it.
    – Aarthi Staff
    Commented Apr 15, 2013 at 19:32
  • 4
    Bump This is a continuing annoyance. Many MTG cards use an apostrophe in their name.
    – ikegami
    Commented Dec 26, 2013 at 18:02
  • I think the @Aarthi might have been missing from the "bump". I can never remember exactly who gets notified on these. Commented Jan 5, 2014 at 9:21
  • @shujaa - I don't think Aarthi works for SE anymore. I think Abby is now watching over us.
    – ire_and_curses Mod
    Commented Jan 6, 2014 at 19:11
  • VTC as duplicate of the newer thread, in which this was resolved. Commented Jul 5, 2016 at 16:10

2 Answers 2

6

Let's switch to using Magiccards.info instead of the Gatherer for our mtg: links.

Currently they point here:

http://www.wizards.com/magic/autocard.asp?name={name}

Let's point them here:

http://www.magiccards.info/query?q=!{name}

It'll work, since they don't drop the apostrophe like the Gatherer does.

The MTG Salvation Wiki uses Maggicards.info instead of the Gatherer, and this bug is probably why. It's a little crummy having to either make people compensate for broken links, or use improper names like Kiora Follower to get around it.

What's that ! there for?

It's the exact match flag. Compare:

This also handles specific cards better.

See how the Gatherer handles these: Inkmoth Nexus and Pox.

Compared to Magiccards.info: Inkmoth Nexus and Pox

1
  • 1
    So far, I can't find any cards that don't work. Apostrophes work. Commas work. Magic's AE thing works. I guess the only issue is a bit of a legal question.
    – Alex P
    Commented Mar 31, 2014 at 20:21
0

The bug is internal to Wizards' website - their public card search drops the apostrophe instead of passing it on. The link is already encoded correctly - they're just stripping punctuation for some unknown reason*.

If they ever fix this, we're already sending them the right input so it'll just start working.

As a work-around, just drop the possessive: Sensei's Divining Top -> Sensei Divining Top

*my money's on crappy input sanitizing

5
  • 2
    Frankly: a lot of things about the Wizards website is pretty terrible. INCLUDING THEIR TOS. shakes fist
    – Aarthi Staff
    Commented Apr 16, 2013 at 18:42
  • 6
    I already know this. So why can't we (StackExchange) strip the apostrophe before sending it to the broken API? The work-around is lame. It looks like a typo.
    – ire_and_curses Mod
    Commented Apr 16, 2013 at 19:24
  • Couldn't we copy the way MTG itself displays cards? <a class="nodec" keyname="name" keyvalue="Giant_Growth" onmouseover="OpenTip(event, this)" onclick="autoCardWindow(this)" href="javascript:void()">Giant Growth</a> The auto-popup window is really nice.
    – Andomar
    Commented Jun 4, 2013 at 7:42
  • 2
    See aarthi's comment about Wizards' TOS above, @Andomar. We'd have to violate it in order to do that - and yes, lots of other sites do so, but we're not interested in the liability; if they change their TOS, we can implement it.
    – Shog9 Mod
    Commented Jun 4, 2013 at 17:11
  • 2
    @ire_and_curses This seems to have been forgotten, but "community" just bumped this, so I thought I'd chime in and say strongly agree with your comment. Commented Feb 26, 2014 at 0:21

Not the answer you're looking for? Browse other questions tagged .