Jump to content

Module:Sandbox/sandbox

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

function p.main(frame)
	args = getArgs(frame)
	s = args[1]
	prefix = args[2]
	s = mw.text.split(s, ";", true)
	res = "|"
	for k, v in pairs(s) do
		res = res .. mw.title.new(prefix .. v):getContent() .. "|"
	end
	return res
end

return p