No description yet available.
Usage
{{navbar |1= |thisbox= }}
Copyable examples when inside a given template adds navbar navigational functionality:
- {{navbar|{{subst:PAGENAME}}|mini=1}}
- {{navbar|{{subst:PAGENAME}}|plain=1}}
- {{navbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}
- {{navbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}
- {{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}
- The
{{subst:PAGENAME}}
will be substituted with the template’s name when parsed by the servers.
The miniv=1, viewplain=1 and fontcolor= parameters have been deprecated. To use the view-only version, use the {{v}} or {{view}} templates instead.
Template parameters
Parameter | Description | Default | Status |
---|
1 | name | Name of the template | empty | required |
plain | plain version | Hide the “This box:” text | empty | optional |
mini | short version | Use one-letter links instead of whole words | empty | optional |
nodiv | inline version | Use <bdi> instead of <div> so that the template won’t have its own line in the text | empty | optional |
style | box style | CSS style for the whole box | empty | optional |
fontstyle | font style | CSS style for the text, also applied to the links. Useful for setting font color as that would be overridden by default link color. | empty | optional |
brackets | brackets | Put [brackets] around the links | empty | optional |
uselang | language | Set the template’s language. Not used if the template is transcluded on pages translated with the Translate extension. | empty | optional |
miniv | | empty | deprecated |
viewplain | | empty | deprecated |
fontcolor | font color | Set the font color. Deprecated, use |fontstyle = color:⧼color⧽ instead. | empty | deprecated |
thisbox | Text | Custom leading text | This box | optional |
Template data
|
Template parameters This template prefers inline formatting of parameters. Parameter | Description | Type | Status |
---|
name | 1 | Name of the template
| Template | required |
---|
brackets | brackets | Put [brackets] around the links
| Unknown | optional |
---|
font color | fontcolor | Set the font color. Deprecated, use |fontstyle = color:⧼color⧽ instead.
| Line | deprecated |
---|
font style | fontstyle | CSS style for the text, also applied to the links. Useful for setting font color as that would be overridden by default link color.
| Line | optional |
---|
short version | mini | Use one-letter links instead of whole words
| Unknown | optional |
---|
| miniv |
| Unknown | deprecated |
---|
inline version | nodiv | Use <bdi> instead of <div> so that the template won’t have its own line in the text
| Unknown | optional |
---|
plain version | plain | Hide the “This box:” text
| Unknown | optional |
---|
box style | style | CSS style for the whole box
| Line | optional |
---|
Text | thisbox | Custom leading text - Default
- This box
| Line | optional |
---|
language | uselang | Set the template’s language. Not used if the template is transcluded on pages translated with the Translate extension.
| Line | optional |
---|
| viewplain |
| Unknown | deprecated |
---|
|
Additional information
The template is intended to be used in the following namespaces:
no namespace specified
The template is intended to be used by the following user groups:
no user group specified
Example
{{navbar|navbar/doc}}
renders as:
{{Navbar/i18n{{#translation:}}
|1=navbar/doc
|nodiv=
|fontcolor=
|fontstyle=
|style=
|mini=
|miniv=
|plain=
|viewplain=
|brackets=
}}
⧼Seealso⧽
Localization
English ∙
This template makes use of {{Autotranslate}} and the translate extension.
Examples
Options |
Parameters |
Produces...
|
Normal |
{{navbar|Template Name}} |
{{Navbar/i18n{{#translation:}}
|
1=navbar/doc
|
nodiv=
|
fontcolor=
|
fontstyle=
|
style=
|
mini=
|
miniv=
|
plain=
|
viewplain=
|
brackets=
}}
|
Different text
|
{{Navbar|Template Name|thisbox=This template}}
|
This template: view • talk • edit
|
No "This box:" text. |
{{navbar|Template Name|plain=1}} |
{{Navbar/i18n{{#translation:}}
|
1=navbar/doc
|
nodiv=
|
fontcolor=
|
fontstyle=
|
style=
|
mini=
|
miniv=
|
plain=1
|
viewplain=
|
brackets=
}}
|
Short version. |
{{navbar|Template Name|mini=1}} |
{{Navbar/i18n{{#translation:}}
|
1=navbar/doc
|
nodiv=
|
fontcolor=
|
fontstyle=
|
style=
|
mini=1
|
miniv=
|
plain=
|
viewplain=
|
brackets=
}}
|
Good for "blending" into text. |
{{navbar|Template Name|nodiv=1}} |
Lorem {{Navbar/i18n{{#translation:}}
|
1=navbar/doc
|
nodiv=1
|
fontcolor=
|
fontstyle=
|
style=
|
mini=
|
miniv=
|
plain=
|
viewplain=
|
brackets=
}} Ipsum
|
Blended, no "This box:" text. |
{{navbar|Template Name|plain=1|nodiv=1}} |
Lorem {{Navbar/i18n{{#translation:}}
|
1=navbar/doc
|
nodiv=1
|
fontcolor=
|
fontstyle=
|
style=
|
mini=
|
miniv=
|
plain=1
|
viewplain=
|
brackets=
}} Ipsum
|
Blended, short version. |
{{navbar|Template Name|mini=1|nodiv=1}} |
Lorem {{Navbar/i18n{{#translation:}}
|
1=navbar/doc
|
nodiv=1
|
fontcolor=
|
fontstyle=
|
style=
|
mini=1
|
miniv=
|
plain=
|
viewplain=
|
brackets=
}} Ipsum
|
For a color option. |
{{navbar|Template Name|fontstyle=color:green}} |
{{Navbar/i18n{{#translation:}}
|
1=navbar/doc
|
nodiv=
|
fontcolor=
|
fontstyle=color:green
|
style=
|
mini=
|
miniv=
|
plain=
|
viewplain=
|
brackets=
}}
|