Widget:Event timer
From Guild Wars 2 Wiki
Jump to navigationJump to search
Description
This widget displays world bosses and map meta events across Tyria.
Subpages
- Widget:Event timer - main widget script
- Widget:Event timer/data.json - json with all of the event data (edit this page to add new events)
- Widget:Event timer/jquery ui sortable.js - full text of the jquery ui module
- Widget:Event timer/jquery ui sortable min.js - minimised text actually used
Features
All of the below features can be undone by pressing the "Reset saved preferences" button, which reverts to the default appearance. Changes are otherwise tracked and remembered between browsing sessions.
- Settings box
- Checkboxes beneath the widget allow the selection of the following (please note these changes are not applied until the apply button is pressed):
- "12 hour AM/PM" - displays times in 12 hour format with the AM/PM suffix.
- "Compact times" - displays the times at the top of the page instead of beside every event. You can still find a specific event start time by hovering over the event.
- "Sticky compact times" - keeps the time in-view when scrolling. No effect unless "Compact times" also selected.
- "Compact headings view" - displays headings to the left instead of above each map meta. (No effect if headings are hidden).
- "Hide categories" - hides the expansion category headings.
- "Hide headings" - hides the map meta headings.
- "Hide chat links" - hides chat links for events.
- "Disable drag and drop reorder" - prevents rearranging of content by dragging and dropping (requires page reload).
- "Start at most recent hour" - if checked, the event timer starts at the most recent hour, otherwise displays a multiple of the event timer length.
- Rearranging content
- Rows can be dragged into a new sequence.
- Rows can be deleted by clicking the [X] to the right of the heading.
- Time shifting
- Clicking on the "Next time window" button will increment the current time by 2 hours, showing you events in the future.
- Clicking on the "Previous time window" button will decrement the current time by 2 hours.
- Moving back to the current time window will resume auto-update. Clicking on the red marker will also resume auto-update
- Mobile device version (using Minerva skin)
- Limits display to a 1 hour period. Starts at nearest 30 minutes. Future 15m is hidden.
- Options to expand view time constrained to 1 hour by default.
- Can switch back to desktop preference to access other options.
Usage
See {{Event timer}}. For the final result, see Event timers.
Parameters
- zone
- Optional. Zone abbreviation. If provided, only the given zone will be displayed (and the compact viewing mode will be used). Refer to Template:Event timer#Parameters for a list of zone abbreviation options.
- Multiple zones can be specified by separating with a comma.
- exclude
- Optional. Used on Template:Event timer to exclude events from the main Event timers page (which would ordinarily display all possible timers). Specified as a comma-specified string of festival meta events. Unset by default.
Notes
- Originally based on code copied from the JSFiddle for http://gw2.ninja/timer by reddit users /u/fffam and /u/rediche.