Module:User:diprestonus/sandbox/la-declensionList
Appearance
- This module sandbox lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox of
local export = {}
function export.show(frame)
local out = {}
for i, function_name in ipairs(frame.args) do
local func = export[function_name] or error("No exported function " .. function_name)
-- xpcall(function()
-- if function_name == "number_of_scripts" then
-- out[i] = func(frame, 3)
-- else
out[i] = function_name
--func(frame)
err('test')
mw.log('test')
-- end
-- end, function (err)
-- mw.addWarning("Error running export." .. function_name .. ":\n" .. tostring(err) .. "\n" .. debug.traceback())
-- end)
end
return table.concat(out, "\n")
end
return export