Module:dodecaplex/prepocess test

From Wiktionary, the free dictionary
Jump to navigation Jump to search

local export = {}

local m_templateparser = require("Module:template parser")

function export.test(frame)
	local haystack = " {{place|en|capital city|c/Kuwait}}"
	local names = "NAMES: "
	for name, args, text, index in m_templateparser.findTemplates(haystack) do
		names = names .. name .. ' : '
	end
	return names

end

return export