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