FANDOM


Description
This template is used to create a basic navbox.
Syntax
Type {{navbox|<...>}} somewhere, with parameters as shown below. Note that "title" and "list1" are required, and everything else is optional. Creating a list without a corresponding group will make a centered list.
Use the divider variables to add dividing lines. Note that "dividerX=false"or likewise will still create a divider; you have to omit the variable entirely if you don't want a dividing line.
Sample output
{{navbox
|title     =  Navbox Example
|group1    =  Fruit
|list1     =  Apple - Pear - Orange
|divider2  =  yes
|group2    =  Vegetables
|list2     =  Carrot - Corn - Radish
|list3     =  A list without a group
|divider3  =  false
|group4    =  Animals
|list4     =  Cat - Dog - Bird
|footer    =  This is a footer
}}

Results in...

Navbox Example
Fruit Apple - Pear - Orange
Vegetables Carrot - Corn - Radish
A list without a group
Animals Cat - Dog - Bird
This is a footer
Forcing a Centered List
{{navbox
|title=Navbox Example
|list text align=center
|group1=Vehicles
|list1=Car - Plane - Dirigible
}}

Results in...

Navbox Example
Vehicles Car - Plane - Dirigible
Adding links to the template in the header
{{navbox
|title=Navbox Example
|navbox name=Navbox
}}

Results in...

Navbox Example
Vehicles Car - Plane - Dirigible
除了特别提示,社区内容遵循CC-BY-SA 授权许可。