View source for Module:Version
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- Current stable version. Increment this when a new version is released.
local STABLE = 32
local RECENT = 31
local p = {}
-- Tries to parse a version number
-- returns either a version number, "trunk", or nil (meaning unknown)
local function parse_version(version)
if type(version) == "number" or version == "trunk" then
return version
end
local num = tonumber(version)
if num then
-- convert 0.17 to 17
if num < 1 then
num = 100*num
end
if num > STABLE then
return "trunk"
000
1:0
Template used on this page:
Return to Module:Version.