This template allows a navigational template to be set up relatively quickly by supplying it one or more lists of links.
| This is a documentation subpage for Template:Navbox generic. It may contain usage information, categories and other content that is not part of the original template page. |
| This template employs complicated features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
This template allows a navigational template to be set up relatively quickly by supplying it one or more lists of links.
{{Navbox generic
| name = {{subst:PAGENAME}}
| title =
| state =
| image =
| titlestyle =
| bodystyle = <!-- (or "style =" if no other style parameters used) -->
| groupstyle =
| liststyle =
| oddstyle =
| evenstyle =
| abovestyle =
| belowstyle =
| above =
| group1 =
| list1 =
| group2 =
| list2 =
...
| group20 =
| list20 =
| below =
}}
Deprecated (but still functional) parameter names given in parentheses before each description.
{{subst:PAGENAME}} for this value as a shortcut.{{-}} to ensure proper centering.#ccf (truncated form of #ccccff), but can be changed via the titlestyle parameter (see below).<div> </div> (see #Example with code). At least one list parameter is required; each additional list is displayed in a separate row of the table. Each listn may be preceded by a corresponding groupn parameter, if provided (see below).#f9f9f9, but can be changed via the bodystyle, oddstyle and/or evenstyle parameters (see below).#ddf (truncated form of #ddddff), but can be changed via the groupstyle parameter (see below).[[Image:Example.jpg|100px]][[Image:Example.jpg|80px|right]]titlebkg = #nnnnnntitlebkg = nametitlestyle = background:#nnnnnn;titlestyle = background:name;background:#nnnnnn;text-align:[right/center/left/justified];width:N [em/%/px or width:auto];float:[left/right/none];clear:[right/left/both/none];background:#nnnnnn;text-align:[left/center/right];vertical-align:[top/middle/bottom];white-space:nowrap;background:#nnnnnn;) in order to achieve an alternating background color between odd and even-numbered lists; see {{Turkey-related topics}} for an example.background:#nnnnnn;text-align:[left/center/right];autocollapse. If set to collapsed, the navbox will always start out in a collapsed state. If set to blank or anything other than autocollapse or collapsed, the navbox will always start out in an expanded state. A navbox with autocollapse will start out collapsed if there are two or more tables on the same page that use collapsible. For the technically minded, see MediaWiki:Common.js.{{{state<includeonly>|autocollapse</includeonly>}}}. Then, in an article, set this parameter to a value described above. For example, {{templateName|state=}} will expand the template.{{{title}}}
| |
|---|---|
| {{{group1}}} | {{{list1}}} |
| {{{group2}}} | {{{list2}}} |
| {{{list3}}} without {{{group3}}} | |
{{{title}}}
| ||
|---|---|---|
| {{{above}}} | ||
| {{{group1}}} | {{{list1}}} | {{{image}}} |
| {{{group2}}} | {{{list2}}} | |
| {{{list3}}} without {{{group3}}} | ||
| {{{below}}} | ||
{{Navbox generic
|name = {{subst:PAGENAME}}
|state = {{{state|uncollapsed}}}
|title = Navigational templates
|bodystyle = width:50%;
|group1 = Physics
|list1 = [[Template:Cosmology|Cosmology]]{{·}} [[Template:General relativity|Relativity]]{{·}}
[[Template:String-theory|String theory]]
|group2 = Continents
|list2 = <div>
[[Template:Africafooter|Africa]]{{·}}
[[Template:Asiafooter|Asia]]{{·}}
[[Template:Europefooter|Europe]]
</div>
|list3 = [[Template:National parks of Argentina|Argentinian National Parks]]
}}
|
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.