Template:Simple navbox

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
[edit] [purge] Template-info.svg Template documentation

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" navbar
title – text in the title bar
collapsible orcollapse – defaults to yes, set to no if you want a non-collapsible navigation template
image – optional image, coded as a standard image, as in: [[File:Example.png|50px]], will not show if |collapsible=no
image-align – defaults to right
image-valign – defaults to "auto" (like top in "valign"), set to "center" to vertically align the image center, accepts values for "align-self" CSS property
image-outer – like image, except it sits next to the header and content, does NOT accept image-align or image-valign parameters, they will do nothing
bodystyle – inline styling for the whole navbox container, such as: background:red; color:white
titlestyle or headerstyle – 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 with group1,list1

You can also use group1, list1 parameters to make an ordered list.

group1 – name of group, goes up to 10
list1 – list of links within group, goes up to 10
width – set width of table holding grouped lists, does NOT affect rest of navbox
tablestyle – 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 template
templatestyles – loads a CSS stylesheet: setting parameter to Example/styles.css would load the stylesheet at Template:Example/styles.css