Difference between revisions of "Template:Date"
ink>Heddy (Created template.) |
Darumarchen (talk | contribs) m (3 revisions imported) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#dateformat:{{{1}}}|dmy}}</includeonly><noinclude> | <includeonly>{{#dateformat:{{{1}}}|dmy}}</includeonly><noinclude> | ||
| − | This template will automatically format | + | This template will automatically format dates to suit a user's preferences. The preferences can be changed at [[Special:Preferences]]. |
| − | For logged-out users | + | For logged-out users and users who did not choose a preference, the date format will default to '''d mmmm yyyy''' ({{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}). |
== Usage == | == Usage == | ||
{{t|date|date}} | {{t|date|date}} | ||
| − | For ''<date>'', enter the date in | + | For ''<date>'', enter the date in ISO 8601 format: '''yyyy-mm-dd''' ({{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}). |
[[Category:Formatting Templates]] | [[Category:Formatting Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 22:26, 17 May 2019
This template will automatically format dates to suit a user's preferences. The preferences can be changed at Special:Preferences.
For logged-out users and users who did not choose a preference, the date format will default to d mmmm yyyy (22 December 2025).
Usage[edit]
For <date>, enter the date in ISO 8601 format: yyyy-mm-dd (2025-12-22).