Aller au contenu

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

64 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
Balise : Révoqué
Ligne 55 : Ligne 55 :
local title = mw.title.new(mw.text.trim(title_text), cfg.title_namespace)
local title = mw.title.new(mw.text.trim(title_text), cfg.title_namespace)
if not title then
 
error(cfg.invalid_title .. title_text)
end
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or ''
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or ''