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