Модуль:User error
return function (message, ...) local element = mw.html.create('strong') :addClass('error') :wikitext('Error: ' .. message .. '.') for i = 1, select('#', ...) do local category = select(i, ...) if category ~= '' then element:wikitext('[[Category:' .. category .. ']]') end end return tostring(element) end