Modul:Protection banner: Unterschied zwischen den Versionen

use a comment instead of a variable assignment to make it clear that protectionObj is the error message
(make the variable names a little more descriptive)
(use a comment instead of a variable assignment to make it clear that protectionObj is the error message)
Zeile 809: Zeile 809:
)
)
if not protectionObjCreated then
if not protectionObjCreated then
local errorMessage = protectionObj
local errorBlurb = cfg.msg['error-message-blurb'] or 'Error: $1.'
local errorBlurb = cfg.msg['error-message-blurb'] or 'Error: $1.'
local errorText = mw.message.newRawMessage(errorBlurb):params(errorMessage):plain()
local errorText = mw.message.newRawMessage(errorBlurb)
:params(protectionObj) -- protectionObj is the error message
:plain()
return string.format(
return string.format(
'<strong class="error">%s</strong>',
'<strong class="error">%s</strong>',
Anonymer Benutzer