Template:Time: Difference between revisions
From Mechabellum Wiki
(Created page with "{{#if: {{{1|}}} | <time datetime="{{{1}}}Z" {{#if:{{{repeat|}}} | data-interval="{{{repeat}}}" }} {{#if:{{{type|}}} | data-type="{{{type}}}" }} >{{{1}}}</time> | Invalid Date }} <noinclude> <templatedata> { "params": { "1": { "aliases": [ "date" ], "label": "Date", "description": "Full date and time", "example": "2023-12-31 23:59", "type": "line", "required": true }, "repeat": { "label": "Interval", "description": "Repeat every x day...") |
(change parameter) |
||
Line 21: | Line 21: | ||
"description": "Repeat every x days" | "description": "Repeat every x days" | ||
}, | }, | ||
" | "show": { | ||
"label": " | "label": "Show", | ||
"description": "Set display type. \"full\" and \"short\" show date and time, \"time\" shows only time, \"weekday\" shows time with weekday. If empty defaults to short.", | "description": "Set display type. \"full\" and \"short\" show date and time, \"time\" shows only time, \"weekday\" shows time with weekday. If empty defaults to short.", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
Line 33: | Line 33: | ||
} | } | ||
}, | }, | ||
"description": "Displays date and time in local and UTC time" | "description": "Displays date and time in local and UTC time", | ||
"paramOrder": [ | |||
"1", | |||
"repeat", | |||
"show" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 20:50, 19 June 2023
Invalid Date
Displays date and time in local and UTC time
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date | 1 date | Full date and time
| Line | required |
Interval | repeat | Repeat every x days | Unknown | optional |
Show | show | Set display type. "full" and "short" show date and time, "time" shows only time, "weekday" shows time with weekday. If empty defaults to short.
| Unknown | optional |