Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
adj
Syncing temporarily; quickly testing fix to ensure I'm not going to somehow accidentally nuke the wiki with my first template-protected edit
Line 1:
local p = {}
local navbar = require('Module:Navbar')._navbar
local cfg = mw.loadData('Module:Navbox/configuration/sandbox')
local getArgs -- lazily initialized
local args
Line 141:
:tag('div')
-- id for aria-labelledby attribute, if no title
:attr('id', (not args[cfg.arg.title]) and nil or mw.uri.anchorEncode(args[cfg.arg.above]) or nil)
:wikitext(processItem(args[cfg.arg.above], args[cfg.arg.nowrapitems]))
end
Line 294:
end
local hlist_styles = add_list_templatestyles('hlist', 'Hlist/stylescfg.css'hlist_templatestyles)
local plainlist_styles = add_list_templatestyles('plainlist', 'Plainlist/stylescfg.css'plainlist_templatestyles)
-- a second workaround for [[phab:T303378]]
Line 302:
if has_navbar() and hlist_styles == '' then
hlist_styles = frame:extensionTag{
name = 'templatestyles', args = { src = 'Hlist/stylescfg.css'hlist_templatestyles }
}
end
Line 436:
:addClass(cfg.class.navbox_styles)
:wikitext(
add_list_styles() .. -- see [hlist_note] aboveapplied aboutto ordering'before base_templatestyles'
base_templatestyles ..
templatestyles ..