Name? | |||
---|---|---|---|
|
Template for creating navboxes with columns, both for display to the left or right of article text and for display at the bottom of an article. Supports up to 5 columns with 10 rows each.
Side navboxes created with this template are not collapsible and do not auto-collapse/count towards the auto-collapse limit (see Template:Nb main). Bottom navboxes are collapsible and count towards the limit.
Usage
{{Navbox columns |name =Navbox columns example |title =Example navbox |columns =2 |contentA1 =First column, first row |contentA2 =First column, second row |contentB1 =Second column, first row |contentB2 =Second column, second row }}
Parameters
columns (semi-optional)
- Number of columns. Can be set to a value between 2 and 5 (default: 5). Does not need to be set when only using 2 columns; needs to be set if using more columns.
contentA1 - contentE10
- Content of the respective cell. The letter designates the column, the number specifies the row.
contentA1rows - contentE10rows
- Used to make a certain cell occupy multiple rows (identical to HTML "rowspan" attribute). If this is set for a certain cell, the corresponding number of following cells should be omitted.
- For example, if you set
contentA3rows
to 3,contentA3
will occupy the space of the cellscontentA4
andcontentA5
in addition to its own, i.e. the cellscontentA4
andcontentA5
should not be used.
contentalign (optional)
- Can be set to "center", "left" or "right" (defaults to center if not specified). Specifies text alignment for all content cells. Can be overriden for specific columns with
alignA
,alignB
,alignC
,alignD
andalignE
.
columnAalign - columnEalign (optional)
- Can be set to "center", "left" or "right" (defaults to center if not specified). Specifies text alignment for all cells in the respective column. Overrides general
contentalign
parameter.
footer (optional)
- Content of footer cell.
footeralign (optional)
- Can be set to "center", "left" or "right" (defaults to center if not specified). Specifies text alignment for footer cell.
position (optional)
- Can be set to "left", "right" or "bottom" (defaults: bottom). Specifies position of navbox and influences default width: "left" and "right" result in a "thinner" navbox which lets text float to its right/left, "bottom" creates a full-width navbox for use at the end of an article.
nowraplinks (optional)
- Can be set to "yes" or "no" (default: "no" for side navboxes, "yes" for bottom navbox). If set to "yes", links in the content fields of this navbox will not be wrapped, i.e. if a link is too long to fit in the remaining space of a certain line, the whole link will be moved to a new line. Accordingly, setting this parameter to "no" allows links to exhibit normal line break behaviour.
width (optional)
- Specifies width of navbox (default: 275px for side navboxes, global setting in
{{nb main}}
for bottom navbox). Can be set to both absolute (e.g. "300px") or relative (e.g. "20%") values.
Example
Full width, 5 columns
|
{{Navbox columns |name =Navbox columns/doc |title =Example navbox |columns =5 |contentA1 =1st column, 1st row |contentA2 =1st column, 2nd row |contentB1 =2nd column, 1st row |contentB2 =2nd column, 2nd row |contentC1 =3rd column, 1st row |contentC2 =3rd column, 2nd row |contentD1 =4th column, 1st row |contentD2 =4th column, 2nd row |contentE1 =5th column, 1st row |contentE2 =5th column, 2nd row }}
Side-aligned
|
{{Navbox columns |name ={{subst:PAGENAME}} |title =Example navbox |position =right |columns =2 |contentA1 =1st column, 1st row |contentA2 =1st column, 2nd row |contentB1 =2nd column, 1st row |contentB2 =2nd column, 2nd row }}