Module:Portal bar/sandbox: Difference between revisions

Content deleted Content added
factor more code into Module:Portal
declare local variable
Line 37:
args.tracking = args.tracking and checkTracking()
args.nominimum = true
local trackingCat = ''
portals, trackingCatstrackingCat = checkExists(portals, args)
nav:wikitext(trackingCat)
if #portals == 0 then
return trackingCatstrackingCat
end
 
Line 71 ⟶ 73:
return mw.getCurrentFrame():extensionTag{
name = 'templatestyles', args = { src = styleFile }
} .. tostring( nav ) .. trackingCats
end