Portal talk:Current events/DateHeader2

From Wikipedia, the free encyclopedia

Protected Portal:Current events/DateHeader2 has been protected indefinitely. Use {{editprotected}} on this page to request an edit.

{{Portal:Current events/DateHeader2|2007|3|1}} and {{Portal:Current events/DateHeader2|2007|3|14}} give:

March 1, 2007 (Sunday) edit history watch
March 14, 2007 (Wednesday) edit history watch

(see the edit box for the template expansion):

The first has the anchors #2007_March_1 and #2007_March_01, the second the anchor #2007_March_14. Having the full date as anchor name allows transclusion of day pages from different years on one page, without collision of anchor names (which otherwise would cause the system to change the names).

Thus we can use the section links March 2007#2007 March 1, March 2007#2007 March 01, and March 2007#2007 March 14.

The first is not recommended, because when applying Special:Linksearch to find links in external style to the content on 1 March, one would get also those to content on 10 March, etc.

The anchors have a fixed format, while the page contains with a "bold" specification the expanded wikitext such as "[[March 14]],[[2007]]" which due to the date formatting feature produces links of which one has a user-dependent link label, but with fixed targets "March 14" and "2007"; it also has various links related to the page Portal:Current events/2007 March 14.

Unfortunately it does not seem possible to have a link with the same target as March 2007#2007 March 14 but with a link label like the combined labels of the user-dependent March 14, 2007. The best seems something like "14 March 2007 [1]" (linking to the section of the month page); backlinks of this type are found by [2].

The day number in the anchor has, when below 10, a leading zero, see also [3].

Compare Template:datelink (talk, backlinks, edit).