Template:Navbox/doc: Difference between revisions
mNo edit summary |
ReinDevildom (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation/Header}} | |||
{{High Risk|pagetype=Main}} | |||
{{CSS}} | |||
This template should be used in navbox templates, which should be included at the bottom of each page that is linked in the template. | |||
==Syntax== | |||
{| class="article-table" style="width:100%;" | |||
|- | |||
! Parameter(s) | |||
! Usage | |||
! style="width:9%;" | Default value(s) | |||
# | |- | ||
| {{{name}}} | |||
| Should be identical to the template's name without namespace. | |||
| {{{name}}} | |||
|- | |||
| {{{title}}} | |||
| Sets the title used at the top of the navbox. | |||
| {{{title}}} | |||
|- | |||
| {{{state}}} | |||
| Allows you to change the collapsing state of the table. [[mw:Manual:Collapsible elements#Common.js script (Before 1.18)|More info]]. Collapsed is removed while on pages in the Template namespace, to make editing easier. | |||
| collapsible | |||
|- | |||
| {{{titleclass}}} | |||
| Set the css class used for the title area. | |||
| ''None'' | |||
|- | |||
| {{{titlestyle}}} | |||
| Allows custom styling for the title area. | |||
| ''None'' | |||
|- | |||
| {{{bodyclass}}} | |||
| Set the css class used for the body area. | |||
| ''None'' | |||
|- | |||
| {{{bodystyle}}} | |||
| Allows custom styling for the body area. | |||
| ''None'' | |||
|- | |||
| {{{groupclass}}} | |||
| Set the css class used for the group area. | |||
| ''None'' | |||
|- | |||
| {{{groupstyle}}} | |||
| Allows custom styling for the group area. | |||
| ''None'' | |||
|- | |||
| {{{listclass}}} | |||
| Set the css class used for the list area. | |||
| ''None'' | |||
|- | |||
| {{{liststyle}}} | |||
| Allows custom styling for the list area. | |||
| ''None'' | |||
|- | |||
| {{{evenodd}}} | |||
| Can be set to "swap" to reverse the order of styling among lists (starts with even by default). | |||
| ''None'' | |||
|- | |||
| {{{1}}} | |||
| Can be set to "child" or "subgroup" to use styling intended for nested navboxes. | |||
| ''None'' | |||
|- | |||
| {{{group1-20}}} | |||
| Adds the heading for the group number specified. | |||
| {{{group1}}} = {{{group1}}}<br>{{{group2-20}}} = ''None'' | |||
|- | |- | ||
| | | {{{list1-20}}} | ||
| Adds text for the list number specified. | |||
| {{{list1}}} = {{{list1}}}<br>{{{list2-20}}} = ''None'' | |||
|} | |||
==Sample output== | |||
<pre> | |||
{{Navbox | |||
| name = Navbox | |||
| title = Navbox | |||
| bodyclass = hlist | |||
| group1 = Group 1 | |||
| list1 = List 1 | |||
| group2 = Group 2 | |||
| | | list2 = {{Navbox|child | ||
| | | evenodd=swap | ||
}} | | group1 = Group 2.1 | ||
| list1 = List 2.1 | |||
| group2 = Group 2.2 | |||
| list2 = List 2.2 | |||
| group3 = Group 2.3 | |||
| list3 = List 2.3 | |||
}} | |||
| group3 = Group 3 | |||
| list3 = | |||
* List 3 | |||
* List | |||
* List | |||
}} | |||
</pre> | |||
{{Navbox | |||
| name = Navbox | |||
| title = Navbox | |||
| bodyclass = hlist | |||
{{ | | group1 = Group 1 | ||
| | | list1 = List 1 | ||
| | |||
| group2 = Group 2 | |||
| list2 = {{Navbox|child | |||
| evenodd=swap | |||
| group1 = Group 2.1 | |||
| list1 = List 2.1 | |||
| group2 = Group 2.2 | |||
| list2 = List 2.2 | |||
| group3 = Group 2.3 | |||
| list3 = List 2.3 | |||
}} | |||
| group3 = Group 3 | |||
| list3 = | |||
* List 3 | |||
* List | |||
* List | |||
}} | }} | ||