Template:Navbox

From Vintage Story Wiki


[view | edit | history | purge this page]Documentation

This template serves as the base for any navbox templates, providing a customizable layout to build off of. Each navbox can currently contain up to 10 nav groups, along with a theoretically infinite number of subgroups thanks to child navboxes.

Usage

While the parameters up to only group2 are listed here, it is possible to have up to 10 different groups group1-10. The content of bodyN can contain a child navbox which has child=true, allowing for up to 10 subgroups per group.

{{Navbox
|child = If this navbox should be formatted as a child navbox
|title = Navbox title
|group1 = First group title
|body1 = First group body content
|group2 = Second group title
|body2 = Second group body content
|groupN = N group title
|bodyN = N group body content
}}
Parameter Description Type Required
child If this navbox should be formatted as a child navbox -- disables the outer div primarily Boolean no
title The title shown at the top of the navbox String yes
group1 The title for the first group Content suggested
body1 The content to feature in the first groups' body Content suggested
group2 The title for the second group Content suggested
body2 The content to feature in the second groups' body Content suggested
groupN The title for the N group Content suggested
bodyN The content to feature in the N groups' body Content suggested

Example

Code Result
{{Navbox
|title = Example navbox
|group1 = Group 1
|body1 = Group 1 content
|group2 = Group 2
|body2 = {{Navbox
  |child = true
  |group1 = Group 2.1
  |body1 = Group 2.1 content
  |group2 = Group 2.2
  |body2 = Group 2.2 content
  |group3 = Group 2.3
  |body3 = Group 2.3 content
  }}
|group3 = Group 3
|body3 = Group 3 content<br/>
With a second line
}}
Example navbox
Group 1 Group 1 content
Group 2
Group 2.1 Group 2.1 content
Group 2.2 Group 2.2 content
Group 2.3 Group 2.3 content
Group 3 Group 3 content
With a second line


[view | edit | history | purge this page]The above documentation is transcluded from Template:Navbox/doc.