Module:Navbar/sandbox: Difference between revisions

Content deleted Content added
Put the override into "list" but call it "links" instead. Name could still be improved I expect.
m Removed protection from "Module:Navbar/sandbox"
 
(10 intermediate revisions by 4 users not shown)
Line 38:
l = {'[', '', ']'}
else
l = {'[[', '|', ']]'}
end
ul:tag('li')
Line 130:
local template = args.template
local displayed_links = choose_links(template, args)
local displayed_links
local displayed_links = choose_links(template, args)
 
local has_brackets = args.brackets
local title_arg = get_title_arg(is_collapsible, template)
Line 141 ⟶ 136:
local links = ''
if args.vte_links_override then
links = args.vte_links_override
div:nodewikitext(links)
else
links = make_list(title_text, has_brackets, displayed_links, is_mini, font_style)
div:node(links)
end
 
div:node(links)
 
if is_collapsible then