Template:TZC event: Difference between revisions
Jump to navigation
Jump to search
Bryandamon (talk | contribs) (Created page with "<noinclude> This template can be used to add date/times that will be translated to local time and format by the some custom javascript developed by [ht...") |
Bryandamon (talk | contribs) (Fixed link.) |
||
Line 13: | Line 13: | ||
This will show the date in the format <code>2020-06-01 15:48</code> for users that do not have TZC enabled and in the proper format of the users local and their timezone if it is enabled. | This will show the date in the format <code>2020-06-01 15:48</code> for users that do not have TZC enabled and in the proper format of the users local and their timezone if it is enabled. | ||
If you want to display it differently use the 'manual' mode as described on [ | If you want to display it differently use the 'manual' mode as described on [https://meta.wikimedia.org/wiki/User:Michael_Sch%C3%B6nitzer_(WMDE)/timezoneconverter the tools documentation]. | ||
</noinclude><includeonly><span class="tzc-event tzc-{{{format|default}}}" data-datetime="{{{year|{{{1}}}}}}-{{{month|{{{2}}}}}}-{{{day|{{{3}}}}}}T{{{hour|{{{4}}}}}}:{{{minute|{{{5}}}}}}:00.000+00:00">{{#ifeq: {{{format|dateonly}}} | dateonly | {{{year|{{{1}}}}}}-{{{month|{{{2}}}}}}-{{{day|{{{3}}}}}} |}}{{#ifeq: {{{format|}}} | daytime | {{{weekday|}}}, |}}{{#ifeq: {{{format|}}} | dtime | {{{weekday|}}}, |}} {{#ifeq: {{{format|timeonly}}} | daytime | {{{hour|{{{4}}}}}}:{{{minute|{{{5}}}}}} |}}{{#ifeq: {{{format|timeonly}}} | timeonly | {{{hour|{{{4}}}}}}:{{{minute|{{{5}}}}}} |}}{{#ifeq: {{{format|timeonly}}} | dtime | {{{hour|{{{4}}}}}}:{{{minute|{{{5}}}}}} |}}</span></includeonly> | </noinclude><includeonly><span class="tzc-event tzc-{{{format|default}}}" data-datetime="{{{year|{{{1}}}}}}-{{{month|{{{2}}}}}}-{{{day|{{{3}}}}}}T{{{hour|{{{4}}}}}}:{{{minute|{{{5}}}}}}:00.000+00:00">{{#ifeq: {{{format|dateonly}}} | dateonly | {{{year|{{{1}}}}}}-{{{month|{{{2}}}}}}-{{{day|{{{3}}}}}} |}}{{#ifeq: {{{format|}}} | daytime | {{{weekday|}}}, |}}{{#ifeq: {{{format|}}} | dtime | {{{weekday|}}}, |}} {{#ifeq: {{{format|timeonly}}} | daytime | {{{hour|{{{4}}}}}}:{{{minute|{{{5}}}}}} |}}{{#ifeq: {{{format|timeonly}}} | timeonly | {{{hour|{{{4}}}}}}:{{{minute|{{{5}}}}}} |}}{{#ifeq: {{{format|timeonly}}} | dtime | {{{hour|{{{4}}}}}}:{{{minute|{{{5}}}}}} |}}</span></includeonly> |
Latest revision as of 12:40, 10 June 2020
This template can be used to add date/times that will be translated to local time and format by the some custom javascript developed by Michael Schönitzer. Use it like this:
{{TZC event|2020|06|01|15|48}}
or
{{TZC event|year=2020|month=06|day=01|hour=15|minute=48}}
This will show the date in the format 2020-06-01 15:48
for users that do not have TZC enabled and in the proper format of the users local and their timezone if it is enabled.
If you want to display it differently use the 'manual' mode as described on the tools documentation.