Template:Navigation bar
| This template is used in MediaWiki:Categoriespagetext. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
| This template can only be edited by administrators because it is transcluded onto one or more cascade-protected pages. |
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 displaying a pipe-character is
{{!}}. If you want to use several lines simply surround each line with div tags (following example only uses one div).
{{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
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.