Jump to content

Module:User:diprestonus/sandbox/la-declensionList

From Wiktionary, the free dictionary


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