Jump to content

Template:Zonestamp/doc

From NicheWork
Revision as of 10:53, 16 August 2023 by w>Frietjes
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

<templatedata> { "params": { "1": { "label": "time", "description": "The time, in any format understood by #time.", "example": "2020-08-15 16:00", "type": "date", "required": true }, "2": { "label": "displaytime", "description": "Override how the time is displayed.", "type": "string" } }, "description": "Turns a date/time specifier into a link to the ZoneStamp timezone conversion tool on Toolforge.", "format": "inline" } </templatedata>