Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 17:39, 2 June 2026 by Fank (talk | contribs) (Create version single-source-of-truth module)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation subpage Single source of truth for the current Vanguard Galaxy version state.

Configuration

Edit two values at the top of Module:GameVersion once per release:

STABLE
The latest stable public release. Content stamped at this version reads as current.
BETA
The current beta / preview line (or "" if none). Content newer than STABLE reads as beta.

Promote a beta by setting STABLE to the old BETA value — every Template:Tl stamp for that version turns green automatically.

Entry points

Script error: The function "stable" does not exist. / |beta
Return the configured version strings.
Script error: The function "status" does not exist.
Returns current / beta / outdated / unknown for version v. Used by Template:Tl.
require('Module:GameVersion')
Exposes stableVersion, betaVersion, and _cmp(a,b) for other modules.

See also

  • Template:Tl — the per-content version stamp that consumes this module.

-- Single source of truth for the current Vanguard Galaxy game version.
-- Bump CURRENT here on each game release; every {{Ver}} stamp re-evaluates
-- automatically and stale pages repopulate Category:Content outdated as of <ver>.
local p = {}

local CURRENT = "0.8.1"

-- Callable as {{#invoke:GameVersion|current}}
function p.current()
	return CURRENT
end

-- Plain-Lua accessor for other modules: require('Module:GameVersion').currentVersion
p.currentVersion = CURRENT

return p