Module:FrameUtil

From Call of Duty Esports Wiki
Jump to: navigation, search

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

local p = {}

function p.navbox(tl, args)
	return mw.getCurrentFrame():expandTemplate{
		title = tl .. ' Navbox',
		args = args or { '' }
	}
end

function p.error(text)
	return mw.getCurrentFrame():expandTemplate{ title = "Important", args = { text } }
end

return p