Module:Portal: Difference between revisions

Content deleted Content added
cleanup/fix displayAll and imageDupes to remove stored image args
alphabetize "default image" tracking category
Line 237:
local contents = {}
-- Display the portals specified in the positional arguments.
local defaultUsed = falsenil
for _, portal in ipairs(portals) do
local portalImage = getImageName(portal)
if portalImage == defaultImage then
defaultUsed = trueportal
end
local image = string.format('[[File:%s|32x28px|class=noviewer]]',
Line 250:
end
if defaultUsed and checkTracking() then
root:wikitextlocal cat = string.format('[[Category:Portal templates with default image|%s]]'),
defaultUsed)
root:wikitext(cat)
end
return tostring(fillBox(root, contents))