Module:Acrostic

local p = {} local getArgs = require("Module:Arguments").getArgs

function p._main(arg) s = arg[1] s = mw.text.split(s, "\n", true) i = 0 for k, v in pairs(s) do		if #v > 1 then if arg[2] then if i % tonumber(arg[2]) == 0 then s[k] = "'''" .. mw.ustring.sub(v, 1, 1) .. "'''" .. mw.ustring.sub(v, 2) end end i = i + 1 end end return table.concat(s, "\n") end

function p.main(frame) local args = getArgs(frame) return p._main(args) end

return p