Changes
add custom error for p.renderPadlock
--
-- @parameters:
-- image - the image wikitext(required) -- right - the "right" css property value, as a string -- -- Both parameters are (optional.)
--]]
local root = mw.html.create('div')
:attr('id', 'protected-icon')
:css{display = 'none', right = right or '55px'}
:wikitext(imageor error('No image parameter specified in p.renderPadlock'))
return tostring(root)
end