Template:Time: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(8 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}} | {{Time|2025-01-25T08:40:00}} | ||
<pre><nowiki>{{Time|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}</nowiki></pre> | |||
{{Time|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}} | {{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 (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 |
Latest revision as of 09:00, 25 January 2025
Example:
{{Time|2025-01-25T08:40:00}}
08:40
{{Time|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}
13:10
See also:
Template Data
Shows a 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 |