Module:Patch

From Wavu Wiki, the 🌊 wavy Tekken wiki

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

local p = {}

-- Only including recent versions until the notes are tidied up, still big WIP
local versions = {
	{ "4.20", "27 May 2021" },
	{ "4.10", "22 Mar 2021" },
	{ "4.01", "26 Nov 2020" },
	{ "4.00", "10 Nov 2020" },
	{ "3.33", "19 Aug 2020" },
	{ "3.32", "17 Jun 2020" },
	{ "3.31", "21 Apr 2020" },
	{ "3.30", "20 Mar 2020" },
	{ "3.21", "12 Feb 2020" },
	{ "3.20", "28 Jan 2020" },
	{ "3.10", "10 Dec 2019" },
	{ "3.03", "12 Nov 2019" },
	{ "3.01", "03 Oct 2019" },
}

p.versions = versions

p.date = function(frame)
	local v = frame.args[1]
	return p._date(v)
end

p._date = function(v)
	for _, version in ipairs(versions) do
		if version[1] == v then
			return version[2]
		end
	end
	return ""
end

return p