Difference between revisions of "Template:Datetime"
Jump to navigation
Jump to search
FireonLive (talk | contribs) (a quick stab at making the datetime template as discussed in -bs, someone can spruce it up/fix it before we start using it) |
FireonLive (talk | contribs) (add timezone, help text) |
||
Line 1: | Line 1: | ||
{{#formatdate:{{{1}}}}} {{{2}}} (UTC{{{ | {{#formatdate:{{{1}}}}} {{{2}}} {{{3}}} (UTC{{{4}}})<noinclude> | ||
== Help == | |||
Takes a date and time and formats it consistently across the wiki. | |||
Usage: <code><nowiki>{{datetime|ISO 8601 date|24h time|timezone|+/- from UTC}}</nowiki></code> | |||
Example: <code><nowiki>{{datetime|2023-08-28|22:00|CEST|+2}}</nowiki></code> turns in to <code>{{datetime|2023-08-28|22:00|CEST|+2}}</code>. | |||
[[Category:Templates]] | |||
</noinclude> |
Revision as of 21:35, 1 September 2023
{{{1}}} {{{2}}} {{{3}}} (UTC{{{4}}})
Help
Takes a date and time and formats it consistently across the wiki.
Usage: {{datetime|ISO 8601 date|24h time|timezone|+/- from UTC}}
Example: {{datetime|2023-08-28|22:00|CEST|+2}}
turns in to 2023-08-28 22:00 CEST (UTC+2)
.