Wikipedia कडून
|
|
This is the template documentation page for {{Dynamic navigation box/doc}}.
It is not 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. |
साचा:Commonstmp
{{Dynamic navigation box
|name = {{subst:PAGENAME}}
|title =
|body =
}}
[संपादन] Parameters
Parameter:
- 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 (or 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.
- body (or CONTENT)
- Contents of the navigation box. Use | to separate links. It is not possible to include a pipe ("|") in the contents as this symbol is used to separate parameters.
- 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.
- color (or COLOR)
- Header color. 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.
- state (or 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.
{{Dynamic navigation box
|name = {{subst:{{PAGENAME}}}}
|title = [[Wikipedia:Navigational templates|Navigational Templates]]
|body = [[Template:Cosmology|Cosmology]]{{·}} [[Template:General relativity|Relativity]]{{·}}
[[Template:Continents of the world|World continents]]
}}
|
Navigational Templates |
| Cosmology · Relativity ·
World continents
|
|
|
collapsible |
Image |
Groups |
Default header color |
Style parameter |
Example |
| {{Navigation}} |
NavFrame || style="background: #ffdddd" class="table-no" | No[discuss]
|
No[discuss] |
#efefef |
No[discuss] |
{{OPEC}} |
| {{Navigation with image}} |
NavFrame || style="background: #ddffdd" |
Left/right of body
|
No[discuss] |
#efefef |
No[discuss] |
{{Cetaceans}} |
| {{Dynamic navigation box}} |
collapsible || style="background: #ffdddd" class="table-no" | No[discuss]
|
No[discuss] |
#ccccff |
Yes |
{{CSUHeads}} |
| {{Dynamic navigation box with image}} |
NavFrame || style="background: #ddffdd" |
Upper left
|
No[discuss] |
#efefef |
No[discuss] |
{{SPDHeads}} |
| {{Navbox generic}} |
collapsible || style="background: #ffdddd" class="table-no" | No[discuss]
|
Yes |
#ccccff |
Yes |
{{Dilbert}} |
| {{Navbox generic with image}} |
collapsible || style="background: #ddffdd" |
Right-hand side
|
Yes |
#ccccff |
Yes |
|
| {{NavigationBox}} |
No[discuss] |
Right of header+body
|
No[discuss] |
#ccccff |
No[discuss] |
{{EPA}} |
| {{Navigation no hide}} |
No[discuss] |
No[discuss] |
No[discuss] |
#eee |
No[discuss] |
|
|
| {{Commons:NavigationBox}} |
No[discuss] |
Right of header+body
|
No[discuss] |
#ccccff |
No[discuss] |
|
| {{Commons:Dynamic navigation box}} |
NavFrame || style="background: #ffdddd" class="table-no" | No[discuss]
|
No[discuss] |
#ccccff |
No[discuss] |
|
| {{Commons:Dynamic navigation box with image}} |
NavFrame || style="background: #ddffdd" |
Upper left
|
No[discuss] |
#efefef |
No[discuss] |
|
|
|
CSS class |
collapses when† |
custom initial state |
Nesting |
| NavFrame |
NavFrame |
3+ of the same |
No[discuss] |
Yes |
| collapsible |
navbox, collapsible |
2+ of the same |
Yes |
No[discuss] |
| † For the technically minded, see MediaWiki:Common.js. |