o tawa ijo lipu

Module:pakala

tan lipu lipu Wikipesija
local p = {}

function p._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')
        :cssText(args.style)
        :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
        args = frame.args
    else
        args = frame
    end
    if args.message == "" then
        args.message = nil
    end
    return p._error(args)
end

return present