Dokumentaci tohoto modulu lze vytvořit na stránce Nápověda:Modul:MediaWiki

-- @brief
--  MediaWiki message
-- 
-- @details
--  Backend for complex custom MediaWiki messages.
--  Each submodule has the name corresponding to the message name which calls it.
-- 
-- @author
--  [[meta:User:Danny B.]]
local _module = {}
----------------------------------------


function _module.print( frame )
	
	local output = ""
	
	local message = frame.args[1] or ""
	
	local messageExists, messageModule = pcall( require, frame:getTitle() .. "/" .. message )
	
	if messageExists then
		
		output = messageModule.getMessage()
		
		output = frame:preprocess( output )
		
		return output
		
	else
		
		error( "Missing \"" .. frame:getTitle() .. "/" .. message .. "\" module." )
		
	end
	
end


----------------------------------------
return _module