Template:Zonestamp

From Wikidata
Jump to navigation Jump to search
Documentation icon Template documentation[view · edit · history · purge ]

Usage

[edit]

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}}

Provides a link to the Zonestamp time zone conversion tool on Toolforge

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
timestamp1

UTC timestamp in any format supported by the time parser function

Example
2021-05-21T18:00:00
Daterequired
display text2

Overrides the default RFC 5322 datetime display

Example
6:00 PM, May 21, 2021
Lineoptional
format stringf

Datetime format string for display, see https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time

Default
r
Lineoptional