« Module:Navbar » : différence entre les versions

66 octets enlevés ,  23 mars 2023
aucun résumé des modifications
(Page créée avec « local p = {} local cfg = mw.loadData('Module:Navbar/configuration') local function get_title_arg(is_collapsible, template) local title_arg = 1 if is_collapsible then title_arg = 2 end if template then title_arg = 'template' end return title_arg end local function choose_links(template, args) -- The show table indicates the default displayed items. -- view, talk, edit, hist, move, watch -- TODO: Move to configuration. local show = {true, true, true, fals... »)
 
Aucun résumé des modifications
 
(8 versions intermédiaires par le même utilisateur non affichées)
Ligne 133 : Ligne 133 :
local has_brackets = args.brackets
local has_brackets = args.brackets
local title_arg = get_title_arg(is_collapsible, template)
local title_arg = get_title_arg(is_collapsible, template)
local title_text = args[title_arg] or (':' .. mw.getCurrentFrame():getParent():getTitle())
local title_text = 'aaa'
local list = make_list(title_text, has_brackets, displayed_links, is_mini, font_style)
local list = make_list(title_text, has_brackets, displayed_links, is_mini, font_style)
div:node(list)
div:node(list)