Template:Navbox/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>A morris No edit summary |
sims>A morris (updating w/ new params) |
||
Line 2: | Line 2: | ||
:This template is used to create a basic [[Help:Navbox|navbox]]. |
:This template is used to create a basic [[Help:Navbox|navbox]]. |
||
;Syntax |
;Syntax |
||
: |
:<code>{{t|navbox|...}}</code>. |
||
;Parameters |
|||
;header* |
|||
:The title of the navigation box. |
|||
;name* |
|||
:The article name of the template, can use <code><nowiki>{{subst:PAGENAMEE}}</nowiki></code>. |
|||
;state |
|||
:The collapse state for the header. Default is uncollapsed. |
|||
;body |
|||
:The body of a simple the navigation template. |
|||
;above, below |
|||
:Displayed ''above'' or ''below'' the body of the template. |
|||
;group<sub>n</sub> |
|||
:The title of a group. |
|||
;group<sub>n</sub>state |
|||
:The collapse state of a group. Default is collapsed. |
|||
;list<sub>n</sub> |
|||
:A list of links for group<sub>n</sub>. |
|||
;abovestyle, belowstyle, bodystyle, group<sub>n</sub>style, list<sub>n</sub>style |
|||
:CSS styles to applied to specific section. |
|||
<nowiki>*</nowiki> required parameters. |
|||
n = 1-6 |
|||
;Sample output |
;Sample output |
||
<pre>{{navbox |
<pre>{{navbox |
||
|header=Land of Bob |
|header=Land of Bob |
||
|name = Template:This_template |
|||
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>. |
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>. |
||
}}</pre> |
}}</pre> |
||
Line 14: | Line 36: | ||
{{navbox |
{{navbox |
||
|header=Land of Bob |
|header=Land of Bob |
||
|name = Template:This_template |
|||
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>. |
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>. |
||
}} |
}} |
Revision as of 21:29, 13 February 2011
- Description
- This template is used to create a basic navbox.
- Syntax
{{navbox|<...>}}
.- Parameters
- header*
- 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 uncollapsed.
- body
- The body of a simple the navigation template.
- above, below
- Displayed above or below the body of the template.
- groupn
- The title of a group.
- groupnstate
- The collapse state of a group. Default is collapsed.
- listn
- A list of links for groupn.
- abovestyle, belowstyle, bodystyle, groupnstyle, listnstyle
- CSS styles to applied to specific section.
* required parameters. n = 1-6
- Sample output
{{navbox |header=Land of Bob |name = Template:This_template |body=This [[place]] and that [[place]]. }}
Results in...