Module:Link language

From the Science Archives, the open-project database of science information
Jump to navigation Jump to search

Documentation for this module may be created at Module:Link language/doc

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