Vorlage:Navigation templates: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
imported>Chochopk
(give another example for Dynamic navigation box with image)
K (152 Versionen von wikivoyage:Vorlage:Navigation_templates importiert)
 
(116 dazwischenliegende Versionen von 53 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{| class="wikitable" style="margin-left:auto; margin-right:auto; width:auto; text-align:center; font-size:90%;"
{| class="wikitable hlist" 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}}
|+ <span style="font-size: 130%;">Navigation templates comparison</span>
! collapsible !! Image
|- style="line-height: 10pt;"
! Groups !! Default header&nbsp;color !! Style parameter !! Example
! 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
|-
|-
|align="left"| {{tl|Navigation}}
| style="text-align: left;" | {{tl|Navbox}}
| {{yes2}} <tt>NavFrame</tt>    || {{no}}
| collapsible || style="background: #ccf;" | navbox
| {{no}}  ||style="background-color:#efefef;"| #efefef || {{no}}  || {{tl|OPEC}}
| Left/right of body || Yes || Yes ||
 
|-
|-
|align="left"| {{tl|Navigation with image}}
| style="text-align: left;" | {{tl|Navbox with collapsible groups}}
| {{yes2}} <tt>NavFrame</tt>    || {{yes2}} Left/right of body
| collapsible || style="background: #ccf;" | navbox
| {{no}}  ||style="background-color:#efefef;"| #efefef || {{no}}  || {{tl|Cetaceans}}
| Left/right of body and/or in each list || Yes || Yes ||
 
|-
|-
|align="left"| {{tl|Dynamic navigation box}}
| style="text-align: left;" | {{tl|Navbox with columns}}
| {{yes2}} <tt>collapsible</tt> || {{no}}
| collapsible || style="background: #ccf;" | navbox
| {{no}}  ||style="background-color:#ccccff;"| #ccccff || {{yes}} || {{tl|CSUHeads}}
| Left/right of columns || No || Yes ||
 
|-
|-
|align="left"| {{tl|Dynamic navigation box with image}}
| style="text-align: left;" | {{tl|Navbox years}}
| {{yes2}} <tt>NavFrame</tt>    || {{yes2}} Upper left
| collapsible || style="background: #ccf;" | navbox
| {{no}}  ||style="background-color:#efefef;"| #efefef || {{no}}  || {{tl|Cities and towns in Ostalb (district)}}
| No || No || No ||
|-
 
|align="left"| {{tl|Navbox generic}}
| {{yes2}} <tt>collapsible</tt> || {{no}}
| {{yes}} ||style="background-color:#ccccff;"| #ccccff || {{yes}} || {{tl|Dilbert}}
|-
|align="left"| {{tl|Navbox generic with image}}
| {{yes2}} <tt>collapsible</tt> || {{yes2}} Right-hand side
| {{yes}} ||style="background-color:#ccccff;"| #ccccff || {{yes}} ||
|-
|align="left"| {{tl|NavigationBox}}
| {{no}}                        || {{yes2}} Right of header+body
| {{no}}  ||style="background-color:#ccccff;"| #ccccff || {{no}}  || {{tl|EPA}}
|-
|align="left"| {{tl|Navigation no hide}}
| {{no}}                        || {{no}}
| {{no}}  ||style="background-color:#eee;"   | #eee    || {{no}}  ||
|-
|colspan="7"|
|-
|align="left"| {{[[Commons:Template:NavigationBox|Commons:NavigationBox]]}}
| {{no}}                        || {{yes2}} Right of header+body
| {{no}}  ||style="background-color:#ccccff;"| #ccccff || {{no}}  ||
|-
|align="left"| {{[[Commons:Template:Dynamic navigation box|Commons:Dynamic navigation box]]}}
| {{yes2}} <tt>NavFrame</tt>    || {{no}}
| {{no}}  ||style="background-color:#ccccff;"| #ccccff || {{no}}  ||
|-
|align="left"| {{[[Commons:Template:Dynamic navigation box with image|Commons:Dynamic navigation box with image]]}}&nbsp;
| {{yes2}} <tt>NavFrame</tt>    || {{yes2}} Upper left
| {{no}}  ||style="background-color:#efefef;"| #efefef || {{no}}  ||
|}
|}


{|class="wikitable" style="margin-left:auto; margin-right: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}}
|+ <span style="font-size: 130%;">Collapsible attributes</span>
! CSS class
|- style="line-height: 10pt;"
! collapses when<sup>†</sup> !! custom initial&nbsp;state !! Nesting  
! Type !! CSS classes !! Javascript !! Collapses when !! Custom <br /> initial&nbsp;state !! Nesting
|-
|-
|align="left"| <tt>NavFrame</tt>
| align="left" | [[:w:en:Help:Collapsing|Collapsible tables]]
| [[Wikipedia:NavFrame|NavFrame]]
| collapsible
| 3+ of the same || {{no}}  || {{yes}}
| Defined in [[MediaWiki:Common.js|Common.js]]
|-
| 2 or more autocollapse on page || Yes || Yes
|align="left"| <tt>collapsible</tt>
| navbox, [[Wikipedia:NavFrame#Collapsible tables|collapsible]]
| 2+ of the same || {{yes}} || {{no}}
|-
|colspan="5" align="left"| <small>† For the technically minded, see [[MediaWiki:Common.js]].</small>
|}<noinclude>
|}<noinclude>
 
[[Kategorie:Vorlagen:Dokumentation]]
[[Category:Navigational templates| {{PAGENAME}}]]
</noinclude>
</noinclude>

Aktuelle Version vom 27. Januar 2023, 07:22 Uhr

Navigation templates comparison
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
{{Navbox years}} collapsible navbox No No No
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