Differenze tra le versioni di "Template:Navbox"

Da Wikifarmaco.
Riga 1: Riga 1:
{{navbox
+
<noinclude>
| name    = mandatory — name of the template
+
{{Other_languages
| state  = uncollapsed, collapsed, plain, autocollapse (default)
+
|en=Template:Navbox
| title  = mandatory — template header
+
|fr=Template:Navbox
| tstyle  = optional — style of header; i.e. color, background-color, etc.
+
|language_page=en
| gtitleN = optional — title of N-th group of items
 
| styleN  = optional — style; i.e. line-height, font-size, etc.
 
| groupN  = mandatory — list of items
 
 
}}
 
}}
 +
</noinclude>
 +
{{Navboxes
 +
 +
|name = {{{name|}}}
 +
|state = {{{state|}}}
 +
|navbar = {{{navbar|}}}
 +
 +
|bodystyle = background:transparent;  border: 1px solid #aaa; width: 100%;  margin: auto; clear: both; font-size: 88%; text-align: center;  padding: 1px;
 +
|imageleftstyle =
 +
|titlestyle = background: #ccccff; text-align: center;  padding-left: 1em; padding-right: 1em;
 +
|basestyle = background: #ddddff;
 +
|abovestyle = background: #ddddff; text-align: center;  padding-left: 1em; padding-right: 1em;
 +
|belowstyle = background: #ddddff; text-align: center;  padding-left: 1em; padding-right: 1em;
 +
|groupstyle = background: #ddddff; white-space: nowrap; text-align: right; font-weight: bold; padding-left: 1em; padding-right: 1em;
 +
|liststyle = border-color: #fdfdfd; padding:0.25em 0; line-height:1.4em;
 +
|evenstyle = background: #f7f7f7;
 +
|oddstyle = background: transparent;
 +
 +
|title = {{{title|}}}
 +
|above = {{{above|}}}
 +
|below = {{{below|}}}
 +
|image = {{{image|}}}
 +
|imageleft = {{{imageleft|}}}
 +
 +
|group1 = {{{group1|}}}
 +
|group2 = {{{group2|}}}
 +
|group3 = {{{group3|}}}
 +
|group4 = {{{group4|}}}
 +
|group5 = {{{group5|}}}
 +
|group6 = {{{group6|}}}
 +
|group7 = {{{group7|}}}
 +
|group8 = {{{group8|}}}
 +
|group9 = {{{group9|}}}
 +
|group10 = {{{group10|}}}
 +
|group11 = {{{group11|}}}
 +
|group12 = {{{group12|}}}
 +
|group13 = {{{group13|}}}
 +
|group14 = {{{group14|}}}
 +
|group15 = {{{group15|}}}
 +
|group16 = {{{group16|}}}
 +
|group17 = {{{group17|}}}
 +
|group18 = {{{group18|}}}
 +
|group19 = {{{group19|}}}
 +
|group20 = {{{group20|}}}
 +
 +
|list1 = {{{list1|}}}
 +
|list2 = {{{list2|}}}
 +
|list3 = {{{list3|}}}
 +
|list4 = {{{list4|}}}
 +
|list5 = {{{list5|}}}
 +
|list6 = {{{list6|}}}
 +
|list7 = {{{list7|}}}
 +
|list8 = {{{list8|}}}
 +
|list9 = {{{list9|}}}
 +
|list10 = {{{list10|}}}
 +
|list11 = {{{list11|}}}
 +
|list12 = {{{list12|}}}
 +
|list13 = {{{list13|}}}
 +
|list14 = {{{list14|}}}
 +
|list15 = {{{list15|}}}
 +
|list16 = {{{list16|}}}
 +
|list17 = {{{list17|}}}
 +
|list18 = {{{list18|}}}
 +
|list19 = {{{list19|}}}
 +
|list20 = {{{list20|}}}
 +
 +
|group1style = {{{group1style|}}}
 +
|group2style = {{{group2style|}}}
 +
|group3style = {{{group3style|}}}
 +
|group4style = {{{group4style|}}}
 +
|group5style = {{{group5style|}}}
 +
|group6style = {{{group6style|}}}
 +
|group7style = {{{group7style|}}}
 +
|group8style = {{{group8style|}}}
 +
|group9style = {{{group9style|}}}
 +
|group10style = {{{group10style|}}}
 +
|group11style = {{{group11style|}}}
 +
|group12style = {{{group12style|}}}
 +
|group13style = {{{group13style|}}}
 +
|group14style = {{{group14style|}}}
 +
|group15style = {{{group15style|}}}
 +
|group16style = {{{group16style|}}}
 +
|group17style = {{{group17style|}}}
 +
|group18style = {{{group18style|}}}
 +
|group19style = {{{group19style|}}}
 +
|group20style = {{{group20style|}}}
 +
 +
|list1style = {{{list1style|}}}
 +
|list2style = {{{list2style|}}}
 +
|list3style = {{{list3style|}}}
 +
|list4style = {{{list4style|}}}
 +
|list5style = {{{list5style|}}}
 +
|list6style = {{{list6style|}}}
 +
|list7style = {{{list7style|}}}
 +
|list8style = {{{list8style|}}}
 +
|list9style = {{{list9style|}}}
 +
|list10style = {{{list10style|}}}
 +
|list11style = {{{list11style|}}}
 +
|list12style = {{{list12style|}}}
 +
|list13style = {{{list13style|}}}
 +
|list14style = {{{list14style|}}}
 +
|list15style = {{{list15style|}}}
 +
|list16style = {{{list16style|}}}
 +
|list17style = {{{list17style|}}}
 +
|list18style = {{{list18style|}}}
 +
|list19style = {{{list19style|}}}
 +
|list20style = {{{list20style|}}}}}<noinclude>
 +
 +
