Template:Navbox/doc: Difference between revisions

m 4 revisions
 
mNo edit summary
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
;Description
== Description ==
:This template is used to create a basic [[Help:Navbox|navbox]].
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
:Type <code>{{t|navbox|...}}</code> somewhere, with parameters as shown below.
;Sample output


<pre>{{navbox
== Usage ==
|header=Land of Bob
{| class="article-table" style="width:100%;"
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.
|-
}}</pre>
! 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''
|}


Results in...
==Sample output==
<pre>
{{Navbox
| name = Navbox Name
| title = Navbox Title
| bodyclass = hlist


{{navbox
| group1 = Group 1
|header=Land of Bob
| list1 = List 1
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.
 
| 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>
{{Navbox
| name = Navbox Name
| title = Navbox Title
| bodyclass = hlist
 
| group1 = Group 1
| list1 = List 1
 
| 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
}}
}}
==See also==
*[[wikipedia:Template:Navbox|Template:Navbox]] on Wikipedia


<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>
[[Category:General wiki templates|{{PAGENAME}}]]
[[Category:Navbox templates| ]]
[[Category:Meta templates]]
</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>