Module:ChangeLog

--- This module provides functions to generate and link to the change log. -- local links = require("Dev:Links") local list_roblox_versions = require("Module:ListRobloxVersions").list_roblox_versions local utils = require("Module:Utils") local version_helpers = require("Module:VersionHelpers")

local p = {}

function p._change_log(args) return list_roblox_versions(tonumber(args.year), function(minor_version)       local description = args[tostring(minor_version)]        if description then            return description        end    end) end

p.change_log = utils.make_wrapper_function(p._change_log)

--- Link to a version section in the change log. -- @param {string} minor Minor component of the version string. -- @return {string} Link to the version section, or original text if no link can be made. function p.link_minor(minor) if version_helpers.minor_component_exists(minor) then return links.link("Change log#" .. minor, minor, "local") end return minor end

function p._version_link(args) return p.link_minor(args.version) end

p.version_link = utils.make_wrapper_function(p._version_link)

return p