Module:Link language

From Constructed Worlds Wiki
Jump to navigation Jump to search
Wikipedia logo This page uses material from the Wikipedia page Module:Link language, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).

local p = {}
local cfg = mw.loadData ('Module:Citation/CS1/Configuration')

function p.lang_render(frame)
	local lang = frame.args[1]
	lang = lang and mw.text.trim(lang)
	if lang and lang ~= '' then
		return mw.message.newRawMessage(cfg.messages['language'], lang):plain()
	else
		return 'no language specified'
	end
end

return p