Content deleted Content added
use main Module:Portal |
factor more code into Module:Portal |
||
Line 3:
require('Module:No globals')
local portalModule = require('Module:Portal/sandbox')
local getImageName = portalModule.image
local checkTracking = portalModule._checkTracking
local checkExists = portalModule._checkExists
local processPortalArgs = portalModule._processPortalArgs
local yesno = require( 'Module:Yesno' )
Line 17 ⟶ 18:
-- Builds the portal bar used by {{portal bar}}.
function p._main( portals, args )
-- check for sensible args
Line 37 ⟶ 35:
:addClass(sandbox(args,args.border and 'portal-bar-bordered' or 'portal-bar-unbordered'))
args.nominimum = true
portals, trackingCats = checkExists(portals, args)
end▼
▲ local trackingCats = ''
▲ if #portals == 0 then
▲ end
local header = nav:tag('span')
header:addClass(sandbox(args,'portal-bar-header'))
|