5,078
edits
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
-- Collect necessary information to display error | -- Collect necessary information to display error | ||
local args = select( 1, ... )[ 'args' ] | local args = select( 1, ... )[ 'args' ] | ||
local message = defaultIfEmpty( args[1], 'There was an error with a template. Are the parameters all correct?' ) | local message = utils.defaultIfEmpty( args[1], 'There was an error with a template. Are the parameters all correct?' ) | ||
local etype = defaultIfEmpty( args[2], 'Template' ) | local etype = utils.defaultIfEmpty( args[2], 'Template' ) | ||
local category = defaultIfEmpty( args[3], 'Pages containing template errors' ) | local category = utils.defaultIfEmpty( args[3], 'Pages containing template errors' ) | ||
local template = defaultIfEmpty( args[4], nil ) | local template = utils.defaultIfEmpty( args[4], nil ) | ||
-- Style data | -- Style data |