In the next few weeks, your wiki will be migrated to a domain. Learn more here.

Template talk:Infobox mechanic

From MTG Wiki
Jump to: navigation, search

Stats parameter[edit source]

This thread on Reddit points to our flash page, on which the color distribution stats are woefully out of date. Does anyone have ideas for making maintenance on those values more practical? If not, should we retain known inaccurate information? --Corveroth (talk) 06:30, 28 May 2017 (UTC)

I don't think it will be easier without a Module that does access Gatherer directly. And even with that it's difficult to remove false/positive from it. And then the grouping of multicolor might be difficult because of Three or more colored cards --Hanmac (talk) 06:45, 28 May 2017 (UTC)
So, I had a terrible, wonderful idea. Make a module, akin to Module:CR, that consists mostly of mtgjson in its entirety. And another partner module for a json library. Generate stats on demand. Thoughts? --Corveroth (talk) 04:08, 29 May 2017 (UTC)
that should work, we only need to find a way to make it search right ... like Flash should not find Flashback --Hanmac (talk) 04:31, 29 May 2017 (UTC)
That's pretty easy, actually. My only major concern is potential performance issues, but I'm probably overthinking it and anyways, #yolo. --Corveroth (talk) 04:35, 29 May 2017 (UTC)
Okay, I can't put all of this into modules simply because the smaller of the mtgjson databases is already ~4x the size limit for a page. Probably smarter to do it in javascript if possible anyways. I'll mull it over some more. --Corveroth (talk) 02:07, 30 May 2017 (UTC)