Template talk:POTW

From FlightGear wiki
Jump to navigation Jump to search

Broken archive link

Archive link is broken for all the translations of the Main Page. For example on the German Page it points to "Category:Picture of the week Haup". Please fix the script!

This unsigned comment was added by Hamster (Talk | contribs) 22:21, 19 March 2012 (UTC)

Thanks for notifying! My fault, I accidentally copied the code to categorize the templates to the archive link. It's fixed now.
Gijs 17:28, 1 April 2012 (EDT)

Sorting in the categories

I have noticed that the sorting in the categories are a bit sub-optimal, maybe we should recommend category sorting using the week, for example like this:

<noinlcude>[[Category:Picture of the week 2024|13]]</noinclude>

Johan G (Talk | contribs) 14:47, 20 November 2013 (UTC)

Done Done Added week as category sort key to the copyable template example.
Johan G (Talk | contribs) 12:56, 4 December 2013 (UTC)
Not done Not done Did not think that one through. That would of course sort the templates just as bad as now on the category page. Any ideas?
Johan G (Talk | contribs) 13:11, 4 December 2013 (UTC)
Not sure what you're trying to achieve (is the issue that 9 appears after 89?), but maybe using zero-padded week numbers helps? So 09 instead of 9. You can use {{#time:W}} for that.
Gijs (talk) 13:56, 4 December 2013 (UTC)
Yep, that exactly, 1, 2, 3..10..52. Thanks!.
I did not think of those parser functions at all, and was actually pondering using {{#expr: floor( {{CURRENTWEEK}} / 10) * 10}} but considered it more than a bit inelegant. :-P
Johan G (Talk | contribs) 16:36, 4 December 2013 (UTC)