__NOTOC__
 +
==NavBox==
 +
Can be used to create navigation tables.
 +
 +
 +
====List of links Example====
 +
 +
{{Navbox
 +
 +
|navbar = off
 +
|state = off     
 +
 +
|name  = Name
 +
|title = List of links
 +
|list1  =  {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
}}
 +
 +
<pre>{{Navbox
 +
 +
|navbar = off
 +
|state = off     
 +
 +
|name  = Name
 +
|title = List of links
 +
|list1  =  {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
}}
 +
</pre>
 +
 +
====Grouped Links Example====
 +
{{Navbox
 +
 +
|navbar = off
 +
|state = off     
 +
 +
|name  = Name
 +
|title = Grouped Links
 +
 +
|group1 = Name
 +
|list1  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
 +
|group2 = Name
 +
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
}}
 +
<pre>{{Navbox
 +
 +
|navbar = off
 +
|state = off     
 +
 +
|name  = Name
 +
|title = Grouped Links
 +
 +
|group1 = group 1
 +
|list1  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
 +
|group2 = group 2
 +
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
}}
 +
</pre>
 +
 +
====Sub Grouped list of links Example====
 +
{{Navbox
 +
 +
|navbar = off
 +
|state = off     
 +
 +
|name  = Name
 +
|title = Sub Grouped list of links
 +
 +
|group1 = group 1
 +
|list1  =  {{Navbox subgroup
 +
            |group1 = Sub 1
 +
            |list1  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
 +
            |group2 = Sub 2
 +
            |list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
          }}
 +
 +
|group2 = group 2
 +
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
}}
 +
<pre>{{Navbox
 +
 +
|navbar = off
 +
|state = off     
 +
 +
|name  = Name
 +
|title = Sub Grouped list of links
 +
 +
|group1 = group 1
 +
|list1  =  {{Navbox subgroup
 +
            |group1 = Sub 1
 +
            |list1  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
 +
            |group2 = Sub 2
 +
            |list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
          }}
 +
 +
|group2 = group 2
 +
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
}}
 +
</pre>
 +
 +
====Some more options====
 +
{{Navbox
 +
 +
|navbar = off
 +
|state = off     
 +
 +
|name  = Name
 +
|title = Shown Title
 +
 +
|above = more caption/links
 +
 +
|group1 = Name
 +
|list1  =  {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
 +
|group2 = Name
 +
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
 +
|below = more caption/links
 +
}}
 +
<pre>{{Navbox
 +
 +
|navbar = off
 +
|state = off     
 +
 +
|name  = Name
 +
|title = Shown Title
 +
 +
|above = more caption/links
 +
 +
|group1 = Name
 +
|list1  =  {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
 +
|group2 = Name
 +
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
 +
 +
|below = more caption/links
 +
}}
 +
</pre>
 +
 +
etc...
 +
 +
[[Category:Templates|N]][[Category:Navigation|N]][[Category:Navbox]]</noinclude>

Versione delle 03:47, 28 mar 2014

Template:Other languages

Template:Navboxes


NavBox

Can be used to create navigation tables.


List of links Example

{{#switch:|subgroup|child=</div>|none=|#default=