Шаблон:Navbox
This template uses Lua:
|
Usage
{{Navbox
|bodyclass =
|name = {{subst:PAGENAME}}
|title =
|titleclass =
|image =
|above =
|state =
|listclass =
|titlestyle =
|groupstyle =
|group1 =
|list1 =
|group2 =
|list2 =
...
|group20 =
|list20 =
|below =
|belowstyle =
}}
Parameter list
Layout of table
Without image, above and below
With image, above and below
With image and without groups
Examples
No image
{{Navbox
| name = Navbox/Документацие
| title = [[MSC Malaysia]]
| listclass = hlist
| group1 = Centre
| list1 =
* [[Cyberjaya]]
| group2 = Area
| list2 =
* [[Klang Valley]]
| group3 = Major landmarks
| list3 =
* [[Petronas Twin Towers]]
* [[Kuala Lumpur Tower]]
* [[Kuala Lumpur Sentral]]
* [[Technology Park Malaysia]]
* [[Putrajaya]]
* [[Cyberjaya]]
* [[Kuala Lumpur International Airport]]
| group4 = Infrastructure
| list4 =
* [[Express Rail Link]]
* [[KL-KLIA Dedicated Expressway]]
| group5 = Prime applications
| list5 =
* [[E-Government]]
* [[MyKad]]
}}
Child navboxes
{{Navbox
|name = {{subst:PAGENAME}}
|title = Title
|group1 = [optional]
|list1 = {{Navbox|child
...child navbox parameters...
}}
...
}}
Subgroups example
Multiple show/hides in a single container
See also
- {{Navbox subgroup}}
- {{Navbox sublist}}
- {{Navbox/table}}
TemplateData
Creates a navigational box for links to other pages. Does not display in mobile.
| Параметр | Описание | Тип | Статус | |
|---|---|---|---|---|
| Name | name | The name of the template. Needed for "View • Talk • Edit" links to work properly.
| Строковый (без форматирования) | предложенный |
| Title | title | Text in the title bar; centered in the top row of the table. Usually the template's topic.
| Неизвестно | предложенный |
| Group 1 | group1 | If specified, text appears in a header cell displayed to the left of list 1. If omitted, list 1 uses the full width of the table. | Неизвестно | предложенный |
| List 1 | list1 | Body of the template; usually a list of links. Format is inline. 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. Entries should be separated using a newline and an asterisk. If two asterisks are used, it provides nesting within the previous entry with brackets. | Неизвестно | обязательный |
| List class | listclass | CSS class for the list cells, usually hlist for horizontal lists. Alternatively, use bodyclass for the whole box.
| Строковый (без форматирования) | необязательный |
| State | state | Controls when a navbox is expanded or collapsed
| Неизвестно | предложенный |
| Above | above | Full-width cell displayed between the titlebar and first group/list, i.e. above the template's body (groups, lists and image) | Строковый (без форматирования) | предложенный |
| Below | below | Full-width cell displayed below the template's body. | Неизвестно | предложенный |
| Image | image | Image to be displayed in a cell below the title and to the right of the body
| Имя файла | предложенный |
| group2 | group2 | без описания | Неизвестно | предложенный |
| list2 | list2 | без описания | Неизвестно | предложенный |
| group3 | group3 | без описания | Неизвестно | предложенный |
| list3 | list3 | без описания | Неизвестно | предложенный |
| group4 | group4 | без описания | Неизвестно | необязательный |
| list4 | list4 | без описания | Неизвестно | необязательный |
| Image left | imageleft | Image to be displayed in a cell below the title and to the left of the body. For the image to display properly, list1 parameter must be specified and no groups can be specified.
| Имя файла | необязательный |
| Navbar status | navbar | без описания
| Строковый (без форматирования) | необязательный |
| Border status | border 1 | без описания
| Строковый (без форматирования) | необязательный |
| bodystyle | bodystyle | без описания | Неизвестно | необязательный |
| basestyle | basestyle | без описания | Неизвестно | необязательный |
| titlestyle | titlestyle | без описания | Неизвестно | необязательный |
| groupstyle | groupstyle | без описания | Неизвестно | необязательный |
| liststyle | liststyle | без описания | Неизвестно | необязательный |
| group1style | group1style | без описания | Неизвестно | необязательный |
| list1style | list1style | без описания | Неизвестно | необязательный |
| groupwidth | groupwidth | без описания | Неизвестно | необязательный |
| listpadding | listpadding list1padding | без описания | Неизвестно | необязательный |
| oddstyle | oddstyle | без описания | Неизвестно | необязательный |
| evenstyle | evenstyle | без описания | Неизвестно | необязательный |
| evenodd | evenodd | без описания
| Неизвестно | необязательный |
| abovestyle | abovestyle | без описания | Неизвестно | необязательный |
| belowstyle | belowstyle | без описания | Неизвестно | необязательный |
| imagestyle | imagestyle | без описания | Неизвестно | необязательный |
| imageleftstyle | imageleftstyle | без описания | Неизвестно | необязательный |