Difference between revisions of "Template:Navigation templates"
From BESA® Wiki
(Default Header color by class not by navbox, make it more clear that it is class dependent) |
(background colors for collapsible tables also inherited (from class=navbox), fix incorrect colors, show default font sizes) |
||
Line 1: | Line 1: | ||
{| class="wikitable" style="margin-left:auto; margin-right:auto; width:auto; text-align:center; font-size:90%;" | {| class="wikitable" style="margin-left:auto; margin-right:auto; width:auto; text-align:center; font-size:90%;" | ||
− | !style="text-align:left; padding-left:4px;"| {{Tnavbar|Navigational_templates|plain=1}} | + | |+ Navigation template feature comparison |
− | ! collapsible !! | + | ! style="text-align:left; padding-left:4px;" | {{Tnavbar|Navigational_templates|plain=1}} |
− | ! | + | ! collapsible !! Header color<sup>†</sup> |
+ | ! Image !! Groups !! Style parameter !! Example | ||
|- | |- | ||
− | |align="left"| {{tl|Navigation}} | + | | align="left" | {{tl|Navigation}} |
− | | {{yes2}} <tt>NavFrame</tt> | + | | {{yes2}} <tt>NavFrame</tt> || style="background-color:#efefef;" | NavHead |
− | | {{no}} | + | | {{no}} || {{no}} || {{no}} || {{tl|OPEC}} |
|- | |- | ||
− | |align="left"| {{tl|Navigation with image}} | + | | align="left" | {{tl|Navigation with image}} |
− | | {{yes2}} <tt>NavFrame</tt> | + | | {{yes2}} <tt>NavFrame</tt> || style="background-color:#efefef;" | NavHead |
− | | {{no}} | + | | {{yes2}} Left/right of body || {{no}} || {{no}} || {{tl|Cetaceans}} |
|- | |- | ||
− | |align="left"| {{tl|Navigation with columns}} | + | | align="left"| {{tl|Navigation with columns}} |
− | | {{yes2}} <tt>NavFrame</tt> | + | | {{yes2}} <tt>NavFrame</tt> || style="background-color:#efefef;" | NavHead |
− | | {{no}} | + | | {{no}} || {{no}} || {{no}} || |
|- | |- | ||
− | |align="left"| {{tl|Dynamic navigation box}} | + | | align="left" | {{tl|Dynamic navigation box}} |
− | | {{yes2}} <tt>collapsible</tt> || {{no}} | + | | {{yes2}} <tt>collapsible</tt> || style="background-color:#ccccff;" | navbox |
− | | {{no}} | + | | {{no}} || {{no}} || {{yes}} || {{tl|CSUHeads}} |
|- | |- | ||
− | |align="left"| {{tl|Dynamic navigation box with image}} | + | | align="left" | {{tl|Dynamic navigation box with image}} |
− | | {{yes2}} <tt>NavFrame</tt> | + | | {{yes2}} <tt>NavFrame</tt> || style="background-color:#efefef;" | NavHead |
− | | {{no}} | + | | {{yes2}} Upper left || {{no}} || {{no}} || {{tl|SlovakPMs}} |
|- | |- | ||
− | |align="left"| {{tl|Navbox generic}} | + | | align="left" | {{tl|Navbox generic}} |
− | | {{yes2}} <tt>collapsible</tt> || {{no}} | + | | {{yes2}} <tt>collapsible</tt> || style="background-color:#ccccff;" | navbox |
− | | {{yes}} | + | | {{no}} || {{yes}} || {{yes}} || {{tl|Dilbert}} |
|- | |- | ||
− | |align="left"| {{tl|Navbox generic with image}} | + | | align="left" | {{tl|Navbox generic with image}} |
− | | {{yes2}} <tt>collapsible</tt> || {{yes2}} Right-hand side | + | | {{yes2}} <tt>collapsible</tt> || style="background-color:#ccccff;" | navbox |
− | | {{yes}} | + | | {{yes2}} Right-hand side || {{yes}} || {{yes}} || {{tl|Jewish life}} |
|- | |- | ||
− | |align="left"| {{tl|NavigationBox}} | + | | align="left" | {{tl|NavigationBox}} |
− | | {{no}} | + | | {{no}} || style="background-color:#ccccff;" | navbox |
− | | {{no}} | + | | {{yes2}} Right of title+body || {{no}} || {{no}} || {{tl|EPA}} |
|- | |- | ||
− | |colspan="7" style="border-left-style:hidden; border-right-style:hidden;"| | + | | colspan="7" style="border-left-style:hidden; border-right-style:hidden;"| |
|- | |- | ||
− | |align="left"| {{[[Commons:Template:NavigationBox|Commons:NavigationBox]]}} | + | | align="left" | {{[[Commons:Template:NavigationBox|Commons:NavigationBox]]}} |
− | | {{no}} | + | | {{no}} || style="background-color:#ccccff;" | #ccccff |
− | | {{no}} | + | | {{yes2}} Right of title+body || {{no}} || {{no}} || |
|- | |- | ||
− | |align="left"| {{[[Commons:Template:Dynamic navigation box|Commons:Dynamic navigation box]]}} | + | | align="left" | {{[[Commons:Template:Dynamic navigation box|Commons:Dynamic navigation box]]}} |
− | | {{yes2}} <tt>NavFrame</tt> | + | | {{yes2}} <tt>NavFrame</tt> || style="background-color:#ccccff;" | #ccccff |
− | + | | {{no}} || {{no}} || {{no}} || | |
|- | |- | ||
− | |align="left"| {{[[Commons:Template:Dynamic navigation box with image|Commons:Dynamic navigation box with image]]}} | + | | align="left" | {{[[Commons:Template:Dynamic navigation box with image|Commons:Dynamic navigation box with image]]}} |
− | | {{yes2}} <tt>NavFrame</tt> | + | | {{yes2}} <tt>NavFrame</tt> || style="background-color:#efefef;" | NavHead |
− | | {{no}} | + | | {{yes2}} Upper left || {{no}} || {{no}} || |
+ | |- | ||
+ | | colspan="7" style="border-left-style:hidden; border-right-style:hidden;"| | ||
+ | |- | ||
+ | | colspan="7" align="left" | <sup>†</sup> The background color for the header or title is inherited from the [[CSS]] class: <tt>navbox</tt> uses <span style="background-color:#ccf; color:#000000;">#ccf</span> and <tt>NavHead</tt> uses <span style="background-color:#efefef; color:#000000">#efefef</span> (as defined in [[MediaWiki:Common.css|Common.css]]). All the current navigation templates have a <tt>color</tt> parameter that will override these defaults.</div> | ||
|} | |} | ||
{|class="wikitable" style="margin-left:auto; margin-right:auto; text-align:center; font-size:90%;" | {|class="wikitable" style="margin-left:auto; margin-right:auto; text-align:center; font-size:90%;" | ||
+ | |+ NavFrame div vs. Collapsible table | ||
+ | |- | ||
!style="text-align:left; padding-left:4px;"| {{Tnavbar|Navigational_templates|plain=1}} | !style="text-align:left; padding-left:4px;"| {{Tnavbar|Navigational_templates|plain=1}} | ||
− | ! | + | ! Classes used |
− | ! | + | ! Collapses when !! Custom initial state !! Nesting |
+ | ! Header color !! Font size | ||
|- | |- | ||
− | |align="left" | + | | align="left" | [[Wikipedia:NavFrame|NavFrame div]] |
− | | [[Wikipedia:NavFrame|NavFrame]] | + | | NavFrame, NavHead, NavContent |
− | | 3+ of the same || {{no}} | + | | 3+ of the same || {{no}} || {{yes}} |
+ | | style="background-color:#efefef;" | #efefef || NavFrame: 95%<br>NavHead: 100%<br>NavContent: 100% | ||
|- | |- | ||
− | |align="left"| | + | | align="left" | [[Wikipedia:NavFrame#Collapsible tables|Collapsible table]] |
− | + | | collapsible, navbox | |
− | | 2+ of the same || {{yes}} ||style="background-color:#ccccff;"| #ccccff || | + | | 2+ of the same || {{yes}} || {{no}} |
+ | | style="background-color:#ccccff;"| #ccccff || navbox: 90% | ||
|- | |- | ||
− | |colspan=" | + | | colspan="7" align="left" | Note: [[CSS]] classes are defined in [[MediaWiki:Common.css|Common.css]] and [[JavaScript]] for collapsible templates is located in [[MediaWiki:Common.js|Common.js]]. |
|}<noinclude> | |}<noinclude> | ||
[[Category:Navigational templates| {{PAGENAME}}]] | [[Category:Navigational templates| {{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 20:08, 19 February 2007
Template:Tnavbar | Classes used | Collapses when | Custom initial state | Nesting | Header color | Font size |
---|---|---|---|---|---|---|
NavFrame div | NavFrame, NavHead, NavContent | 3+ of the same | Template:No | Template:Yes | #efefef | NavFrame: 95% NavHead: 100% NavContent: 100% |
Collapsible table | collapsible, navbox | 2+ of the same | Template:Yes | Template:No | #ccccff | navbox: 90% |
Note: CSS classes are defined in Common.css and JavaScript for collapsible templates is located in Common.js. |