Hearthstone Wiki
Advertisement

Card data not working[]

There is a problem with display. Every time I redirect a Data page, the Card infobox template only shows "No result", and Card template only displays the hyperlink name. Best examples are Data:Cards/Buried Finley(92206) and Data:Cards/Pile of Sand(92208). Is there a way to fix these? Use25 (talk) 15:13, 17 September 2019 (UTC)

I reposted this on the admin noticeboard, hopefully this gets resolved soon. Aegonostic (talk) 18:14, 17 September 2019 (UTC)
Linking to a redirect through the datapage parameter won't work; the lookup table that connects data pages to their card pages only has information from the data pages themselves and knows nothing of redirects as those are other pages. Either remove the datapage parameter and let Card infobox look it up by name, or if it complains about finding more than one card, provide the full subpage name of the data page. oOeyes User-OOeyes-Sig 08:11, 18 September 2019 (UTC)
After some further investigation, I realized that caching issues could make redirects appear to work on the datapage, but that only happens when the CardDataPages after a move. It would break sooner and later when the table did update. After sleeping on it last night, I think I've come up with a way for Card infobox to be able to find the data page through its redirect while also finding it if the CardDataPages table hasn't updated after a move. The one flaw with this is that if someone were to put a different data page over the redirect after a move, it would like grab that one instead, but if no one does anything silly like that, I think a solid workaround is in place for this. oOeyes User-OOeyes-Sig 20:20, 18 September 2019 (UTC)
Advertisement