Wikipedia:NavFrame

From Wikipedia, the free encyclopedia

Documentation for dynamic navigation boxes.

Dynamic navigation boxes use a combination of CSS and Javascript to make collapsible navigation boxes. The technical parts comprise style sheet declarations in Wikipedia:Monobook.css, and Javascript code in Wikipedia:Monobook.js.

Example (click "show" or "hide" to see the good bits):

Soviet and post-Soviet armoured fighting vehicles after World War II
List of armoured fighting vehicles by country

Contents

[edit] How to use

[Please add docs]

CSS Styles:

  • navbox
  • collapsible
  • autocollapse

[edit] Bugs & limitations

[It was mentioned to me that this technique doesn't always work. When does it fail?]

[edit] Accessibility

[How does this display in text-only browsers, or visual browsers with CSS or Javascript turned off?]

  • Firefox 1.5, IE 6, the entire menu is displayed, without any link to show or hide it.

[edit] Templates