Widget:Event countdown

From Guild Wars Wiki 中文站
Revision as of 22:19, 11 September 2026 by gww>Chieftain Alex
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

This widget displays the remaining for the current event, or time until the next event. This widget should be used via the wrapper template {{Event countdown widget}} to track usage.

The widget/wrapper template can however only be used in combination with {{Event countdown}}, as the widget itself does not produce an output, it only modifies the output of the other template.

Usage

Parameters

This widget has no parameters.

Data attributes used

data-name
Optional. Displayed text for what starts (default: The event)
data-displayutc
The time (UTC) to begin displaying the event timer.
data-startutc
The event start time (UTC).
data-endutc
The event end time (UTC).
data-interval
The number of minutes between the beginning of each event (default: 180)
data-duration
Optional. The duration of each repetitions in minutes (default: 30)

Example wikicode

{{Event countdown
| [[#Schedule|Wintersday finale]] in Lion's Arch
| displayutc = Jul 1 {{CURRENTYEAR}} 00:00
| startutc = Jul 1 {{CURRENTYEAR}} 08:01
| endutc = Jul 2 {{CURRENTYEAR}} 08:01
| interval = 180
| duration = 15
| margin-top = -3.65em
| border-bottom = 1px solid #AAA
}}
{{Event countdown
| Wintersday finale in Kamadan
| displayutc = Jul 1 {{CURRENTYEAR}} 00:00
| startutc = Jul 1 {{CURRENTYEAR}} 08:16
| endutc = Jul 2 {{CURRENTYEAR}} 08:16
| interval = 180
| duration = 15
| margin-top = -1.95em
| border-bottom = 1px solid #AAA
}}
{{Event countdown widget}}