More actions
mNo edit summary |
m Added additional style parameters; they should be used sparingly too |
||
| Line 7: | Line 7: | ||
;Syntax | ;Syntax | ||
<pre>{{Navbox | <pre>{{Navbox | ||
|name = {{subst:PAGENAME}} | |name = {{subst:PAGENAME}} | ||
|title = | |title = | ||
|titleclass = | |titleclass = | ||
|state = | |state = | ||
|bodyclass = | |||
|bodystyle = | |||
|innerstyle = | |||
|basestyle = | |||
|titlestyle = | |titlestyle = | ||
|groupstyle = | |groupstyle = | ||
|titlegroupstyle = | |||
|image = | |image = | ||
|imagestyle = | |||
|imageleft = | |imageleft = | ||
|imageleftstyle = | |||
|above = | |above = | ||
|abovestyle = | |||
|liststyle = | |||
|group1 = | |group1 = | ||
| Line 28: | Line 36: | ||
|below = | |below = | ||
|belowstyle = | |||
}}</pre> | }}</pre> | ||
; Parameters | ; Parameters | ||
The only mandatory parameters are <code>name</code>, <code>title</code> and <code>list1</code> | The only mandatory parameters are <code>name</code>, <code>title</code> and <code>list1</code>. Use all style parameters sparingly! | ||
:<code>name</code> | :<code>name</code> | ||
:: The name of the template. Set to <nowiki>{{subst:PAGENAME}}</nowiki> by default. | :: The name of the template. Set to <nowiki>{{subst:PAGENAME}}</nowiki> by default. | ||
| Line 46: | Line 53: | ||
::* If set to <code>plain</code>, the navbox will always be expanded with no [hide] link on the right, and the title will remain centered. | ::* If set to <code>plain</code>, the navbox will always be expanded with no [hide] link on the right, and the title will remain centered. | ||
::* If set to <code>off</code>, the navbox will always be expanded with no [hide] link on the right, but no padding will be used to keep the title centered. This is for advanced use only; the "plain" option should suffice for most applications where the [show]/[hide] button needs to be hidden. | ::* If set to <code>off</code>, the navbox will always be expanded with no [hide] link on the right, but no padding will be used to keep the title centered. This is for advanced use only; the "plain" option should suffice for most applications where the [show]/[hide] button needs to be hidden. | ||
:<code>bodyclass</code> | |||
:: Applies an HTML <code>class</code> attribute to the entire navbox. Use sparingly! | |||
:<code>titlestyle</code> | :<code>titlestyle</code> | ||
:: A CSS style for the title-bar, such as: <code>background:gray;</code> Use sparingly! | :: A CSS style for the title-bar, such as: <code>background:gray;</code> Use sparingly! | ||