Template:Navbox
From Pizza Tower Wiki
How do I use this thing?
This is documentation about a Template. Portions of this template may not display properly without certain values provided.
- Description
- This template is used to create a navigation box (navbox). It's based on specially designed Lua module (see: Module:Navbox).
- Syntax
{{navbox |title = <visible title of navbox> |template = <template title of navbox for d/e links> |state = <collapsed/expanded/plain> |headerN = <subheader title> |groupN = <group title> |listN = * <row content> |bodystyle/bodyclass = |titlestyle/titleclass = |headerstyle/headerclass = |groupstyle/groupclass = |liststyle/listclass = }}
N
stands for number variablesXstyle
parameters should contain inline CSS, whileXclass
parameters use classes defined in MediaWiki:Common.css or via TemplateStyles
- To create a subgroup, the code following
listN=
must be:
{{Navbox|child |groupN = |listN = ...}}
- Usage examples
- Syntax:
{{navbox |title = Example Navbox |state = collapsed |titlestyle = background: green; color: white |headerstyle = color: white |header1 = This is subheader |group1 = This is a group |list1 = * This * Is * The * Stuff * [[Pizzaboy]] |group2 = {{Navbox|child |group1 = Subgroup |list1 = * More * Stuff}} }}
- Results in...
Example Navbox | |||||||||
---|---|---|---|---|---|---|---|---|---|
This is a group |
| ||||||||
|
- See also
- Global Lua Modules/Navbox - detailed documentation at Fandom Developers Wiki