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

Template talk:Gamebox: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
Line 37: Line 37:
Is this correct? [[User:SigmaEpsilon|SigmaEpsilon]] 12:02, 18 August 2007 (MDT)
Is this correct? [[User:SigmaEpsilon|SigmaEpsilon]] 12:02, 18 August 2007 (MDT)
:Yeah, although some types go to three digits already (nothing's over 400s though I don't think). -- [[User:Mr. Flay|Mr.]] [[User_talk:Mr. Flay|Flay]] 14:48, 18 August 2007 (MDT)
:Yeah, although some types go to three digits already (nothing's over 400s though I don't think). -- [[User:Mr. Flay|Mr.]] [[User_talk:Mr. Flay|Flay]] 14:48, 18 August 2007 (MDT)
::Ok... so you want a straight ''numerical'' sort (9 before 50 before 136), rather than a ''text'' sort (reverse order of previous example). Let me try yo find out if there is  nice way to code that... [[User:SigmaEpsilon|SigmaEpsilon]] ([[User talk:SigmaEpsilon|talk]]) 14:05, 19 August 2007 (MDT)

Revision as of 20:05, 19 August 2007

So Gamebox2 is for games in the archive? Clever... course, we can make that a variable in gamebox if you like. :D -- Mr. Flay 13:38, 17 August 2007 (MDT)

of course you can... :P -- i don't understand what the {{{name}}} function does in the [[Category]] tags... LyingBrian 13:58, 17 August 2007 (MDT)
Unlike with wikilinks (where it changes what's displayed), piping a category changes the sort order. So putting Mafia 3 into [[Category:Large Games]] would sort it under M, while putting it in [[Category:Large Games|03]] will sort it under 0. Make sense now? I'm just repurposing the name variable that already exists, we probably ought to rename it if we want to use it this way... -- Mr. Flay 14:04, 17 August 2007 (MDT)
ok, i think i get it now... using Newbie 438 as an example, if i put |name=Newbie 438|, it will file it under 'N', but if i use |name=438|, then it will file it under '4', right?.. if that's the case, yes we ought to rename it, but i also see a potential problem... in New York & Little Italy you're going to have coinciding numbers... in New York, this is already present, 'Mafia 35' & 'Open 35', and in Little Italy they just need a few more Open Games to catch the lowest Mini Game... you probably have a work around for this, though :D -- LyingBrian 14:44, 17 August 2007 (MDT)
Actually, I don't. We could avoid sorting the "played by forum" categories, of course, which would eliminate that confusion in favor of a wholly different one (everything will be in M or O). Hmmm... I don't think it's too big a problem if Open 37 and Mini 37 are sorted together under '3', personally, as it'll make all the categories easy to sift through.. But yes, you're right in how it works. :) -- Mr. Flay 14:50, 17 August 2007 (MDT)
nevermind, i'm an idiot... it will just sort them under the number 0, but as Mafia 35 & Open 35... if you're looking for Open 35 you just have to remember it's going to be among the Mafia Games, and not separated... unless we can do subcategories?.. it was brought up earlier, but what about when we reach Newbie 1000 or Mini 1000?... do we want to nip this in the bud, and just number everthing w/ 4 numerals? or should we hope WikiMedia will come up w/ a fix by then?.. ;) LyingBrian 14:59, 17 August 2007 (MDT)
I'm going to hope that either MediaWiki will be smarter by then, or one of us will have a bot to go through the hundreds of entries... ;) -- Mr. Flay 15:11, 17 August 2007 (MDT)

DEFAULTSORT

i found this line above the category boxes and wondered what it was for... it seems to have messed up the sorting fix we had implemented...
-- LyingBrian 09:47, 18 August 2007 (MDT)

I just checked your "sorting fix" and it seems severely problematic. Several things are sorted under "0" that should not be and some things are sorted under "{". This is clearly wrong. I added the DEFAULTSORT, and maybe if we work together, I can help you get this working. SigmaEpsilon 11:58, 18 August 2007 (MDT)

Exlpain what sorting you want

If you guys explain axactly how you want this stuff to be sorted, I can help better. So far it seems like this is what you want:

0
  • Mini 1
  • Mini 2

...

  • Open 1
  • Open 2

...

...

3
  • Mini 31
  • Mini 32

...

  • Open 35
  • Open 36

Is this correct? SigmaEpsilon 12:02, 18 August 2007 (MDT)

Yeah, although some types go to three digits already (nothing's over 400s though I don't think). -- Mr. Flay 14:48, 18 August 2007 (MDT)
Ok... so you want a straight numerical sort (9 before 50 before 136), rather than a text sort (reverse order of previous example). Let me try yo find out if there is nice way to code that... SigmaEpsilon (talk) 14:05, 19 August 2007 (MDT)