Template:Navbox/doc: Difference between revisions

No edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
;Parameters
== Description ==
This template should be used in navbox templates, which should be included at the bottom of each page that is linked in the template.


The maximum number of headers is currently 21, A to U, please contact [[User:Procrastinatingonhw]] or another administrator to request more blocks when necessary. The maximum of blocks, groups, and contents are up to 8 of each.
== Usage ==
{| class="article-table" style="width:100%;"
|-
! Parameter(s)
! Usage
! style="width: 9%" | Default value(s)
|-
| {{{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#With specified initial state|More info]]. Collapsed is removed while on pages in the Template namespace, to make editing easier.
| collapsible
|-
| {{{titlestyle}}}
| Allows custom styling for the title area
| ''None''
|-
| {{{bodystyle}}}
| Allows custom styling for the body area
| ''None''
|-
| {{{groupstyle}}}
| Allows custom styling for the group area
| ''None''
|-
| {{{liststyle}}}
| Allows custom styling for the list area
| ''None''
|-
| {{{group1-''unlimited''}}}
| Adds the heading for the group number specified
| {{{group1}}} = {{{group1}}}<br>{{{group2-''unlimited''}}} = ''None''
|-
| {{{list1-''unlimited''}}}
| Adds text for the list number specified
| {{{list1}}} = {{{list1}}}<br>{{{list2-''unlimited''}}} = ''None''
|}
 
==Sample output==
<pre>
<pre>
{{Navbox
{{Navbox
|1               ={{{1|}}}
| name = Navbox Name
|title          =
| title = Navbox Title
|headerA        =
| bodyclass = hlist
|imageA          =
 
|blockA          =
| group1 = Group 1
|groupA1        =
| list1 = List 1
|contentA1      =
 
| group2 = Group 2
| list2 = {{Navbox|child
| group1 = Group 2.1
| list1 = List 2.1
 
| group2 = Group 2.2
| list2 = {{Navbox|child
  | group1 = Group 2.2.1
  | list1 = List 2.2.1
 
  | group2 = Group 2.2.2
  | list2 = List 2.2.2
  }}
 
| group3 = Group 2.3
| list3 = List 2.3
}}
 
| group3 = Group 3
| list3 =
* List 3
* List
* List
}}
}}
</pre>
</pre>
{{Navbox
| name = Navbox Name
| title = Navbox Title
| bodyclass = hlist


;Example
| group1 = Group 1
<pre>
| list1 = List 1
{{Navbox
 
|1              ={{{1|}}}
| group2 = Group 2
|title          =Example
| list2 = {{Navbox|child
|headerA        =Header A
| group1 = Group 2.1
|imageA          =Wiki.png
| list1 = List 2.1
|blockA          =Block A
 
|groupA1        =Group A1
| group2 = Group 2.2
|contentA1      =Content A1
| list2 = {{Navbox|child
|contentA2      =Content A2
  | group1 = Group 2.2.1
|groupA3        =Group A3
  | list1 = List 2.2.1
|contentA3      =Content A3
 
|imageB          =Wiki.png
  | group2 = Group 2.2.2
|headerB        =Header B
  | list2 = List 2.2.2
|blockB          =Block B
  }}
|groupB1        =Group B1
 
|contentB1      =Content B1
| group3 = Group 2.3
|groupB2        =Group B2
| list3 = List 2.3
|contentB2      =Content B2
}}
|groupB3        =Group B3
|contentB3      =Content B3
}}
</pre>


;Outcome
| group3 = Group 3
{{Navbox
| list3 =
|1              ={{{1|}}}
* List 3
|title          =Title
* List
|headerA        =Header A
* List
|imageA          =Wiki.png
|blockA          =Block A
|groupA1        =Group A1
|contentA1      =Content A1
|contentA2      =Content A2
|groupA3        =Group A3
|contentA3      =Content A3
|imageB          =Wiki.png
|headerB        =Header B
|blockB          =Block B
|groupB1        =Group B1
|contentB1      =Content B1
|groupB2        =Group B2
|contentB2      =Content B2
|groupB3        =Group B3
|contentB3      =Content B3
}}
}}
==See also==
*[[wikipedia:Template:Navbox|Template:Navbox]] on Wikipedia


<includeonly>
<includeonly>
Line 67: Line 117:
[[Category:Meta templates]]
[[Category:Meta templates]]
</includeonly>
</includeonly>
<noinclude>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>