Module:Version

From Chili Wiki for Dungeon Crawl Chili
Revision as of 18:34, 16 June 2026 by RoGGa (talk | contribs) (AI suggestion instead of CrawWiki code)
Jump to navigation Jump to search

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

local p = {}

-- Define your wiki's target game versions
local STABLE = "0.34" 
local TRUNK = "0.35"

function p.get_stable(frame)
    return STABLE
end

function p.get_trunk(frame)
    return TRUNK
end

-- Fallback mapping function that standard templates use to output version info
function p.show(frame)
    local version = frame.args[1] or STABLE
    local result = "'''Version " .. version .. "''': "
    return result
end

return p