Template:Datetime: Difference between revisions
Appearance
Created page with "<includeonly>{{#if:{{{1|}}}|{{#timef:{{{1|}}}|both}}}}</includeonly><noinclude> Example: <code><nowiki>{{Datetime|2025-01-25T08:40:00}}</nowiki></code> {{Datetime|2025-01-25T08:40:00}} <code><nowiki>{{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}</nowiki></code> {{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}} <templatedata> { "params": { "1": { "label": "Time", "description": "The time on a..." |
No edit summary |
||
Line 10: | Line 10: | ||
"1": { | "1": { | ||
"label": "Time", | "label": "Time", | ||
"description": "The time on a given date, given in ISO 8601 format (YYYY-MM-DDTHH:MM:SS).", | "description": "The time on a given date, given in ISO 8601 format (YYYY-MM-DDTHH:MM:SS and optionally a time zone).", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true |
Revision as of 08:43, 25 January 2025
Example:
{{Datetime|2025-01-25T08:40:00}}
08:40, 25 January 2025
{{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}
20:31, 6 April 2025
Shows a date and time, localised to the user's preference.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Time | 1 | The time on a given date, given in ISO 8601 format (YYYY-MM-DDTHH:MM:SS and optionally a time zone). | String | required |