Difference between revisions of "Template:Navigation templates"

From BESA® Wiki
Jump to: navigation, search
(Navigation with image header is now efefef)
m (150 revisions)
 
(143 intermediate revisions by 57 users not shown)
Line 1: Line 1:
{|class="wikitable" style="margin-left:auto; margin-right:auto; font-size: 90%;"
+
{| class="wikitable hlist" style="margin-left: auto; margin-right: auto; width: auto; text-align: center; font-size: 90%;"
! !! Collapsible !! Image !! Groups !! Header color !! Custom table style !! Real example
+
|+ <span style="font-size: 130%;">Navigation templates comparison</span>
 +
|- style="line-height: 10pt;"
 +
! style="text-align: left; padding-left: 4px; font-size: 111%;" | {{Navbar|Navigation templates|plain=1}}
 +
! Collapsible !! Header color
 +
! Image !! Groups !! Style (body) <br /> parameter/s !! Examples
 
|-
 
|-
| {{tl|Navigation}}
+
| style="text-align: left;" | {{tl|Navbox}}
| Yes, with <tt>NavFrame</tt>
+
| collapsible || style="background: #ccf;" | navbox
| No
+
| Left/right of body || Yes || Yes ||
| No
+
* {{tl|Solar System}}
|style="background-color: #efefef;"| #efefef, overridable
+
* {{tl|Governance of Greater London}}
| No
+
| {{tl|OPEC}}
+
 
|-
 
|-
| {{tl|Navigation with image}}
+
| style="text-align: left;" | {{tl|Navbox with collapsible groups}}
| Yes, with <tt>NavFrame</tt>
+
| collapsible || style="background: #ccf;" | navbox
| Yes, resizable, left or right to the body
+
| Left/right of body and/or in each list || Yes || Yes ||
| No
+
* {{tl|Scouting}}
|style="background-color: #efefef;"| #efefef, overridable
+
* {{tl|University of Michigan}}
| No
+
| {{tl|Arab League}}
+
 
|-
 
|-
| {{tl|Dynamic navigation box}}
+
| style="text-align: left;" | {{tl|Navbox with columns}}
| Yes, with <tt>collapsible</tt>
+
| collapsible || style="background: #ccf;" | navbox
| No
+
| Left/right of columns || No || Yes ||
| No
+
* {{tl|Current U.S. Senators}}
|style="background-color: #ccf;"| #ccf, overridable
+
* {{tl|Historical regions of the Czech Republic}}
| No
+
| {{tl|CSUHeads}}
+
|-
+
| {{tl|Dynamic navigation box with image}}
+
| Yes, with <tt>NavFrame</tt>
+
| Yes, resizable, upper left
+
| No
+
|style="background-color: #efefef;"| #efefef, overridable
+
| No
+
| {{tl|SPDHeads}}
+
|-
+
| {{tl|Navbox generic}}
+
| Yes, with <tt>collapsible</tt>
+
| No
+
| Yes
+
|style="background-color: #ccf;"| #ccf, overridable
+
| Yes
+
| {{tl|Dilbert}}
+
|-
+
| {{tl|NavigationBox}}
+
| No
+
| Yes, right to both header and body
+
| No
+
|style="background-color: #ccf;"| #ccf, overridable
+
| No
+
| {{tl|GermanPresidents}}
+
|-
+
| {{[[commons:Template:NavigationBox|NavigationBox]]}}
+
|colspan="6"| Broken
+
|-
+
| {{[[commons:Template:Dynamic navigation box|Dynamic navigation box]]}}
+
| Yes, with <tt>NavFrame</tt>
+
| No
+
| No
+
|style="background-color: #ccccff;"| #ccccff, overridable
+
| No
+
|
+
|-
+
| {{[[commons:Template:Dynamic navigation box with image|Dynamic navigation box with image]]}}
+
| Yes, with <tt>NavFrame</tt>
+
| Yes, resizable, upper left
+
| No
+
|style="background-color: #efefef;" | #efefef, overridable
+
| No
+
|
+
 
|}
 
|}
{|class="wikitable" style="margin-left:auto; margin-right:auto; font-size: 90%;"
+
 
!   !! autocollapse logic !! custom initial state !! hide/show button position
+
{| class="wikitable" style="margin-left: auto; margin-right: auto; width: auto; text-align: center; font-size: 90%;"
 +
|+ <span style="font-size: 130%;">Collapsible attributes</span>
 +
|- style="line-height: 10pt;"
 +
! Type !! CSS classes !! JavaScript !! Collapses when !! Custom <br /> initial&nbsp;state !! Nesting
 
|-
 
|-
| <tt>NavFrame</tt> || 4 or more of the same || No || Right
+
| style="text-align:left;" | [[Help:Collapsing|Collapsible tables]]
|-
+
| collapsible
| <tt>collapsible</tt> || 2 or more of the same || Yes || Left
+
| Defined in [[MediaWiki:Common.js|Common.js]]
|}
+
| 2 or more autocollapse on page || Yes || Yes
<nowiki>{{NavigationBox}}</nowiki> <small>(Image breaks titlebar; template deprecated? [[User:David Kernow|David Kernow]] <span style="font-size:90%;">[[User talk:David Kernow|(talk)]]</span> 02:23, 29 November 2006 (UTC))</small><noinclude>
+
|}<noinclude>
 +
 
 +
[[Category:Navigational boxes| ]]
 +
[[Category:Documentation shared content templates]]
  
[[Category:Navigational templates| {{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 13:23, 8 April 2016

Navigation templates comparison
Script error Collapsible Header color Image Groups Style (body)
parameter/s
Examples
{{Navbox}} collapsible navbox Left/right of body Yes Yes
{{Navbox with collapsible groups}} collapsible navbox Left/right of body and/or in each list Yes Yes
{{Navbox with columns}} collapsible navbox Left/right of columns No Yes
Collapsible attributes
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