Template:Zonestamp

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Zonestamp/doc.

No description yet available.

Usage

{{Zonestamp |timestamp= |display text= |format string= |end time= |hours= |minutes= }}

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}}
{{zonestamp|2020-08-15 16:00|f=H:i}}
{{zonestamp|2020-08-15 16:00|end=2020-08-15 17:30|f=H:i}}
{{zonestamp|2020-08-15 16:00|minutes=90|f=H:i}}
{{zonestamp|2020-08-15 16:00|hours=2|minutes=15|f=H:i}}

Template parameters

ParameterDescriptionDefaultStatus
timestamp1UTC timestamp in any format supported by the time parser functionemptyrequired
display text2Overrides the default RFC 5322 datetime displayemptyoptional
format stringfDatetime format string for display, see https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##timeroptional
end timeendEnd of the event, in UTC, in any format.emptyoptional
hourshoursDuration in hours. Alternative to 'end'. When used with 'minutes', the two are added together.emptyoptional
minutesminutesDuration in minutes. Alternative to 'end'. When used with 'hours', the two are added together.emptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified