Welcome to Wargaming.net Wiki!
Variants

Template:Event progress

Revision as of 14:00, 12 August 2026 by Jack (talk | contribs) (Create event progress bar template (matches test wiki; static server-side bar, upgraded by Common.js))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Live progress bar for a timed event. The percentage, day counter, remaining time and earnable currency are computed when the page renders, so it stays current without daily edits. When JavaScript runs, MediaWiki:Common.js replaces the static bar with a live version that shows each reader their own local time, adds an EU/NA/ASIA server switcher and refreshes every minute.

Usage — Holiday Convoy

{{Event progress
 |name       = Holiday Convoy
 |earn-days  = 173
 |ref-start  = 2026-08-12T10:00:00Z
 |ref-end    = 2027-02-10T09:00:00Z
 |na-start   = 2026-08-12T10:00:00Z
 |na-end     = 2027-02-10T09:00:00Z
 |asia-start = 2026-08-12T20:00:00Z
 |asia-end   = 2027-02-10T19:00:00Z
 |eu-start   = 2026-08-13T03:00:00Z
 |eu-end     = 2027-02-11T02:00:00Z
 }}

Parameters

  • name — event title shown on the bar.
  • ref-start / ref-end — the window the static bar is measured against, UTC ISO 8601 with a trailing Z. Defaults to the NA pair. This is the outer window, i.e. the last moment currency can be spent.
  • earn-days — days currency can be earned, counted from the start. The remainder of the window is drawn as a grey spend-only tail after a marker. Omit for one continuous window.
  • na-* / asia-* / eu-* — per-server windows. Shown in the UTC footnote line, and used by the JavaScript switcher.
  • token-low / token-high / token-cap — currency per day at a low and a high play rate, and the published total. Defaults 300 / 1200 / 207600.

Notes

  • The static fallback shows UTC because it is rendered server-side; the JavaScript version converts to the reader's local timezone.
  • Clamping uses #ifexpr rather than min/max, which are not available in every ParserFunctions build.
  • Styles live in MediaWiki:Common.css under "Event progress bar".