Template:Navlist/Top

[edit] [history] [purge] Template documentation

UsageEdit

This template is designed to be called at the top of each module page of a book. It deduces the organization of the book from a navlist page; see Template:Navlist/Doc.

Optional named parameters {{{background}}} and {{{border}}} determine the colors of the background and border of the generated navbox, overriding the default colors determined by the navlist page (as described in the general documentation, linked above). Optional named parameter {{{navlist}}} specifies the navlist page; the default navlist page is Template:{{FULLBOOKNAME}}/Navlist, and if a parameter value is provided, the navlist page is assumed to be in mainspace unless another namespace is specified in the parameter value.

Some examples (see note on editing):

Module doesn't occur in navlist: {{Template:Navlist/Top|navlist=Template:Navlist/Doc/A}}

  Template:Navlist  

 

Top

 

Module is first in navlist: {{Template:Navlist/Top|navlist=Template:Navlist/Doc/B|border=#cc0000}}

  Template:Navlist  

 

Top

Right 

Module is last in navlist: {{Template:Navlist/Top|navlist=Template:Navlist/Doc/C|background=#cccccc}}

  Template:Navlist  

 Foo Left

Top

 

Module is in the midst of navlist: {{Template:Navlist/Top|navlist=Template:Navlist/Doc/D}}

  Template:Navlist  

 Left

Top

Bottom 

Module is in the midst of navlist short: {{Template:Navlist/Top|navlist=Template:Navlist/Doc/D|format=short}}

 Left

 Bottom

Bottom 

Last modified on 24 January 2014, at 15:15