Module:Protection banner: Difference between revisions

Content added Content deleted
Enwikipedia>Mr. Stradivarius
(allow default args to work in sandbox pages)
Enwikipedia>Mr. Stradivarius
(output an error category if the protection object is not created properly)
Line 798: Line 798:
:plain()
:plain()
return string.format(
return string.format(
'<strong class="error">%s</strong>',
'<strong class="error">%s</strong>%s',
errorText
errorText,
makeCategoryLink(cfg.msg['tracking-category-incorrect'])
)
)
end
end