Template:Event countdown

From Guild Wars Wiki
Jump to navigationJump to search

Description[edit]

This template displays an uncached countdown timer for use on event description pages. This template creates the placeholder elements and sets the times. It has to be used with {{Event countdown widget}} (this second template should only be used once, and should be placed after the last timer on the page) to produce a valid result.

Parameters[edit]

unnamed parameter 1
Optional. Displayed text what starts (default: The event)
color
Optional. Background color (default: #F0F0FF)
displayutc
The time (UTC) to start displaying the event timer.
startutc
The event start time (UTC).
endutc
The event end time (UTC).
interval
The number of minutes between repetitions
duration
Optional. The duration of each repetitions in minutes (default: 30 minutes)
rightalign
Optional. The object's px from the right of the page (default: 13px)
margin-top
Optional. The object's div style margin-top parameter (default: -2.8em)
border-bottom
Optional. The object's bottom border (default: none)

Examples[edit]

The following will automate the event timer for the finale of Halloween 2011. The timer will first display on midnight of October 1, 2011 (UTC), counting down to the first event that starts on 07:01. At 07:31 the timer will start the countdown to the second event, which is on 10:01. The timer will continue with the third event, fourth event, etc. until endutc time is reached.

{{Event countdown
| [[#Mad King appearances|Mad King appearance]]
| displayutc = Oct 1 2011 0:00
| startutc = Oct 1 2011 07:01
| endutc = Nov 1 2011 07:01
| interval = 180
| duration = 30
}}
{{Event countdown widget}}

The following template was used for Wintersday 2011 to countdown for Lion's Arch and Kamadan finales

{{Event countdown
| Wintersday finale in Lion's Arch
| displayutc = Dec 31 2011 08:01
| startutc = Jan 1 2012 08:01
| endutc = Jan 2 2012 08:01
| interval = 180
| duration = 15
| margin-top = -3.65em
| border-bottom = 1px solid #AAA
}}
{{Event countdown
| Wintersday finale in Kamadan
| displayutc = Dec 17 2011 08:16
| startutc = Jan 1 2012 08:16
| endutc = Jan 2 2012 08:16
| interval = 180
| duration = 15
| margin-top = -1.95em
| border-bottom = 1px solid #AAA
}}
{{Event countdown widget}}

See also[edit]