Jump to content

Module:Protection banner: Difference between revisions

try doing the error check earlier
Enwikipedia>Mr. Stradivarius
(add custom error for p.renderPadlock)
Enwikipedia>Mr. Stradivarius
(try doing the error check earlier)
Line 313:
-- right - the "right" css property value, as a string (optional)
--]]
image = image or error('No image parameter specified in p.renderPadlock')
local root = mw.html.create('div')
root
Line 318 ⟶ 319:
:attr('id', 'protected-icon')
:css{display = 'none', right = right or '55px'}
:wikitext(image or error('No image parameter specified in p.renderPadlock'))
return tostring(root)
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.