Template talk:News
From Organic Design wiki
Revision as of 00:46, 4 September 2011 by Robin Patterson (talk | contribs) (→Category listing: See 11 June 2007)
Category listing
If one of you clever folks could add a suitable piped link to "Category:News" in the template, showing the date in ISO format or similar, all of the items could list in date order in the category, instead of alphanumerically by "NZ English" date format. Robin Patterson 06:50, 3 September 2011 (PDT)
- Thanks for the suggestion, I've reverted the manual categorisations you did as there's too many to do by hand, I could get a robot to do it some time, but I'd prefer to have an automatic way as you suggest in Template:News, but it's actually quite difficult and I haven't been able to figure out a way to do it yet. The reason it's so hard is because there's no way for a template to obtain the name of the article that's transcluding it - I can't even add a magic word for it because it's not readily available from the MediaWiki PHP code either. --nad 15:36, 3 September 2011 (PDT)
- Have you tried using something related to the relevant-looking item on 11 June 2007? "Date of first edit". Seems to me that if you can dig that info out of a page to arrange pages in a defined way you may be able to put the info in a piped link that orders the category. That's what prompted my edit summary on 11 June 2007. Robin Patterson 17:46, 3 September 2011 (PDT)