Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:LatestVersion

From Stationeers Community Wiki
Revision as of 01:51, 13 March 2026 by RA2lover (talk | contribs) (RA2lover changed the content model of the page Module:LatestVersion from "Scribunto module" to "Scribunto module")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:LatestVersion/doc

local p = {}

function p.getVersion(frame)
    local title = mw.title.new('Updates_Overview')
    if not title or not title.exists then
        return "Error: Updates_Overview not found"
    end
    
    local content = title:getContent()
    
    -- Search for first version in format v0.2.xxxx.xxxxx
    local version = string.match(content, "v%d+%.%d+%.%d+%.%d+")
    
    return version or "Version not found"
end

return p