Content deleted Content added
extend image function to take border argument |
reduce surface of plainlist to support templatestyles by using Module:List, remove support for barely-used width parameter (which is bad for mobile) |
||
Line 185:
:attr('role', 'navigation')
:attr('aria-label', 'Portals')
:addClass('noprint
:addClass(sandboxVersion('portalbox'))
:addClass(args.border and sandboxVersion('portalborder') or '')
Line 213:
end
local formatted_list = {}
-- Display the portals specified in the positional arguments.
for _, portal in ipairs(portals) do
table.insert(formatted_list, string.format(
local image = getImageName(portal)▼
'<span>[[File:%s|32x28px|class=noviewer]]</span><span>[[Portal:%s|%s%sportal]]</span>',
portal,
portal,
args.addBreak and '<br />' or ' '
))
end▼
local list = require('Module:List').unbulleted(formatted_list)
return tostring(root:wikitext(list))▼
▲ end
▲ return tostring(root)
end
|