From WikiTemp, the GBAtemp wiki
(Docu)
 
Line 5: Line 5:
 
==Parameters==
 
==Parameters==
 
* Title = Title of the box, the only part that will not be hidden.
 
* Title = Title of the box, the only part that will not be hidden.
* Collapsible = Should the box autocollapse? If not, leave the parameter empty (but still add it)
+
* Collapse = Should the box collapse by default?
 +
** Yes = Collapsed by default (default setting)
 +
** No = Open by default
 +
** Auto = Collapse if there are other NavBoxes on the page.
 
* Above = Text to appear on the top
 
* Above = Text to appear on the top
 
* Group1 = Title of Group 1
 
* Group1 = Title of Group 1
Line 11: Line 14:
 
* Group2 = Title of Group 2
 
* Group2 = Title of Group 2
 
* List2 = List of Group 2
 
* List2 = List of Group 2
...
+
* ...
 
* Group5 = Title of Group 5
 
* Group5 = Title of Group 5
 
* List5 = List of Group 5
 
* List5 = List of Group 5
Line 19: Line 22:
 
<pre><nowiki>{{NavBox
 
<pre><nowiki>{{NavBox
 
|title = Click show on the right
 
|title = Click show on the right
 +
|collapse = auto
 
|above = Top text
 
|above = Top text
 
|group1 = First
 
|group1 = First
Line 32: Line 36:
 
{{NavBox
 
{{NavBox
 
|title = Click show on the right
 
|title = Click show on the right
 +
|collapse = auto
 
|above = Top text
 
|above = Top text
 
|group1 = First
 
|group1 = First

Revision as of 09:36, 5 December 2010

This is the documentation page of Template:Navbox. Please add the documentation for this Template below.

This template is mainly to be used in Navigation templates. It is also possible to use it directly on a page though.

Parameters

  • Title = Title of the box, the only part that will not be hidden.
  • Collapse = Should the box collapse by default?
    • Yes = Collapsed by default (default setting)
    • No = Open by default
    • Auto = Collapse if there are other NavBoxes on the page.
  • Above = Text to appear on the top
  • Group1 = Title of Group 1
  • List1 = List of Group 1
  • Group2 = Title of Group 2
  • List2 = List of Group 2
  • ...
  • Group5 = Title of Group 5
  • List5 = List of Group 5
  • Below = Text to appear on the bottom

Example

{{NavBox
|title = Click show on the right
|collapse = auto
|above = Top text
|group1 = First
|list1 = Test
|group4 = Second?
|list4 = No text here
|list3 = List can go before the group
|group3 = Third?
|list5 = This doesn't show as there is no group for it. 
|below = bottom text}}

The text above produces: