Anonymous user
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
return tostring(root)
end
|