Okay, let's see: let's say I manually state which categories to watch using pairs of the form
{ "category name": "scanbox= text" }
For the front page, I would need to do the following
- Read all scanboxes
- Read all page names for all categories
- For each scanbox, determine the values and add them to the stats for the category it belongs to
- Produce the full report
For individual report pages, I would need to do the following
- Read all scanboxes for the given console= value
- Read all page names from the category
- For each scanbox, determine the values and add them to the stats
- Produce the full report
My issue is whether or not this would require me to duplicate code, and what data structures I would need to use to make this sortable (for the report page). However, this looks attractive, and if I use a map[category string]ScanSet I think I can avoid the need to use separate code outright (just pass in all the category names or just the one category name as a list...).
I'll just do that, if everybody thinks it'll do. The only cost is that this list needs to be edited if we add or drop categories, but since it will be in a configuration file, this won't be a hassle. In that case, here's what the category list will be:
Accessories without indiviudal scans can be dealt with individually; I have
Template:NoScans for that... This is also a proposal for the system variations pages: put them all in a category like Category:Mega Drive systems, put the system variation name in the region= field (yes this is clumsier but avoids needing to have multiple entries or one category), and then it would be covered too. I can also edit this list to cover tings like our video scans...
This leaves a number of scanboxes (such as the ones for the Football Manager titles) that are marked PC/Mac; not sure how to handle those apart from splitting nad having duplicates :/ Any other ideas? Also should the two games for PC Engine Super CD-ROM² games (Gain Ground SX and Bonanza Bros.) have the scanbox say (and thus be listed as) PC Engine CD-ROM² games?
This post has been edited by Andlabs: 31 March 2013 - 01:30 AM