Template:Navigation with image
From Wikipedia, the free encyclopedia
|
|||||
[edit]
Template documentation
For information about the parameters name, title, titlestyle, body, and the auto collapse logic, see Template:Navigation/doc. For information about abovestyle and above (top); and belowstyle and below (bottom), see Template:Navigation with columns/doc or Template:Navbox generic/doc.
The bodystyle (style) parameter works in the same way as {{Navbox generic}}'s style parameter.
The image is next to the body, and does not interfere with the title. The body wraps around before the left or right-hand edge of the image, i.e. parts of the body do not appear above or below the image.
Blank syntax (full)
{{Navigation with image
|name = <!--{{subst:PAGENAME}}-->
|titlestyle = <!--if used, usually "background:..."-->
|title =
|image = <!--Use standard image wikicode (see [[Help:Extended image syntax]])-->
|imgpos = <!--"right" (default) or "left"-->
|imageleft = <!--add a second image to the left when image is already used with default imgpos -->
|category = <!--Avoid; category/ies not shown when pages with template are edited-->
|abovestyle =
|above =
|bodystyle = <!--or "style =" when no other style parameters used-->
|body =
|belowstyle =
|below =
}}
See also
| collapsible | Header color | Image | Groups | Style (body) parameter/s |
Examples | |
|---|---|---|---|---|---|---|
| {{Navbox}} | collapsible | navbox | Left/right of body | Yes | Yes | {{USCongress}}, {{Solar System}} |
| {{Navbox with columns}} | collapsible | navbox | Left/right of columns | No | Yes | {{Current U.S. Senators}}, {{Czech lands}} |
| {{Navbox with collapsible groups}} | collapsible | navbox | Left/right of body and/or in each list | Yes | Yes | {{University of Michigan}}, {{Scouting}} |
| Type | CSS classes | Javascript | Collapses when | Custom initial state |
Nesting |
|---|---|---|---|---|---|
| Collapsible tables | collapsible | Defined in Common.js | 2 or more autocollapse on page | Yes | Yes |

