Pengguna:Py21/Bak pasir/Templat/enNavBox
Penggunaan
suntingMohon hapus parameter yang dikosongkan
{{Pengguna:Py21/Bak pasir/Templat/enNavBox |name = {{subst:PAGENAME}} |title = |image = |above = |state = |group1 = |list1 = |group2 = |list2 = ... |group20 = |list20 = |below = }}
Parameter list
sunting
|
The navbox uses lowercase parameter names, as shown in the box (at right). The mandatory name and title will create a one-line box if other parameters are omitted.
Notice "group1" (etc.) is optional, as are sections named "above/below".
The basic and most common parameters are as follows (see below for the full list):
name -
the name of the template.title -
text in the title bar, such as: [[Widget stuff]].state -
controls when a navbox is expanded or collapsed.
listclass -
a CSS class for the list cells, usuallyhlist
for horizontal lists.titlestyle -
a CSS style for the title-bar, such as:background:gray;
groupstyle -
a CSS style for the group-cells, such as:background:#eee;
image -
an optional right-side image, coded as the whole image. Typically it is purely decorative, so it should be coded as[[File:XX.jpg|80px|link=|alt=]]
.imageleft -
an optional left-side image (code the same as the "image" parameter).
above -
text to appear above the group/list section (could be a list of overall wikilinks).
groupn -
the left-side text before list-n (if group-n omitted, list-n starts at left of box).listn -
text listing wikilinks, often separated by middot templates, such as: [[A]]{{·}}
[[B]]below -
optional text to appear below the group/list section.
Parameter descriptions
suntingThe following is a complete list of parameters for using {{Navbox}}. In most cases, the only required parameters are name
, title
, and list1
, though child navboxes do not even require those to be set.
{{Navbox}} shares numerous common parameter names with its sister templates, {{Navbox with columns}} and {{Navbox with collapsible groups}}, for consistency and ease of use. Parameters marked with an asterisk (*) are common to all three master templates.