Module:ListRobloxVersions

local studio_builds = require("Module:StudioVersions") local version_helpers = require("Module:VersionHelpers")

local language = mw.language.getContentLanguage

local p = {}

function p.list_roblox_versions local builds_by_minor_version = {} for _, build in ipairs(studio_builds) do       local _, minor = version_helpers.parse_version_string(build.version) minor = tonumber(minor) if not builds_by_minor_version[minor] then builds_by_minor_version[minor] = {} end table.insert(builds_by_minor_version[minor], build) end local minor_versions = {} for minor_version in pairs(builds_by_minor_version) do       table.insert(minor_versions, minor_version) end table.sort(minor_versions) local output = "" for _, minor_version in ipairs(minor_versions) do       local builds = builds_by_minor_version[minor_version] local date_of_first_build = builds[1].date local formatted_date = language:formatDate("F j, Y", date_of_first_build) output = output .. "* " .. minor_version .. " – " .. formatted_date .. "\n" end return output end

return p