Module:GameVersion
From Vanguard Galaxy Wiki
More actions
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/unknownfor 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