Module:Portal: Difference between revisions

Content deleted Content added
add tracking category for default image
rm temporary tracking category --- it has done its job, and adds unwanted alt to images
Line 288:
-- parse name, looking for category arguments
for i = 2,#args do
local m = mw.ustring.match(args[i], "^%s*category%s*=%s*(.+)")
if keepargs or m then
category = category .. m
elseif keepargs then
table.insert(result, args[i])
end
end
-- Temporary tracking category to clear out deleted portals
local portalTitle = mw.title.new(portal,"Portal")
if portalTitle and not portalTitle.exists then
category = category .. "[[Category:Usage of portal image for non-existent portal]]"
end
-- reassemble arguments
result =return table.concat(result,"|")
-- reappend categories
if #category > 0 then
result = result .. "|category=" .. category
end
return result
end