Template:Ph:Preferences
From Wikipedia, the free encyclopedia
Note on the date format:
If a section title contains a link according to the date formatting feature, the section title is user-dependent. This is not very practical for section linking, since it is hard or perhaps even impossible to make a link with the target depending on the date format set in the preferences.
Due to a special template Portal:Current events/DateHeader2, the full content about dates from 1 July 2006 is accessed with a link regardless of the preference setting of the user, e.g. March 2007#2007 March 14, even though this content has a header date in user-dependent format. This is achieved by not using a real section but a special-font header in user-dependent format with an explicitly defined anchor in a fixed date format.
Such a link accessing the content about a date is e.g. produced by Template:ThisDateInRecentYears (backlinks, edit). In this case the link label needs not contain the full date, but in other cases one would want a user-dependent date format as link label; however, that does not seem possible: the date formatting feature produces a linked date, which cannot be used as link label. Thus we have to dispense with the user-dependent date format, and use e.g.:
- [[March 2007#2007 March 5|5 March 2007]] giving 5 March 2007. This format applies from 1 July 2006.
Alternatively we can use:
- [[Portal:Current events/2007 March 5|5 March 2007]] giving 5 March 2007. The advantage is that we can find the pages linking to the given date by Special:Whatlinkshere/Portal:Current_events/2007 March 5.
See also Template:ThisDateInRecentYears (backlinks, edit) and Category:Days by year.