قالب:Navbox long

Template documentation[view] [edit] [history] [purge]

This template is designed as an alternative to {{Navbox}} when more than 20 groups/lists are needed. Please only use this template when more than 20 groups are necessary (and if you really need that many groups, please first consider if the template you are working on is too large to be useful). This template supports a maximum of 38 groups/lists.

Blank template

{{Navbox long
|name = 
|title = 
|image = 
|above = 

|groupstyle = width:10em; <!-- Adjust as needed -->
|liststyle = width:auto;

|group1 = 
|list1  = 

|group2 = 
|list2  = 
...
|group38 = 
|list38  = 

|below = 
}}

Parameters

This template employs all of the same parameters as {{Navbox}}. Please see the documentation there for more complete descriptions. In fact, the only differences between this template and {{Navbox}} are as follows:

  • There is a maximum of 38 groups/lists instead of the 20 in {{Navbox}}.
  • You must manually specify the group width for all groups to align properly. Do this by adding the following two parameters: groupstyle = width:XXXem; where "XXX" is the desired width and liststyle = width:auto;.
  • The group padding defaults to 0.75em on the left/right, and can only be changed with the grouppadding parameter. This is done to prevent the Internet Explorer box model bug from effecting the width of groups. Most users can ignore this fact; it is listed here for advanced technical support.

Everything else is exactly the same as {{Navbox}}.

Examples

The following example shows how to get up to 38 groups/lists. Edit the section to view the code.

See also

  • {{Navbox}} – Basic navbox
  • {{Navbox subgroup}} – Allows nested Navboxes inside of other Navboxes
  • {{Navbox with columns}} – Allows columns instead of groups/lists
  • {{Navbox with collapsible groups}} – Another variation.
  • Wikipedia:Line break handling – The how-to guide about how to handle word wraps (line breaks) on Wikipedia, such as the wrapping of the link lists used in navboxes.
  • {{Nowrap begin}} – The recommended format for adding bullets, pipes, or dashes between list items. The page describes how to go about using them with proper wrapping.
  • {{Nobold}} – To display text at normal font-weight within a context where the default font-weight is bold, e.g. header cells in tables.


Navigation template comparison
ع  ن  ت
collapsible Header color Image Groups Style
parameter
Example
{{Navigation}} NavFrame NavHead لا لا لا {{OPEC}}
{{Navigation with image}} NavFrame NavHead Left/right of body لا لا {{HolmesNovels}}
{{Navigation with columns}} NavFrame NavHead لا لا لا
{{Dynamic navigation box}} collapsible navbox لا لا نعم {{CSUHeads}}
{{Dynamic navigation box with image}} NavFrame NavHead Upper left لا لا {{SlovakPMs}}
{{Navbox generic}} collapsible navbox لا نعم نعم {{Dilbert}}
{{Navbox generic with image}} collapsible navbox Right-hand side نعم نعم {{Jewish life}}
{{NavigationBox}} لا navbox Right of title+body لا لا {{EPA}}
{{Commons:NavigationBox}} لا #ccccff Right of title+body لا لا
{{Commons:Dynamic navigation box}} NavFrame #ccccff لا لا لا
{{Commons:Dynamic navigation box with image}}  NavFrame NavHead Upper left لا لا
The background color for the header or title is inherited from the class listed below. The templates have color parameters that override the default.
Collapsible attributes
Type CSS classes Collapses when Custom
initial state
Nesting Header
color
Font size
NavFrame div NavFrame, NavHead, NavContent 3+ of the same لا نعم #efefef 90%
Collapsible table collapsible, navbox 2+ of the same نعم لا #ccccff 90%

For the technically minded, انظر Common.css and Common.js.