This template is used on 13600000 pages, and changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them.
This module is subject to page protection. It is a highly visible module in use by a very large number of articles, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is is protected from editing.
localp={}localgetArgsfunctionp._navbar(args)localtitleArg=1ifargs.collapsiblethentitleArg=2ifnotargs.plainthenargs.mini=1endifargs.fontcolorthenargs.fontstyle='color:'..args.fontcolor..';'endargs.style='float:left; text-align:left'endlocaltitleText=args[titleArg]or(':'..mw.getCurrentFrame():getParent():getTitle())localtitle=mw.title.new(mw.text.trim(titleText),'Template');ifnottitlethenerror('Invalid title '..titleText)endlocaltalkpage=title.talkPageTitleandtitle.talkPageTitle.fullTextor'';localdiv=mw.html.create():tag('div')div:addClass('plainlinks'):addClass('hlist'):addClass('navbar'):cssText(args.style)ifargs.minithendiv:addClass('mini')endifnot(args.miniorargs.plain)thendiv:tag('span'):css('word-spacing',0):cssText(args.fontstyle):wikitext(args.textor'This box:'):wikitext(' ')endifargs.bracketsthendiv:tag('span'):css('margin-right','-0.125em'):cssText(args.fontstyle):wikitext('[ ')endlocalul=div:tag('ul');ul:tag('li'):addClass('nv-view'):wikitext('[['..title.fullText..'|'):tag(args.miniand'abbr'or'span'):attr('title','View this template'):cssText(args.fontstyle):wikitext(args.miniand'v'or'view'):done():wikitext(']]'):done():tag('li'):addClass('nv-talk'):wikitext('[['..talkpage..'|'):tag(args.miniand'abbr'or'span'):attr('title','Discuss this template'):cssText(args.fontstyle):wikitext(args.miniand't'or'talk'):done():wikitext(']]');ifnotargs.noeditthenul:tag('li'):addClass('nv-edit'):wikitext('['..title:fullUrl('action=edit')..' '):tag(args.miniand'abbr'or'span'):attr('title','Edit this template'):cssText(args.fontstyle):wikitext(args.miniand'e'or'edit'):done():wikitext(']');endifargs.bracketsthendiv:tag('span'):css('margin-left','-0.125em'):cssText(args.fontstyle):wikitext(' ]')endifargs.collapsiblethendiv:done():tag('div'):css('font-size','114%'):css('margin',args.miniand'0 4em'or'0 7em'):cssText(args.fontstyle):wikitext(args[1])endreturntostring(div:done())endfunctionp.navbar(frame)ifnotgetArgsthengetArgs=require('Module:Arguments').getArgsendreturnp._navbar(getArgs(frame))endreturnp