Template:Datetime: Difference between revisions
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 |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|{{#timef:{{{1|}}}| | <includeonly>{{#if:{{{1|}}}|{{Date|{{#timef:{{{1}}}|date}}}} {{Time|{{{1}}}}}}}</includeonly><noinclude>= Example: = | ||
Example: | <pre><nowiki>{{Datetime|2025-01-25T08:40:00}}</nowiki></pre> | ||
{{Datetime|2025-01-25T08:40:00}} | {{Datetime|2025-01-25T08:40:00}} | ||
<pre><nowiki>{{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}</nowiki></pre> | |||
{{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}} | {{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}} | ||
= See also: = | |||
* [[Template:Date]] | |||
* [[Template:Time]] | |||
= Template Data = | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 10: | Line 16: | ||
"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 |