Module:User:Wyang/der

Hello, you have come here looking for the meaning of the word Module:User:Wyang/der. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Wyang/der, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Wyang/der in singular and plural. Everything you need to know about the word Module:User:Wyang/der you have here. The definition of the word Module:User:Wyang/der will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Wyang/der, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local export = {}

function export.make(frame)
	local args = frame:getParent().args
	text = args
	text = mw.ustring.gsub(text, "ス", "{")
	text = mw.ustring.gsub(text, "ぞ", "|")
	text = mw.ustring.gsub(text, "ど", "}")
	text = mw.ustring.gsub(text, "も", "\n")
	text = mw.ustring.gsub(text, "さ", "=")
	if mw.ustring.match(text, "%{%{zh%-l|+%{") then
		return text
	end
	text = mw.ustring.gsub(text, "|tr=", "|")
	text = mw.ustring.gsub(text, "|gloss=", "|")
	
	for line in mw.text.gsplit(text, "\n") do
		if not mw.ustring.match(line, "^%* ?%{%{zh%-l.+%}%}$") then
			return text
		end
	end
	
	local result = {}
	for line in mw.text.gsplit(text, "\n") do
		table.insert(result, (mw.ustring.gsub(mw.ustring.gsub(mw.ustring.gsub(line, "%}%}", ""), "^%* ?%{%{zh%-l%|", ""), "|", ":")))
	end
	
	return "{{zh-der|" .. table.concat(result, "|") .. "}}"
end

return export