Template:Dynamic navigation box with image
From Wikipedia, the free encyclopedia
{{{image}}}
{{{title}}}
{{{body}}}
This template documentation is transcluded from Template:Dynamic navigation box with image/doc [edit]
The image is at the upper left hand corner of the navbox, and does overlap with the title.
Contents |
[edit] Blank
{{Dynamic navigation box with image | name = {{subst:PAGENAME}} | image = [[Image:|35px]] | title = [[]] | color = | body = }}
[edit] Parameters
[edit] Mandatory
- name
- Future implementations will use this for v-d-e.
- 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
- The material contained by the template, usually a list or list of links. Use | to separate links. It is not possible to include a pipe ("|") in the contents as this symbol is used to separate parameters. Format is inline.
[edit] Optional
- color
- Header color. Default is #eee. Use of this parameter is discouraged. Care/consensus needed when using this parameter as multiple navigational templates on one page using different titlebar colors is likely to look unpleasant.
- image
- The image. Must include
[[Image:...|?px|alt text]]
[edit] Auto collapse logic
A navbox will start out collapsed if there are 4 or more tables on the same page that is implemented with NavFrame. For the technical minded, see MediaWiki:Common.js.
See also Wikipedia:NavFrame.
[edit] Example
[edit] Code
Adapted from Template:Municipalities of the district of Vevey:
{{Dynamic navigation box with image | name = {{subst:PAGENAME}} | image = [[Image:Vaud-coat of arms.svg|35px|Coat of Arms of the Canton of Vaud]] | title = [[Municipalities of the canton of Vaud|Municipalities]] in the [[district of Vevey]] | color = #efefef | body =[[Blonay]] | [[Chardonne]] | [[Corseaux]] | [[Corsier-sur-Vevey]] | [[Jongny]] | [[La Tour-de-Peilz]] | [[Montreux]] | [[Saint-Légier-La Chiésaz]] | [[Vevey]] | [[Veytaux]] }}
[edit] Result
Municipalities in the district of Vevey
Blonay | Chardonne | Corseaux | Corsier-sur-Vevey | Jongny | La Tour-de-Peilz | Montreux | Saint-Légier-La Chiésaz | Vevey | Veytaux
[edit] See also
Collapsible | Image | Groups | Default Header Color | Style Parameter | Real Example | |
---|---|---|---|---|---|---|
{{Navigation}} | Using NavFrame | No | No | #efefef | No | {{OPEC}} |
{{Navigation with image}} | Using NavFrame | Left/right to the body | No | #efefef | No | {{Arab League}} |
{{Dynamic navigation box}} | Using collapsible | No | No | #ccccff | Yes | {{CSUHeads}} |
{{Dynamic navigation box with image}} | Using NavFrame | Upper left | No | #efefef | No | {{SPDHeads}} |
{{Navbox generic}} | Using collapsible | No | Yes | #ccccff | Yes | {{Dilbert}} |
{{NavigationBox}} | No | Right to both header and body | No | #ccccff | No | {{GermanPresidents}} |
{{NavigationBox}} | Broken | |||||
{{Dynamic navigation box}} | Using NavFrame | No | No | #ccccff | No | |
{{Dynamic navigation box with image}} | Using NavFrame | Upper left | No | #efefef | No |
autocollapse logic | custom initial state | hide/show position | |
---|---|---|---|
NavFrame | 4 or more of the same | No | Right |
collapsible | 2 or more of the same | Yes | Left |
{{NavigationBox}} (Image breaks titlebar; template deprecated? David Kernow (talk) 02:23, 29 November 2006 (UTC))