Template:Navbox/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>A morris mNo edit summary |
sims>A morris No edit summary |
||
Line 3: | Line 3: | ||
;Syntax |
;Syntax |
||
:<code>{{t|navbox|...}}</code>. |
:<code>{{t|navbox|...}}</code>. |
||
<pre>{{Navbox |
|||
|bodyclass = |
|||
|name = {{subst:PAGENAME}} |
|||
|title = |
|||
|titleclass = |
|||
|image = |
|||
|above = |
|||
|state = |
|||
|group1 = |
|||
|list1 = |
|||
|group2 = |
|||
|list2 = |
|||
... |
|||
|group20 = |
|||
|list20 = |
|||
|below = |
|||
}}</pre> |
|||
;Parameters |
;Parameters |
||
; |
;title* |
||
:The title of the navigation box. |
:The title of the navigation box. |
||
;name* |
;name* |
||
:The article name of the template, can use <code><nowiki>{{subst:PAGENAMEE}}</nowiki></code>. |
:The article name of the template, can use <code><nowiki>{{subst:PAGENAMEE}}</nowiki></code>. |
||
;state |
;state |
||
:The collapse state for the header. Default is |
:The collapse state for the header. Default is autocollapse. A navbox with autocollapse will start out collapsed if there are two or more tables on the same page that use other collapsible tables. |
||
;body |
|||
:The body of a simple the navigation template. |
|||
;above, below |
;above, below |
||
:Displayed ''above'' or ''below'' the body of the template. |
:Displayed ''above'' or ''below'' the body of the template. |
||
;group<sub>n</sub> |
;group<sub>n</sub> |
||
:The title of a group. |
:The title of a group. |
||
;group<sub>n</sub>state |
|||
:The collapse state of a group. Default is collapsed. |
|||
;list<sub>n</sub> |
;list<sub>n</sub> |
||
:A list of links for group<sub>n</sub>. |
:A list of links for group<sub>n</sub>. |
||
Line 23: | Line 41: | ||
:CSS styles to applied to specific section. |
:CSS styles to applied to specific section. |
||
<nowiki>*</nowiki> required parameters. |
<nowiki>*</nowiki> required parameters. |
||
n = 1-6 |
|||
;Sample output |
;Sample output |
||
<pre>{{navbox |
<pre>{{navbox |
||
| |
|title=Land of Bob |
||
|name = Template: |
|name = Template:Navbox/doc |
||
| |
|list1=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>. |
||
}}</pre> |
}}</pre> |
||
Line 35: | Line 53: | ||
{{navbox |
{{navbox |
||
| |
|title=Land of Bob |
||
|name = Template: |
|name = Template:Navbox/doc |
||
| |
|list1=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>. |
||
}} |
}} |
||
;See also |
;See also |
||
:[[Wikipedia:Template:Navbox]] for complete documentation |
|||
:[[Template:Navbox subgroup]] |
:[[Template:Navbox subgroup]] |
||
:[[Template:Navbox with collapsible groups]] |
:[[Template:Navbox with collapsible groups]] |
Revision as of 22:14, 17 February 2011
{{Navbox |bodyclass = |name = {{subst:PAGENAME}} |title = |titleclass = |image = |above = |state = |group1 = |list1 = |group2 = |list2 = ... |group20 = |list20 = |below = }}
- Parameters
- title*
- The title of the navigation box.
- name*
- The article name of the template, can use
{{subst:PAGENAMEE}}
. - state
- The collapse state for the header. Default is autocollapse. A navbox with autocollapse will start out collapsed if there are two or more tables on the same page that use other collapsible tables.
- above, below
- Displayed above or below the body of the template.
- groupn
- The title of a group.
- listn
- A list of links for groupn.
- abovestyle, belowstyle, bodystyle, groupnstyle, listnstyle
- CSS styles to applied to specific section.
* required parameters.
- Sample output
{{navbox |title=Land of Bob |name = Template:Navbox/doc |list1=This [[place]] and that [[place]]. }}
Results in...
|
- See also
- Wikipedia:Template:Navbox for complete documentation
- Template:Navbox subgroup
- Template:Navbox with collapsible groups
- Template:Navbox with columns