Module:Navbox/doc

Emit a navbox. Has three named parameters: Mandatory Subpage of Module:Navbox to load the definition from. Mandatory Page to link to in the v.d.e bit of the navbox header. or missing: collapse the navbox down to the header. : Collapse the individual groups (except for ones named in ) : Don't collapse anything. Space-separated list of groups to not collapse when  is specified If present, read the previous two parameters from the page that invoked the one the  is on. ie, use this in your wrapper template For compatibility with Template:Navbox, is equivalent to  is equivalent to

Navbox definitions
The module must have one member,, which must be a function with the following signature: function(navbox, highlightline, group, list, line, ni, l)

The function returns a navbox definition built by calling the functions passed to it.

The top of the tree is a navbox{} title: Mandatory wikitext to display as the navbox's title Can contain a mix of group{}, list{}, and highlightline{}

group{} are the collapsible groups. title: Mandatory wikitext to title the group with. name: Untranslated name to refer to it in things like the opengroups template parameter. Can contain list{} and highlightline{}

list{} title: Optional title to display at the left. Can contain list{}/line{}, in which case the lists will be formatted tabley/subgroupy, or string/ni{}/l{}, which will be formatted as a hlist. Note that the *first* positional argument determines if it's a table or not. highlightline{} Contents are concatenated (with space between) and displayed in a highlighted line like wp:Template:Navbox before= and after= line{} Like list{} except it formats as a straight run of text rather than hlist. Can only contain string. ni{} or l{} ni{} Invokes (or a facsimile, anyway) l{} Invokes the guts of