Module:Portal bar/sandbox: Difference between revisions

Content deleted Content added
add error here
error -> warning
Line 70:
if not portals[1] then
local nominimum = args.nominimum
local errorwarning = mw.html.create()
if nominimum ~= 'yes' and nominimum ~= 'y' and nominimum ~= 'true' then
errorwarning:tag('strong')
:addClass('error')
:wikitext('No portals specified: please specify at least one portal')
end
if trackingEnabled then
errorwarning:wikitext('[[Category:Portal templates without a parameter]]')
end
return tostring(errorwarning)
end