Module:Navbar/sandbox: Difference between revisions

Content deleted Content added
don't declare variables twice
m Removed protection from "Module:Navbar/sandbox"
 
(6 intermediate revisions by 3 users not shown)
Line 1:
local p = {}
local cfg = mw.loadData('Module:Navbar/configuration/sandbox')
 
local function get_title_arg(is_collapsible, template)
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 = choose_links(template, args)
 
local has_brackets = args.brackets
local title_arg = get_title_arg(is_collapsible, template)
Line 139 ⟶ 137:
if args.vte_links_override then
links = args.vte_links_override
div.:wikitext(links)
else
links = make_list(title_text, has_brackets, displayed_links, is_mini, font_style)