Уикипедиядан
|
This is the template documentation page for {{Navbox generic/doc}}.
It is not necessarily intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs. |
This template allows a navigational template to be set up quickly by supplying it one or more lists of links.
{{Navbox generic
| name = {{subst:PAGENAME}}
| title =
| color =
| style =
| group-style =
| state =
| group1 =
| list1 =
| group2 =
| list2 =
| group3 =
| list3 =
...
| group20=
| list20=
}}
[өңдеу] Parameters
[өңдеу] Mandatory
- name (or templateName)
- The name of the template, which is needed for the "view · talk · edit" links to work properly on all of the pages where the template is used on. You can enter
{{subst:PAGENAME}}
for this value as a shortcut.
- title
- Text that appears centered in the titlebar (the top bar). Usually this is the template's topic, i.e. a succinct description of the body contents.
- image
- An image is displayed on the right-hand side of the navigation. The image parameter accepts standard wikicode for displaying an image, e.g.:
| image = [[Image:Example.jpg|80px]]
.
[өңдеу] Optional
- color
- Background color for the title. Default is #ccf . Use of this parameter is discouraged. Where it is used, care and consensus are needed as multiple navigational templates on one page with different titlebar colors will probably look unpleasant.
- style
- Specifies CSS values to apply to the template. For instance:
text-align: (right|center|left|justified); width: (em, %, px, auto); float: (left|right|none); clear: (right|left|both|none); margin:
...etc. This option should be used sparingly as it can lead to visual inconsistencies.
- group-style
- Specifies CSS values to apply to the "group" cells. For instance:
background-color: #nnnnnn; text-align: (left|center|right); vertical-align: (top|middle|bottom)
...etc. This option overrides any styles that are applied to the entire table.
- state
- Defaults to
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 2 or more tables on the same page that use collapsible. For the technically minded, see MediaWiki:Common.js.
- groupn
- Specifies the header for the following list. If omitted, the list will expand to the full width of the navbox.
- listn
- The material contained by the cell, usually a list of links. Format is inline.
{{Navbox generic
|name = {{subst:PAGENAME}}
|title = [[Wikipedia:Navigational templates|Navigational Templates]]
|style = width:50%; text-align:left;
|group1 = Physics
|list1 = [[Template:Cosmology|Cosmology]]{{·}} [[Template:General relativity|Relativity]]{{·}} [[Template:Quantum-theory|Quantum theory]]{{·}} [[Template:String-theory|String theory]]
|group2 = Continents
|list2 = [[Template:Continents of the world|World continents]]{{·}} [[Template:Africafooter|Africa]]{{·}} [[Template:Asiafooter|Asia]]{{·}} [[Template:Europefooter|Europe]]
|list3 = [[Template:National parks of Argentina|Argentinian National Parks]]
}}
The template documentation below is transcluded from Үлгі:Navbox generic/doc/doc [edit]
 |
This template employs some extremely complicated and esoteric features of template syntax.
Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair any consequent collateral damage if the results are unexpected. Any experiments should be conducted in the template sandbox or your user space.
|
This template allows a navigational template to be set up quickly by supplying it one or more lists of links.
{{Navbox generic
| name = {{subst:PAGENAME}}
| title =
| color =
| style =
| group-style =
| state =
| group1 =
| list1 =
| group2 =
| list2 =
| group3 =
| list3 =
...
| group20=
| list20=
}}
[өңдеу] Parameters
[өңдеу] Mandatory
- name (or templateName)
- The name of the template, which is needed for the "view · talk · edit" links to work properly on all of the pages where the template is used on. You can enter
{{subst:PAGENAME}}
for this value as a shortcut.
- title
- Text that appears centered in the titlebar (the top bar). Usually this is the template's topic, i.e. a succinct description of the body contents.
- image
- An image is displayed on the right-hand side of the navigation. The image parameter accepts standard wikicode for displaying an image, e.g.:
| image = [[Image:Example.jpg|80px]]
.
[өңдеу] Optional
- color
- Background color for the title. Default is #ccf . Use of this parameter is discouraged. Where it is used, care and consensus are needed as multiple navigational templates on one page with different titlebar colors will probably look unpleasant.
- style
- Specifies CSS values to apply to the template. For instance:
text-align: (right|center|left|justified); width: (em, %, px, auto); float: (left|right|none); clear: (right|left|both|none); margin:
...etc. This option should be used sparingly as it can lead to visual inconsistencies.
- group-style
- Specifies CSS values to apply to the "group" cells. For instance:
background-color: #nnnnnn; text-align: (left|center|right); vertical-align: (top|middle|bottom)
...etc. This option overrides any styles that are applied to the entire table.
- state
- Defaults to
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 2 or more tables on the same page that use collapsible. For the technically minded, see MediaWiki:Common.js.
- groupn
- Specifies the header for the following list. If omitted, the list will expand to the full width of the navbox.
- listn
- The material contained by the cell, usually a list of links. Format is inline.
{{Navbox generic
|name = {{subst:PAGENAME}}
|title = [[Wikipedia:Navigational templates|Navigational Templates]]
|style = width:50%; text-align:left;
|group1 = Physics
|list1 = [[Template:Cosmology|Cosmology]]{{·}} [[Template:General relativity|Relativity]]{{·}} [[Template:Quantum-theory|Quantum theory]]{{·}} [[Template:String-theory|String theory]]
|group2 = Continents
|list2 = [[Template:Continents of the world|World continents]]{{·}} [[Template:Africafooter|Africa]]{{·}} [[Template:Asiafooter|Asia]]{{·}} [[Template:Europefooter|Europe]]
|list3 = [[Template:National parks of Argentina|Argentinian National Parks]]
}}
Navbox generic/doc
[өңдеу] See also
|
CSS class |
collapses when† |
custom initial state |
Nesting |
NavFrame |
NavFrame |
3+ of the same |
No |
Yes |
collapsible |
navbox, collapsible |
2+ of the same |
Yes |
No |
† For the technically minded, see MediaWiki:Common.js. |
[өңдеу] See also
|
CSS class |
collapses when† |
custom initial state |
Nesting |
NavFrame |
NavFrame |
3+ of the same |
No |
Yes |
collapsible |
navbox, collapsible |
2+ of the same |
Yes |
No |
† For the technically minded, see MediaWiki:Common.js. |