Difference between revisions of "Template:Navigation bar"
m (clean up using AWB (9234)) |
m (1 revision) |
(No difference)
|
Latest revision as of 09:12, 26 April 2014
This template employs CSS style attributes that may display differently on different browsers. Please test all changes with multiple browsers including at least IE 6, IE 7, Firefox, Safari, and Opera. Any experiments should be conducted in the template sandbox or your user space. |
This template is a navigational template intended to be used to generate a scrollable navigation "bar", rather than a navigation box, in cases where there are a long list of items with a natural ordering (for example, alphabetical or numerical) that as a box would consume a large amount of vertical space in an article. Navigation bars currently do not appear in printed copies of articles.
When creating a template using this one, please add it to Category:Templates using navigation bars by adding the following code:
<noinclude>[[Category:Templates using navigation bars|{{PAGENAME}}]]</noinclude>
Usage
{{navigation bar | color = | title = | list = | category = }}
Mandatory arguments
- title: A title for the navigation bar; may include links
- list: Single line of text (no tables, no expanded templates) with links to related articles with no embedded line breaks; links may be separated, for instance, by commas, bullets, or pipe symbols. To use pipe symbols (vertical bars) as a separator, template:! must be used since "|" has meaning within a template invocation. The syntax for this is
{{!}}
. If you want to use several lines simply surround them with div tags. Like this:
{{Navigation bar | title = Sample | list = <div> item 1 - item 2 - item 3 - item 4 - item 5 - item 6 - item 7 - item 8 - item 9 - item 10 - item 11 - item 12 - item 13 - item 14 - item 15 - item 16 - item 17 - item 18 - item 19 - item 20 </div> }}
- which produces
Optional arguments
- color: The color to use for the title bar. This color parameter defaults to the color shown in the {{{title}}} line above.
- category: A category all articles using this template will be added to.
See also
ar:قالب:Navigation bar
ca:Plantilla:Caixa ocultable
de:Vorlage:Navigationsleiste
eo:Ŝablono:Kaŝskatolo
fr:Modèle:Boîte déroulante
hsb:Předłoha:Nawigaciska lajsta
it:Template:Cassetto
ro:Format:Navigation bar
ru:Шаблон:Навигационная полоса
The above documentation is transcluded from Template:Navigation bar/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |