Module:User error

--

-- A less intimidating version of the built-in "error" function, to help -- editors fix their mistakes when transcluding a template. -- -- @param {string} message -- @param {table} categories

return function ( message, categories ) local element = mw.html.create( 'strong' ) :addClass( 'error' ) :wikitext( 'Error: ' .. message .. '.' )

for category in ipairs( categories ) do       element:wikitext( '' ) end

return tostring( element ) end

-- --