Template:Zonestamp

From Bonkipedia
Revision as of 17:48, 20 May 2022 by [[mw:]]>Krinkle (specify that it's UTC, this way we can remove "UTC" from the table header (since the zonestamp JS is enabled by default on some pages now), and the no-js rendering will still say that it is UTC)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation

Usage

Turns a date/time specifier into a link to the ZoneStamp timezone conversion tool. ZoneStamp displays the unix timestamp provided in the URL in the browser's local timezone using JavaScript. The output is also wrapped in a <time datetime="...">...</time> HTML tag containing a machine readable ISO 8601 timestamp representing the date + time.

First parameter is the time, in any format understood by #time. The second, optional parameter is how the link text. Link text defaults to the date/time specifier value.

{{zonestamp|2020-08-15 16:00}}
{{zonestamp|2020-08-15 16:00|16:00}}

Turns a date/time specifier into a link to the ZoneStamp timezone conversion tool on Toolforge.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
time1

The time, in any format understood by [[mw:Help:Extension:ParserFunctions##time|#time]].

Example
2020-08-15 16:00
Daterequired
displaytime2

Override how the time is displayed.

Stringoptional

Display in local timezone

The m:User:BDavis (WMF)/Scripts/zonestamp user script can be used to render zonestamp template dates in your browser's time zone.