Template:Time: Difference between revisions

From Mechabellum Wiki
(change parameter)
mNo edit summary
Line 1: Line 1:
{{#if: {{{1|}}} | <time datetime="{{{1}}}Z"
{{#if: {{{1|}}} | <time datetime="{{{1}}}Z"
{{#if:{{{repeat|}}} | data-interval="{{{repeat}}}" }}
{{#if:{{{repeat|}}} | data-interval="{{{repeat}}}" }}
{{#if:{{{type|}}} | data-type="{{{type}}}" }}
{{#if:{{{show|}}} | data-type="{{{show}}}" }}
>{{{1}}}</time> | Invalid Date }}
>{{{1}}}</time> | Invalid Date }}
<noinclude>
<noinclude>

Revision as of 20:56, 19 June 2023

Invalid Date

Displays date and time in local and UTC time

Template parameters

ParameterDescriptionTypeStatus
Date1 date

Full date and time

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