Template:Navbox

From DFM Wiki
Revision as of 11:07, 28 September 2021 by EricThrift (talk | contribs) (Navbox template (and module) taken from Wikipedia.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Creates a navigational box for links to other pages.

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the template. Needed for "View • Talk • Edit" links to work properly.

Default
{{subst:PAGENAME}}{{subst:void|Don't change anything on this line. It will change itself when you save.}}
Stringsuggested
Titletitle

Text in the title bar; centered in the top row of the table. Usually the template's topic.

Example
[[Widget stuff]]
Unknownsuggested
Group 1group1

If specified, text appears in a header cell displayed to the left of list 1. If omitted, list 1 uses the full width of the table.

Unknownsuggested
List 1list1

Body of the template; usually a list of links. Format is inline. At least one list parameter is required; each additional list is displayed in a separate row of the table. Each listn may be preceded by a corresponding groupn parameter. Entries should be separated using a newline and an asterisk. If two asterisks are used, it provides nesting within the previous entry with brackets.

Unknownrequired
List classlistclass

CSS class for the list cells, usually hlist for horizontal lists. Alternatively, use bodyclass for the whole box.

Example
hlist
Stringoptional
Statestate

Controls when a navbox is expanded or collapsed

Default
autocollapse
Example
autocollapse
Unknownsuggested
Aboveabove

Full-width cell displayed between the titlebar and first group/list, i.e. above the template's body (groups, lists and image)

Stringsuggested
Belowbelow

Full-width cell displayed below the template's body.

Unknownsuggested
Imageimage

Image to be displayed in a cell below the title and to the right of the body

Example
[[File:XX.jpg | 80px | link= | alt= ]]
Filesuggested
Group2group2

no description

Unknownsuggested
List2list2

no description

Unknownsuggested
Group3group3

no description

Unknownsuggested
List3list3

no description

Unknownsuggested
Group4group4

no description

Unknownoptional
List4list4

no description

Unknownoptional
Image leftimageleft

Image to be displayed in a cell below the title and to the left of the body. For the image to display properly, list1 parameter must be specified and no groups can be specified.

Example
[[File:XX.jpg | 80px | link= | alt= ]]
Fileoptional
Navbar statusnavbar

no description

Example
plain, off
Stringoptional
Border statusborder

no description

Example
child, subgroup, none
Stringoptional
Bodystylebodystyle

no description

Unknownoptional
Basestylebasestyle

no description

Unknownoptional
Titlestyletitlestyle

no description

Unknownoptional
Groupstylegroupstyle

no description

Unknownoptional
Liststyleliststyle

no description

Unknownoptional
Group1stylegroup1style

no description

Unknownoptional
List1stylelist1style

no description

Unknownoptional
Groupwidthgroupwidth

no description

Unknownoptional
Listpaddinglistpadding

no description

Unknownoptional
Oddstyleoddstyle

no description

Unknownoptional
Evenstyleevenstyle

no description

Unknownoptional
Evenoddevenodd

no description

Unknownoptional
Abovestyleabovestyle

no description

Unknownoptional
Belowstylebelowstyle

no description

Unknownoptional
Imagestyleimagestyle

no description

Unknownoptional
Imageleftstyleimageleftstyle

no description

Unknownoptional