Template:Navbar/doc
{{#ifeq: doc | doc
|
{{
#ifeq: show | show
| {{
{{#switch:
{{#if:
|
| {{#if:
|
{{#ifeq:|
| talk
|
}}
|
{{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox
}}
| type = notice
| image = File:Edit-copy green.svg
| imageright =
| style =
| textstyle =
| text = This is a documentation subpage for Template:Navbar.
It contains usage information, categories, interlanguage links and other content that is not part of the original {{ #if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template page | {{ #if: Template |template page|article}}}}}}}}.
| small =
| smallimage =
| smallimageright =
| smalltext =
}}
}}{{
#if:
|
| [[Category:{{
#if: Template
| Template
| Article
}} documentation {{#ifeq:Template|Template|pages}}]]
}}
| }} {{#ifeq:|yes
|
{{#ifeq:{{#if:| {{{smallimage}}} | }}|none | | }}{{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none
||
}}
}}
{{#if:{{#if:| {{{smallimage}}} | }}
| {{#if:| {{{smallimage}}} | }}
| [[Image:{{#switch:content
| speedy = Imbox speedy deletion.png
| delete = Imbox deletion.png
| content = Imbox content.png
| style = Edit-clear.svg
| move = Imbox move.png
| protection = Imbox protection.png
| notice
| #default = Imbox notice.png
}} | {{#ifeq:yes|yes
| 30x30px
| 40x40px
}}|link=|alt=]]
}} | {{#if:| {{{smalltext}}} | This template is used on {{#if: 6,200,000+ | 6,200,000+ |a very large number of}} pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's [[{{#ifeq:doc|doc| Template:Navbar | Template:Navbar/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Navbar | Template:Navbar/doc }}/testcases|/testcases]] subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on {{#if:|[[{{{2}}}]]|the [[{{#ifeq:doc|doc| Template talk:Navbar | Template talk:Navbar/doc }}|talk page]]}} before implementing them. }} |
{{#if: | {{{smallimageright}}} | }} |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Navbar/doc]]
}}
|
{{#ifeq:|none | | }}{{#if: | {{#ifeq:|none
||
}}
}}
{{#if:
|
| [[Image:{{#switch:content
| speedy = Imbox speedy deletion.png
| delete = Imbox deletion.png
| content = Imbox content.png
| style = Edit-clear.svg
| move = Imbox move.png
| protection = Imbox protection.png
| notice
| #default = Imbox notice.png
}} | {{#ifeq:|yes
| 30x30px
| 40x40px
}}|link=|alt=]]
}} | This template is used on {{#if: 6,200,000+ | 6,200,000+ |a very large number of}} pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's [[{{#ifeq:doc|doc| Template:Navbar | Template:Navbar/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Navbar | Template:Navbar/doc }}/testcases|/testcases]] subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on {{#if:|[[{{{2}}}]]|the [[{{#ifeq:doc|doc| Template talk:Navbar | Template talk:Navbar/doc }}|talk page]]}} before implementing them. |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Navbar/doc]]
}} }}
Usage
General
Copyable examples when inside a given template adds navbar navigational functionality:
- {{navbar|{{subst:PAGENAME}}|mini=1}}
- {{navbar|{{subst:PAGENAME}}|plain=1}}
- {{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}
The {{subst:PAGENAME}} will be substituted with the template's name when parsed by the servers.
{{navbar|navbar/doc}} gives:
|#default = Navbar/doc
| =
{{#ifeq: |
| Template:navbar/doc
| Navbar/doc
}}
}}|{{#if:|v|view}}]] · [[|{{#if:|d|talk}}]]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc
| =
{{#ifeq: |
| Template:navbar/doc
| Navbar/doc
}}
}}|action=edit}} {{#if:|e|edit}}]}}{{#if:|]}}
Examples
Required parameters
{{navbar|Name of Template}}the template name is required.
Optional parameters
| Options | Parameters | Produces... | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Normal | {{navbar|Template Name}} |
[}}[[{{#switch: | #default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|{{#if:|v|view}}]] · [[|{{#if:|d|talk}}]]{{#if:|| · [{{fullurl:{{#switch: |
#default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|action=edit}} {{#if:|e|edit}}]}}{{#if:|]}} | |
| Different text | {{navbar|Template Name|text=This template:}} |
[}}[[{{#switch: | #default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|{{#if:|v|view}}]] · [[|{{#if:|d|talk}}]]{{#if:|| · [{{fullurl:{{#switch: |
#default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|action=edit}} {{#if:|e|edit}}]}}{{#if:|]}} | |
| No "This box:" text. | {{navbar|Template Name|plain=1}} |
[}}[[{{#switch: | #default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|{{#if:|v|view}}]] · [[|{{#if:|d|talk}}]]{{#if:|| · [{{fullurl:{{#switch: |
#default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|action=edit}} {{#if:|e|edit}}]}}{{#if:|]}} | |
| Short version. | {{navbar|Template Name|mini=1}} |
[}}[[{{#switch: | #default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|{{#if:1|v|view}}]] · [[|{{#if:1|d|talk}}]]{{#if:|| · [{{fullurl:{{#switch: |
#default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|action=edit}} {{#if:1|e|edit}}]}}{{#if:|]}} | |
| For a color option. | {{navbar|Template Name|fontstyle=color:green}} |
[}}[[{{#switch: | #default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|{{#if:|v|view}}]] · [[|{{#if:|d|talk}}]]{{#if:|| · [{{fullurl:{{#switch: |
#default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|action=edit}} {{#if:|e|edit}}]}}{{#if:|]}} | |
| With brackets. | {{navbar|Template Name|brackets=1}}
|
[}}[[{{#switch: | #default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|{{#if:|v|view}}]] · [[|{{#if:|d|talk}}]]{{#if:|| · [{{fullurl:{{#switch: |
#default = Navbar/doc | =
{{#ifeq: |
|
Template:navbar/doc | Navbar/doc
}} }}|action=edit}} {{#if:|e|edit}}]}}{{#if:1|]}} |
Deprecated parameters
The miniv=1, viewplain=1, nodiv=1 and fontcolor= parameters have been deprecated. To use the view-only version, use the {{{{#if:|subst:}}v{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} or {{{{#if:|subst:}}view{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} templates instead.
Prepackaged
- {{Tnavbar-header}}
- Positions vTemplate:·dTemplate:·e on the right edge of the line, often used in non-collapsible navbox heading.
- {{Tnavbar-navframe}}
- For use in conjunction with Navframe divs, positions vTemplate:·dTemplate:·e opposite of the [hide]/[show] feature.
- {{Tnavbar-collapsible}}
- For use in conjunction with Collapsible tables,floats vTemplate:·dTemplate:·e opposite of the [hide]/[show] feature.
See also
Template:Edit templates Template:Navigational templates