Changes
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
local categoryHandler = require('Module:Category handler')._main
		
		
		
		
		
		
		
	
ony load Category handler when needed, requested on talk page
require('Module:No globals')
local getArgs
local yesno = require('Module:Yesno')
	obj.categories = {}
	obj.classes = {}
	-- For lazy loading of [[Module:Category handler]].
	obj.hasCategories = false
	return setmetatable(obj, MessageBox)
		cat = string.format('[[Category:%s]]', cat)
	end
	self.hasCategories = true
	self.categories[ns] = self.categories[ns] or {}
	table.insert(self.categories[ns], cat)
function MessageBox:renderCategories()
	if not self.hasCategories then
		-- No categories added, no need to pass them to Category handler so,
		-- if it was invoked, it would return the empty string.
		-- So we shortcut and return the empty string.
		return ""
	end
	-- Convert category tables to strings and pass them through
	-- [[Module:Category handler]].
	return categoryHandlerrequire('Module:Category handler')._main{
		main = table.concat(self.categories[0] or {}),
		template = table.concat(self.categories[10] or {}),