Module:languages/names/generate: Difference between revisions
< Module:languages | names
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary |
||
Line 5: | Line 5: | ||
local ret = "return {" | local ret = "return {" | ||
for k, v in ipairs(languages) do | for k, v in ipairs(languages) do | ||
ret = ret | ret = ret .. '\n\t["' .. v.name .. '"] = "' .. v.code .. '",' | ||
end | end | ||
ret = ret .. "\n}" | ret = ret .. "\n}" |
Revision as of 07:17, 6 August 2023
Generates up-to-date output that can be used to set the value of Module:languages/names.
Result
<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-0">Lua error at line 6: bad argument #1 to 'ipairs' (table expected, got nil).</span></strong>