You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Category talk:Games played in the Road to Rome

From MafiaWiki
Revision as of 19:37, 17 August 2007 by Mr. Flay (talk | contribs) (→‎Cat sorting: I think I got it figured out!)
Jump to navigation Jump to search

Cat sorting

Looking in this category, I see that the games are getting sorted ickily (Newbie 2 after Newbie 161, for instance). The way around this, I think, is to add a sort key to the games (e.g., [[Category:<blah>|Newbie 001]], etc. We presumably don't want it displayed like this, so maybe have an optional sort field in the gamebox template? If not specified, it would just get sorted the normal way. If specified, the category declarations would have the sorting key added. --YYCguy 09:01, 17 August 2007 (MDT)

Yeah, category sorting is always done alphabetically, whatever the symbol is, which is sort of a pain. We could sort by 001, so all the 0xx games came first, then the 100s, etc... have to think on it some more. Would be nice if the gamebox templaet could pull that out for us without adding another variable, because it's gonna be a pain when we get to Newbie 999... :D -- Mr. Flay 09:06, 17 August 2007 (MDT)
yeah, i remember bringing this up in the Wiki Group thread... hopefully i'm not as abrasive as i was back then, but i agree that it would be nice to somehow order it sequentially w/o having to manually order it... LyingBrian 09:47, 17 August 2007 (MDT)
Let me ask on Wikipedia and see if there's any clever wiki-voodoo for pulling the numbers out of a page title (I bet not, but it doesn't hurt to ask). -- Mr. Flay 12:11, 17 August 2007 (MDT)
Hey, I think I got it sorted out! Check out Category:Newbie Games and how it now sorts Newbie 2. Essentially I was able to pull the game name from the page title, collapse the forum link into that, and then re-use the 'name' link for a sorting key (in this case, 002). If we want to fix the existing games, we can change the name of that variable to 'sort' instead of 'name', but that can wait until we decide all the outcome/status stuff, I think...