Module:User:Oyunqi/test-lua

local export = {}

function export.test(frame) local params = { [1] = {list = true, allow_holes = true}, ["word"] = {list = true, allow_holes = true}, }	local args = require("Module:parameters").process(frame:getParent.args, params) local max1 = args[1].maxindex local maxWord = args["word"].maxindex local str = "count 1 = " .. max1 .. ", count word = " .. maxWord .. " "	for i = 1, max1 do str = str .. i .. "=>" .. args[1][i] .. " "	end str = str .. "============================= "	for i = 1, maxWord do str = str .. i .. "=>" .. args["word"][i] .. " "	end return str end

return export