Category talk:Updates
From Guild Wars 2 Wiki
Jump to navigationJump to search
Sortkey[edit]
- See WP:SORTKEY, and mechanics of sort order.
The current sort order for monthly update pages needs improvements. A few proposals:
Page | Curr | Sortkey#1 | Sortkey#2 | Sortkey#3 | Sortkey#4 |
---|---|---|---|---|---|
December 1999 | 89 12 | 9 1999-12 | 9 1999-12 | 9 1999-12 | 1999-12 |
January 2000 | -10 1 | 0 2000-01 | 0 2000-01 | 0 2000-01 | 2000-01 |
December 2010 | 0 12 | 0 2010-12 | 1 2010-12 | 0 2010-12 | 2010-12 |
January 2015 | 5 1 | 5 2015-01 | 1 2015-01 | 0 2015-01 | 2015-01 |
February 2015 | 5 2 | 5 2015-02 | 1 2015-02 | 0 2015-02 | 2015-02 |
March 2015 | 5 3 | 5 2015-03 | 1 2015-03 | 0 2015-03 | 2015-03 |
April 2015 | 5 4 | 5 2015-04 | 1 2015-04 | 0 2015-04 | 2015-04 |
May 2015 | 5 5 | 5 2015-05 | 1 2015-05 | 0 2015-05 | 2015-05 |
June 2015 | 5 6 | 5 2015-06 | 1 2015-06 | 0 2015-06 | 2015-06 |
July 2015 | 5 7 | 5 2015-07 | 1 2015-07 | 0 2015-07 | 2015-07 |
August 2015 | 5 8 | 5 2015-08 | 1 2015-08 | 0 2015-08 | 2015-08 |
September 2015 | 5 9 | 5 2015-09 | 1 2015-09 | 0 2015-09 | 2015-09 |
October 2015 | 5 10 | 5 2015-10 | 1 2015-10 | 0 2015-10 | 2015-10 |
November 2015 | 5 11 | 5 2015-11 | 1 2015-11 | 0 2015-11 | 2015-11 |
December 2015 | 5 12 | 5 2015-12 | 1 2015-12 | 0 2015-12 | 2015-12 |
January 2020 | 10 1 | 0 2020-01 | 2 2020-01 | 0 2020-01 | 2020-01 |
January 2100 | -10 1 | 0 2100-01 | 0 2100-01 | 1 2100-01 | 2100-01 |
- Curr = How we sort monthly pages now. Only subtracts 10 from the year, and uses a non-0pad month. Causes months to be sorted as "Jan, Oct, Nov, Dec, Feb, ..., Sep".
- sortkey#1 = Uses the ones digit of year. Similar to how we currently sort, but year 2020~2029 won't be clumped with 2011.
- sortkey#2 = Uses the decades digit of year. This is probably the optimal choice. It takes 10 years for a "collision", and we're in the middle of this decade.
- sortkey#3 = Uses the centuries digit of year. Not optimal and boring because we won't see any grouping for a century of updates, but allows for even less "collision" than sortkey#2. We won't see any grouping for 100 years worth of updates however...
- sortkey#4 = Uses the millennia digit of year, which is like using YMD. This is probably not what we want, because the range is outside our lifetime of game update pages (we're at the start of the millennium--realistically, game and wiki won't live for 1000+ years). And that means everything 2000~2999 will be placed under the 2 H3.
Anyway, whichever grouping of year we decide on, the month sorting really needs a fix. Use the full YYYY-MM-DD somewhere. No cutting corners with zero-padding. --BryghtShadow (talk) 19:29, 1 December 2015 (UTC)
- So the current problem that is most glaring is the lack of zero padding on the month number, which could be fixed by replacing
#time: n
with#time: m
, i.e.{{#expr: {{#time: y | {{#var:month}}-01 }} - 10 }} {{ #time: m | {{#var:month}}-01 }}
- But I guess your option 2 works too.
{{#expr:({{#time:Y|{{#var:month}}-01}} / 1 ) mod 10 }} {{#var:month}}
. -Chieftain Alex 01:06, 6 January 2016 (UTC)
- Changes carried out. Thanks. -Chieftain Alex 10:52, 6 January 2016 (UTC)