Template:Navbox
Note that the collapsibility does not work in mobile view. The box will still appear.
Usage
Minimal use:
{{Navbox|title=Title|Contents}}
The text within the template without parameter creates the contents of the navigation box.
Enter the parameter title for the title of the navigation box.
Other parameters are optional.
Full use:
{{Navbox |expanded= |width= |textcolor= |color= |background= |align= |title= |bstyle= |tstyle= |cstyle= |Contents}}
Expanded determines if the navigation box is expanded or collapsed (open or closed) when the page is opened. Any text (such as "yes", "true", "1") causes the box to be initially opened. Leave empty if that is not desired.
Width determines the width of the navigation box. Enter the width in pixels (e.g. 150px), as percentage of the width of the article (e.g. 80%) or in other supported measures. Defaults to full width.
Textcolor determines the color of the title. Enter the color in HTML names (e.g. white) or in hex code (e.g. #FEF7FC). Defaults to the black.
Color determines the background color of the title. Enter the color in HTML names (e.g. black) or in hex code (e.g. #B57EDC). Defaults to #efefef, which is a shade of light grey.
Background determines the background color of the content. Enter the color in HTML names (e.g. black) or in hex code (e.g. #B57EDC). Defaults to white.
Align determines the alignment of the contents. Defaults to left.
Bstyle, tstyle and cstyle allow changes to the CSS styling of the template main box, title box and contents, respectively. These parameters can override all other styling to their respective objects. These are advanced parameters that can cause the template to work incorrectly if entered wrong.
Different capitalisations of the parameter names ("title", "Title", "TITLE") are accepted. Please only use one style per parameter name.
Examples
{{Navbox |align=center |title=Species of the [[Borderlands]] |[[Klingon]]s • [[Son'a]] • [[Suliban]] • [[Da'al]] • Thama • Nascaik • Demesians}}
{{Navbox |expanded=yes |width=400px |align=center |color=#996633 |textcolor=white |title=Species of the [[Borderlands]] |[[Klingon]]s • [[Son'a]] • [[Suliban]] • [[Da'al]] • Thama • Nascaik • Demesians}}
Alternate use
{{Navbox |color={{Color|Blue}} |textcolor=white |width=80% |title=Shoreleave |[[File:Classo.jpg|thumb|Rura Penthe is Class D, such as the moon above.]] After the mission in the Muppetverse, the crew of the USS ''Diana'' went to a shore leave on Rura Pethe. Exhausted by the events of the previous mission, Jo Venan decided to use the opportunity for relaxation, as opposed to joining the other officers in exploring their holiday destination. As such, she remained mostly onboard the ship. Later on the shoreleave, Jo visited Doctor Kila for her annual medical check. The Doctor was concerned of Jo's elevated heart rate, deciding to order her to go through some extra tests. Eventually, they found out Jo had an unusually large and warm heart, and no further operations were required.}}