Editing Module:EcoVersionString
From Eco - English Wiki
Your changes will be displayed to readers once an authorized user accepts them. (help)
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local VersionData = mw.loadData("Module:EcoVersion") | |||
function p.main() | function p.main() | ||
assert(VersionData.eco, "Failed to load data from Module:EcoVersion!") | |||
assert(VersionData.eco, "Failed to load | |||
local | local ecoVersionString = VersionData.eco["eco"]["ecoVersion"] | ||
if | if ecoVersionString then | ||
return | return ecoVersionString | ||
else | else | ||
return "<span style=\"color:red\">ERROR: Failed to load Eco version from | return "<span style=\"color:red\">ERROR: Failed to load Eco version from data file.</span>" | ||
end | end | ||
end | end | ||
return p | return p |