Template:Time: Difference between revisions

From Mechabellum Wiki
mNo edit summary
mNo edit summary
 
Line 2: Line 2:
{{#if:{{{repeat|}}} | data-interval="{{{repeat}}}" }}
{{#if:{{{repeat|}}} | data-interval="{{{repeat}}}" }}
{{#if:{{{show|}}} | data-type="{{{show}}}" }}
{{#if:{{{show|}}} | data-type="{{{show}}}" }}
>{{{1}}}</time> | Invalid Date }}
>{{{1}}} UTC</time> | Invalid Date }}
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 12: Line 12:
],
],
"label": "Date",
"label": "Date",
"description": "Full date and time",
"description": "Full date and time in UTC",
"example": "2023-12-31 23:59",
"example": "2023-12-31 23:59",
"type": "line",
"type": "line",

Latest revision as of 21:01, 19 June 2023

Invalid Date

Displays date and time in local and UTC time

Template parameters

ParameterDescriptionTypeStatus
Date1 date

Full date and time in UTC

Example
2023-12-31 23:59
Linerequired
Intervalrepeat

Repeat every x days

Unknownoptional
Showshow

Set display type. "full" and "short" show date and time, "time" shows only time, "weekday" shows time with weekday. If empty defaults to short.

Suggested values
full short time weekday
Default
short
Unknownoptional