You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Category talk:Games played in the Road to Rome
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)
- 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).
- 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...
-- Mr. Flay 13:37, 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...
I suddenly realised... what's the difference between this category and "Newbie Games"? Which one is better?
-- Andycyca||me||What? 08:28, 5 November 2007 (MST)
- the difference is the value that is pulled from the {{gamebox}} template... 'Newbie Games' refer to the games that have a 'Newbie' Setup (most of these were before the C9 Setup was invented), while 'Games played in RTR' is the forum... represented by the
setup=
&forum=
fields in the {{gamebox}} template respectively... also, i noticed you manually added the 'Category' links for Newbie 490... this isn't necessary, as filling out the appropriate fields in the {{gamebox}} template will automatically create the 'Category' links at the bottom of the page...
-- Dani Banani 11:25, 5 November 2007 (MST)