Template:NavBox

From Liquipedia Commons Wiki

Documentation (view - edit)

This template creates a NavBox. The input in the NavBox template will directly serve as the first child of the NavBox too.

Please note that NavBoxes autocollapse at the top of pages while they will show expanded if used below infoboxes.

Parameters

|childX= (X = 1, 2, ...)
Adds a child to the NavBox. Use {{NavBoxChild}} or {{NavBoxChildSeriesFromLpdb}} for adding the Child Information.
|X= (optional, allows unnamed param usage, X = 1, 2, ...)
Xth List element to be shown.
|title= (optional)
Title of the NavBox which is to be displayed
|titleLink= (optional)
Set the (wiki) page the title should link to.
|center= (optional)
Set to true to center the list entered via |X= (X = 1, 2, ...).
|template= (optional)
Pagename the edit link ([e]) should link to.
Warning: This is automatically prefixed with Template:
|hideonmobile= (optional)
Set to true to hide the NavBox on mobile.
|name= (optional)
Name of the subgroup
|mobileName= (optional)
Name of the subgroup which is to be displayed on mobile instead of the normal name.
|image= (optional)
Image to be displayed on the right
|imagedark= (optional)
Image to be shown in darkmode on the right side
|imagesize= (optional)
Defines the size of the image. Default is 30px
|imageleft= (optional)
Image to be displayed on the left
|imageleftdark= (optional)
Image to be shown in darkmode on the left
|imageleftsize= (optional)
Defines the size of the left image. Default is 30px
|isChild= (optional)
If set to true the navbox is treated as a child and returns a stingified json. This option is intended to be used if navboxes are used inside other navboxes

Example

{{NavBox
|template=NavBox/doc
|title=Example Navbox
|image=Liquiheart.png
|imagesize=x80px

|child1={{NavBoxChild
	|name=test1
	|[[Test1]]
	|Test2
	|[[Test3|Test III]]
}}
|child2={{NavBoxChild
	|name=test2
	|[[Test4]]
	|Test5
}}
|child3={{NavBoxChild|collapsed=1
	|title=test3
	|child1={{NavBoxChild
		|name=test4
		|[[Test6]]
		|Test7
	}}
	|child2={{NavBoxChild
		|[[Test8]]
		|Test9
	}}
}}
|child4={{NavBoxChild
	|[[Test10]]
	|Test11
}}
|child5={{NavBoxChild|name=tst
	|[[Test12]]
	|Test13
}}
}}
displays as