Template:Simple navbox/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Simple navbox. It contains usage information, categories, and other content that is not part of the original template page. |
A simple navbox template used to construct other navigational templates. Use {{Navbox}} for anything more complicated.
Usage
Simple box with links
{{Simple navbox |name = {{subst:PAGENAME}} |title = |image = |list = }}
Simple box with ordered links
{{Simple navbox |name = {{subst:PAGENAME}} |title = |image = |group1 = |list1 = |group2 = |list2 = <!-- ... --> }}
Parameter list
All Parameters
name
– the page name for the template, needed for the "v·t·e" section to work, omitting this will remove the "v·t·e" navbartitle
– text in the title barcollapsible
orcollapse
– defaults toyes
, set tono
if you want a non-collapsible navigation templateimage
– optional image, coded as a standard image, as in:[[File:Example.png|50px]]
, will not show if|collapsible=no
image-align
– defaults toright
image-valign
– defaults to "auto" (like top in "valign"), set to "center" to vertically align the image center, accepts values for "align-self" CSS propertyimage-outer
– likeimage
, except it sits next to the header and content, does NOT acceptimage-align
orimage-valign
parameters, they will do nothingbodystyle
– inline styling for the whole navbox container, such as:background:red; color:white
titlestyle
orheaderstyle
– inline styling for the navbox header, such as:font-size:200%; color:green
liststyle
– inline styling for the list, such as:color:gray; font-variant:small-caps
list
– text listing the links you want, NOT compatible withgroup1
,list1
You can also use group1
, list1
parameters to make an ordered list.
group1
– name of group, goes up to 10list1
– list of links within group, goes up to 10width
– set width of table holding grouped lists, does NOT affect rest of navboxtablestyle
– inline styling for table holding grouped lists
CSS trickery
WARNING: WILL BREAK STUFF IF YOU DO SOMETHING WRONG
You can specify a unique class for the template navbox by using bodyclass
bodyclass
– add your own CSS classes, either existing ones (i.e. "hlist", "hlist toccolours") or a custom one, which can be used with either {{#CSS:}} or TemplateStyles to further customize the navbox templatetemplatestyles
– loads a CSS stylesheet: setting parameter toExample/styles.css
would load the stylesheet at Template:Example/styles.css