Jump to content

Module:Navbar/doc

From The Perfect Tower II

This is the documentation page for Module:Navbar

Draws the view, talk and edit links for a template. On this wiki only Module:Navbox uses it, in the title bar of each navbox; there is no {{Navbar}} template. It is an older version of Wikipedia's Module:Navbar.

The talk link only shows when the template's talk page exists, so navboxes don't carry red links. title.exists is an expensive function, so the check runs inside pcall: on a page that has reached the limit of expensive calls, the link is left out instead of showing an error. MediaWiki:Common.css hides the links in navbox title bars (visibility: hidden).

  • _navbar(args): for modules. args[1] is the template name (default: the calling template). mini shows the short labels v, t and e. Without mini or plain, the links follow "This box:" (text replaces it). brackets adds brackets, noedit leaves out the edit link, fontstyle and style add CSS. With collapsible (and fontcolor), the template name moves to args[2] and args[1] shows as a heading next to the links.
  • navbar(frame): the same for {{#invoke:Navbar|navbar}}.

The template argument, which picks other links such as history, move and watch, needs Module:TableTools. This wiki doesn't have that module, so template ends in a script error.