Template talk:Date
From Wikipedia, the free encyclopedia
[edit] Freezing the current date
Hi - how do I insert the current day, with a template, and have it stick, so the date stays the same and doesn't keep updating with the current day automatically? -- Stbalbach 16:24, 23 February 2006 (UTC)
- The code for the template is currently:
- {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
- The problem would be solved by editing the template so that it says:
- {{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}} (UTC)
- Is there ANY reason why this change should not be made? As it stands, I think the template is asking for trouble. Consider the case of someone who wants to automatically title their contribution to Wikipedia_talk:Userboxes/New_Userboxes by using =={{subst:date}}== ... how are they supposed to know that their contribution will be labelled forever new? Zerrakhi 15:39, 16 May 2006 (UTC)
- I think then the date will be substituted when the template is saved. Whenever it is included, it will show the date when that change was made to the template! lol FLaRN (talk) 23:45, 21 November 2006 (UTC)
As of right now, you can make it stick using {{subst:today}}. No fancy parameters necessary.
Note however that {{today}} is not {{date}}. -- Fullstop (talk) 06:58, 25 January 2008 (UTC)
[edit] Where do I find this template ?
I just installed mediawiki-1.11.0 and trying to do something like {{date}} only results in the text Template:Date
I have the impression that I am missing a extension package to install ?
193.51.65.4 (talk) 12:41, 13 December 2007 (UTC)
- You have to copy this template to your wiki. This template is not part of the MediaWiki package. --- RockMFR 17:21, 13 December 2007 (UTC)
[edit] Unadjusted
The documentation says, "Dates outside that range (1970-2038) will appear unadjusted." However, the text:
- {{date|March 7, 1957}}
renders as:
- 1 January 1970
I.E. the date is mangled into the UNIX epoch. Superm401 - Talk 05:54, 19 April 2008 (UTC)
- This is a known issue - see bugzilla:11686. I'll go ahead and adjust the documentation to make note of this. --- RockMFR 14:39, 19 April 2008 (UTC)
Again, I'm forced to call the docs out:
- {{date|March 7, 99}}
renders as:
- 7 March 1999
Keep in mind. This is an encyclopedia, and history did not begin in 1000. --Superm401 - Talk 15:45, 19 April 2008 (UTC)