Module:linkeach

Revision as of 15:16, 12 February 2021 by Sware (talk | contribs)


local export = {}

function export.link(frame)
	
	local args = frame.args
	local str = args[1]; local words = {}
	
	for word in mw.ustring.gmatch(str, "(%S+)") do
		word = "[[Contionary:" .. word .. "|" .. word .. "]]"
		table.insert(words, word)
	end
	
	return table.concat(words, " ")
end
return export