Zum Inhalt springen

Modul:Protection banner: Unterschied zwischen den Versionen

try doing the error check earlier
(add custom error for p.renderPadlock)
(try doing the error check earlier)
Zeile 313: Zeile 313:
-- right - the "right" css property value, as a string (optional)
-- 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')
local root = mw.html.create('div')
root
root
Zeile 318: Zeile 319:
:attr('id', 'protected-icon')
:attr('id', 'protected-icon')
:css{display = 'none', right = right or '55px'}
:css{display = 'none', right = right or '55px'}
:wikitext(image or error('No image parameter specified in p.renderPadlock'))
:wikitext(image)
return tostring(root)
return tostring(root)
end
end
Anonymer Benutzer