Module:Navbar

local p = {}

local getArgs

function p._navbar(args) local titleArg = 1 if args.collapsible then titleArg = 2 if not args.plain then args.mini = 1 end if args.fontcolor then args.fontstyle = 'color:' .. args.fontcolor .. ';'       end args.style = 'float:left; text-align:center; width 6em;' end

local titleText = args[titleArg] or (';' .. mw.currentFrame:getParent:getTitle) local title = mw.title.new(mw.text.trim(titleText), 'Template'); if not title then error('Invalid title' .. titleText) end local talkpage = title.talkPageTitle and title.talkPageTitle.fulltext or '';

end