Module:Portal: Difference between revisions

Content deleted Content added
fix mobile layout: make small-screen adaptive
change HTML to use <ul> and <li> to show semantics of portal list
Line 171:
 
local function portalBox(args)
return mw.html.create('divul')
:attr('role', 'navigation')
:attr('aria-label', 'Portals')
Line 184:
local function fillBox(root, contents)
for _, item in ipairs(contents) do
local entry = root:tag('divli')
entry:addClass(sandboxVersion('portalbox-entry'))
local image = entry:tag('span')