Module:Edition

From Omega Wiki
Revision as of 02:59, 24 July 2026 by OmegaWiki seed importer (talk | contribs) (Import OmegaWiki seed content)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

local p = {}
local ns = mw.title.getCurrentTitle().namespace
local isClassic = ns == 3002
local metadata = { remake = { version = '0.80.2', commit = 'unknown', updated = '2026-07-23' }, classic = { version = '0.80.1', commit = 'unknown', updated = '2026-07-23' } }

function p.name(frame)
    return isClassic and 'classic' or 'remake'
end

function p.other(frame)
    return isClassic and '' or 'Classic:'
end

function p.version(frame)
    local edition = isClassic and 'classic' or 'remake'
    return metadata[edition].version
end

function p.commit(frame)
    return metadata[isClassic and 'classic' or 'remake'].commit
end

function p.updated(frame)
    return metadata[isClassic and 'classic' or 'remake'].updated
end

return p