Template:Navigation templates

From BESA® Wiki
Revision as of 00:32, 23 February 2007 by Zyxw (Talk)

Jump to: navigation, search
Navigation template feature comparison
Template:Tnavbar collapsible Header color1 Image Groups Style parameter Example
{{Navigation}} Template:Yes2 NavFrame NavHead Template:No Template:No Template:No {{OPEC}}
{{Navigation with image}} Template:Yes2 NavFrame NavHead Template:Yes2 Left/right, below title Template:No Template:No {{Cetaceans}}
{{Dynamic navigation box}} Template:Yes2 collapsible navbox Template:No Template:No Template:Yes {{CSUHeads}}
{{Dynamic navigation box with image}} Template:Yes2 NavFrame NavHead Template:Yes2 Upper left Template:No Template:No {{SlovakPMs}}
{{Navbox generic}} Template:Yes2 collapsible navbox Template:Yes2 Right, below title (optional) Template:Yes Template:Yes {{Dilbert}}
{{Navbox generic with image}}2 collapsible navbox Right, below title Yes Yes {{Jewish life}}
{{NavigationBox}} Template:No navbox Template:Yes2 Right of title+body Template:No Template:No {{EPA}}
{{Commons:NavigationBox}} Template:No #ccccff Template:Yes2 Right of title+body Template:No Template:No
{{Commons:Dynamic navigation box}} Template:Yes2 NavFrame #ccccff Template:No Template:No Template:No
{{Commons:Dynamic navigation box with image}}  Template:Yes2 NavFrame NavHead Template:Yes2 Upper left Template:No Template:No

1 The background color for the header or title is inherited from the CSS class: navbox uses #ccf and NavHead uses #efefef (as defined in Common.css). All the current navigation templates have a color parameter that will override these defaults.
2 {{Navbox generic}} should be used instead of {{Navbox generic with image}} as the former was updated to include the additional features of the latter.

NavFrame div vs. collapsible table
Template:Tnavbar Classes used1 Collapses when Custom initial state Nesting2 Header color3 Font size3 Padding3
NavFrame div NavFrame, NavHead, NavContent 3+ of the same Template:No Template:Yes #efefef NavFrame: 95%
NavHead: 100%
NavContent: 100%
2px
Collapsible table collapsible, navbox 2+ of the same Template:Yes Template:Yes #ccccff navbox: 90% 5px

1 CSS classes are defined in Common.css and JavaScript for collapsible templates is located in Common.js.
2 Both types can be nested, with different results. Clicking "show" on a nested NavFrame template or an outer NavFrame template with nested Collapsible templates will open it with inner boxes collapsed, while a nested Collapsible template will open with the inner boxes expanded.
3 Defaults can be changed, for example {{Navigation}} contains: <div class="NavContent" style="font-size:0.9em">.