local p = {}
local function _error(args)
local tag = mw.ustring.lower(tostring(args.tag))
if not (tag == 'p' or tag == 'span' or tag == 'div') then
tag = 'strong'
end
return tostring(mw.html.create(tag)
:addClass('error')
:wikitext(tostring(args.message or args[1] or error('no message specified', 2)))
)
end
function p.error(frame)
local args
if type(frame.args) == 'table' then