Module:EcoVersionString

From Eco - English Wiki
Revision as of 11:26, 25 June 2024 by StalEF (talk | contribs)

local p = {}
local VersionData = mw.loadData("Module:EcoVersionData")

function p.main()
	assert(VersionData.eco, "Failed to load data from Module:EcoVersionData!")

	local ecoVersionString = VersionData.eco["eco"]["ecoVersion"]
	
	if ecoVersionString then
		return ecoVersionString
	else
		return "<span style=\"color:red\">ERROR: Failed to load Eco version from data file.</span>"
	end
end

return p