Changes

Jump to navigation Jump to search

Module:Protection banner

10 bytes added, 07:11, 3 July 2014
use a comment instead of a variable assignment to make it clear that protectionObj is the error message
)
if not protectionObjCreated then
local errorMessage = protectionObj
local errorBlurb = cfg.msg['error-message-blurb'] or 'Error: $1.'
local errorText = mw.message.newRawMessage(errorBlurb) :params(errorMessageprotectionObj)-- protectionObj is the error message :plain()
return string.format(
'<strong class="error">%s</strong>',
Anonymous user

Navigation menu