Template:Time: Difference between revisions
Created page with "<includeonly>{{#if:{{{1|}}}|{{#timef:{{{1|}}}|time}}}}</includeonly><noinclude> Example: <code><nowiki>{{Time|08:36}}</nowiki></code> {{Date|08:36}} <code><nowiki>{{Time|{{CURRENTTIME}}}}</nowiki></code> {{Date|{{CURRENTTIME}}}} <templatedata> { "params": { "1": { "label": "Time", "description": "The time, given in ISO 8601 format (HH:MM:SS).", "type": "string", "required": true } }, "description": "Shows a time, localised to the user's preference...." |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|{{#timef:{{{1 | <includeonly>{{#if:{{{1|}}}|{{#timef:{{{1}}}|time}}}}</includeonly><noinclude>= Example: = | ||
Example: | <pre><nowiki>{{Time|2025-01-25T08:40:00}}</nowiki></pre> | ||
{{Time|2025-01-25T08:40:00}} | |||
{{ | |||
<pre><nowiki>{{Time|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}</nowiki></pre> | |||
{{ | {{Time|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}} | ||
= See also: = | |||
* [[Template:Date]] | |||
* [[Template:Datetime]] | |||
= Template Data = | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 10: | Line 16: | ||
"1": { | "1": { | ||
"label": "Time", | "label": "Time", | ||
"description": "The time, given in ISO 8601 format ( | "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 |