Content deleted Content added
add Book talk to list of banned namespaces |
per tper |
||
Line 43:
local trackingEnabled = true
local templatestyles = 'Module:Portal/styles.css'
-- Check whether to do tracking in this namespace
Line 132 ⟶ 134:
:addClass('noprint portal plainlist')
:addClass(args.left and 'tleft' or 'tright')
:css('margin', args.margin or
:newline()
Line 199 ⟶ 200:
-- Start the list. This corresponds to the start of the wikitext table in the old [[Template:Portal]].
local listroot = root:tag('ul')
:css('width', type(args.boxsize) == 'string' and (args.boxsize .. 'px') or nil)
-- Display the portals specified in the positional arguments.
Line 218 ⟶ 210:
:newline()
:tag('li')
:tag('span')
:wikitext(string.format('[[File:%s|32x28px|class=noviewer]]', image))
:done()
:tag('span')
:wikitext(string.format('[[Portal:%s|%s%sportal]]', portal, portal, args['break'] and '<br />' or ' '))
end
Line 335 ⟶ 319:
end
end
return p[funcName](processPortalArgs(args)) -- passes two tables to func: an array of portal names, and a table of named arguments.▼
local results = ''
if funcName == '_portal' or funcName == '_displayAll' then
results = frame:extensionTag{ name = 'templatestyles', args = { src = templatestyles} }
end
▲ return results .. p[funcName](processPortalArgs(args)) -- passes two tables to func: an array of portal names, and a table of named arguments.
end
end
|