Jump to content

Module:translations/multi-nowiki

From Wiktionary, the free dictionary

  • Nested templates: 大老二 (dà lǎo èr)
  • Piped link: [] から ( [] kara mita, literally seen from [] )
  • Substed module invocation:
    • {{subst:#invoke:languages/templates|getByCode|csb|getCanonicalName}}: czerwiony

local export = {}

function export.expand(frame)
	local args
	if mw.title.getCurrentTitle().nsText == "Module" then
		args = frame.args
	else
		args = frame:getParent().args
	end
	return require("Module:translations/multi").show(frame:newChild{args = {data = mw.text.trim(mw.text.unstripNoWiki(args[1]))}}:newChild{})
end

return export