Editing Template:Navbox subgroup/doc

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{Intricate template}}
+
{{Esoteric}}
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
{{Navbox suite}}
 
{{Navbox suite}}
This template is designed to be used with {{tl|Navbox}} or other [[Wikipedia:Navigation templates|navigation template]]s that allow creating lists of links with groups headers or titles. This template allows the creation of subgroups that can be assigned to a list item within {{tl|Navbox}}. A subgroup may contain up to 20 list items.
+
This template is designed to be used with {{tl|Navbox}} or other [[Wikipedia:Navigational templates|navigational template]]s that allow creating lists of links with groups headers or titles. This template allows the creation of subgroups that can be assigned to a list item within {{tl|Navbox}}. A subgroup may contain up to 20 list items.
  
 
== Blank template ==
 
== Blank template ==
Line 22: Line 22:
  
 
== Parameters ==
 
== Parameters ==
This template employs all parameters of {{tl|Navbox}}.  Please see the documentation there for more complete descriptions.  In fact, the only differences between this template and {{tl|Navbox}} are as follows:
+
This template employs all parameters of {{t1|Navbox}}.  Please see the documentation there for more complete descriptions.  In fact, the only differences between this template and {{t1|Navbox}} are as follows:
 
*The border parameter defaults to "child"
 
*The border parameter defaults to "child"
 
*The group padding defaults to 0.75em on the left/right, and can only be changed with the <code>grouppadding</code> parameter.  This is done to prevent the [[Internet Explorer box model bug]] from affecting the width of groups.
 
*The group padding defaults to 0.75em on the left/right, and can only be changed with the <code>grouppadding</code> parameter.  This is done to prevent the [[Internet Explorer box model bug]] from affecting the width of groups.
Everything else is ''exactly'' the same as {{tl|Navbox}}.
+
Everything else is ''exactly'' the same as {{t1|Navbox}}.
  
 
Only the most common parameters are listed below.
 
Only the most common parameters are listed below.
Line 65: Line 65:
  
 
==Setting the width of groups==
 
==Setting the width of groups==
If multiple {{tl|Navbox subgroup}} templates are used inside of a parent {{tl|Navbox}}, it generally looks better if the width of the groups matches up.  In order to do this, one must set the <code>groupwidth</code> parameter:
+
If multiple {{t1|Navbox subgroup}} templates are used inside of a parent {{t1|Navbox}}, it generally looks better if the width of the groups matches up.  In order to do this, one must set the <code>groupwidth</code> parameter:
  
 
:<code>groupwidth = 10em</code>
 
:<code>groupwidth = 10em</code>
  
An alternative way is to set the <code>groupstyle</code> parameters to contain the desired width, and the <code>liststyle</code> parameters to have width:auto (due to HTML/CSS reasons).  For example, place the following code in each {{tl|Navbox subgroup}} to adjust the widths:
+
An alternative way is to set the <code>groupstyle</code> parameters to contain the desired width, and the <code>liststyle</code> parameters to have width:auto (due to HTML/CSS reasons).  For example, place the following code in each {{t1|Navbox subgroup}} to adjust the widths:
 
:<code>groupstyle = width:10em;</code>
 
:<code>groupstyle = width:10em;</code>
 
:<code>liststyle = width:auto;</code>
 
:<code>liststyle = width:auto;</code>
Line 75: Line 75:
 
If you also use the <code>image</code> or <code>imageleft</code> parameters, then you will most likely also need to set their width manually using the <code>imagestyle</code> and <code>imageleftstyle</code> parameters.
 
If you also use the <code>image</code> or <code>imageleft</code> parameters, then you will most likely also need to set their width manually using the <code>imagestyle</code> and <code>imageleftstyle</code> parameters.
  
==Example==
+
==Examples==
 +
=== Example 1 ===
 
The following is an example of ''Navbox subgroup'' used within a ''Navbox'' template.
 
The following is an example of ''Navbox subgroup'' used within a ''Navbox'' template.
  
 
{{Navbox
 
{{Navbox
 
| state  = uncollapsed
 
| state  = uncollapsed
| name  = Navbox subgroup/doc
+
| name  = Protected Areas of Colorado
 
| title  = Protected Areas of Colorado
 
| title  = Protected Areas of Colorado
 
| listclass = hlist
 
| listclass = hlist
Line 161: Line 162:
 
*[[Uncompahgre National Forest|Uncompahgre]]
 
*[[Uncompahgre National Forest|Uncompahgre]]
 
*[[White River National Forest|White River]]
 
*[[White River National Forest|White River]]
 +
}}
 +
</pre>
 +
 +
=== Example 2 ===
 +
This example implements horizontal group headings by assigning the headings to <code>list1</code> and <code>list3</code> and the links to <code>list2</code> and <code>list4</code>), then using <code>list1style</code> and <code>list3style</code> to set the background color of the headings.
 +
 +
{{Navbox
 +
| state = expanded
 +
| name  = Roman Emperors
 +
| title = Roman Emperors
 +
| listclass = hlist
 +
| group1 = Crisis 235 AD - 284 AD
 +
| list1  =
 +
*[[Maximinus Thrax]]
 +
*[[Gordian I]]
 +
*[[Gordian II]]
 +
*[[Pupienus]] and [[Balbinus]]
 +
*[[Gordian III]]
 +
*[[Philip the Arab]]
 +
*[[Decius]]
 +
*[[Trebonianus Gallus]]
 +
*[[Aemilianus]]
 +
*[[Valerian (emperor)|Valerian]]
 +
*[[Gallienus]]
 +
*[[Claudius II]]
 +
*[[Quintillus]]
 +
*[[Aurelian]]
 +
*[[Marcus Claudius Tacitus]]
 +
*[[Florianus]]
 +
*[[Marcus Aurelius Probus|Probus]]
 +
*[[Carus]]
 +
*[[Numerian]]
 +
*[[Carinus]]
 +
| group2 = Dominate
 +
| list2  =
 +
  {{Navbox subgroup
 +
  |list1style = background:#ddf;
 +
  |list1 = '''284 AD - 395 AD'''
 +
  |list2 =
 +
*[[Diocletian]]
 +
*[[Maximian]]
 +
*[[Constantius Chlorus|Constantius I]]
 +
*[[Galerius]]
 +
*[[Flavius Valerius Severus|Severus II]]
 +
*[[Maxentius]]
 +
*[[Maximinus]]
 +
*[[Licinius]]
 +
*[[Constantine I]]
 +
*[[Constantine II (emperor)|Constantine II]]
 +
*[[Constans|Constans I]]
 +
*[[Constantius II]]
 +
*[[Julian the Apostate]]
 +
*[[Jovian (Emperor)|Jovian]]
 +
*[[Valentinian I]]
 +
*[[Valens]]
 +
*[[Gratian]]
 +
*[[Valentinian II]]
 +
*[[Eugenius]]
 +
*[[Theodosius I]]
 +
  |list3style = background:#ddf;
 +
  |list3 = '''Western Empire (393 AD - 476 AD)'''
 +
  |list4 =
 +
*[[Honorius (emperor)|Honorius]]
 +
*[[Constantius III]]
 +
*[[Joannes]]
 +
*[[Valentinian III]]
 +
*[[Petronius Maximus]]
 +
*[[Avitus]]
 +
*[[Majorian]]
 +
*[[Libius Severus]]
 +
*[[Anthemius]]
 +
*[[Olybrius]]
 +
*[[Glycerius]]
 +
*[[Julius Nepos]]
 +
*[[Romulus Augustus]]
 +
  }}
 +
}}
 +
 +
<pre style="overflow:scroll;">
 +
{{Navbox
 +
| state = expanded
 +
| name  = Roman Emperors
 +
| title = Roman Emperors
 +
| listclass = hlist
 +
| group1 = Crisis 235 AD - 284 AD
 +
| list1  =
 +
*[[Maximinus Thrax]]
 +
*[[Gordian I]]
 +
*[[Gordian II]]
 +
*[[Pupienus]] and [[Balbinus]]
 +
*[[Gordian III]]
 +
*[[Philip the Arab]]
 +
*[[Decius]]
 +
*[[Trebonianus Gallus]]
 +
*[[Aemilianus]]
 +
*[[Valerian (emperor)|Valerian]]
 +
*[[Gallienus]]
 +
*[[Claudius II]]
 +
*[[Quintillus]]
 +
*[[Aurelian]]
 +
*[[Marcus Claudius Tacitus]]
 +
*[[Florianus]]
 +
*[[Marcus Aurelius Probus|Probus]]
 +
*[[Carus]]
 +
*[[Numerian]]
 +
*[[Carinus]]
 +
| group2 = Dominate
 +
| list2  =
 +
  {{Navbox subgroup
 +
  |list1style = background:#ddf;
 +
  |list1 = '''284 AD - 395 AD'''
 +
  |list2 =
 +
*[[Diocletian]]
 +
*[[Maximian]]
 +
*[[Constantius Chlorus|Constantius I]]
 +
*[[Galerius]]
 +
*[[Flavius Valerius Severus|Severus II]]
 +
*[[Maxentius]]
 +
*[[Maximinus]]
 +
*[[Licinius]]
 +
*[[Constantine I]]
 +
*[[Constantine II (emperor)|Constantine II]]
 +
*[[Constans|Constans I]]
 +
*[[Constantius II]]
 +
*[[Julian the Apostate]]
 +
*[[Jovian (Emperor)|Jovian]]
 +
*[[Valentinian I]]
 +
*[[Valens]]
 +
*[[Gratian]]
 +
*[[Valentinian II]]
 +
*[[Eugenius]]
 +
*[[Theodosius I]]
 +
  |list3style = background:#ddf;
 +
  |list3 = '''Western Empire (393 AD - 476 AD)'''
 +
  |list4 =
 +
*[[Honorius (emperor)|Honorius]]
 +
*[[Constantius III]]
 +
*[[Joannes]]
 +
*[[Valentinian III]]
 +
*[[Petronius Maximus]]
 +
*[[Avitus]]
 +
*[[Majorian]]
 +
*[[Libius Severus]]
 +
*[[Anthemius]]
 +
*[[Olybrius]]
 +
*[[Glycerius]]
 +
*[[Julius Nepos]]
 +
*[[Romulus Augustus]]
 +
  }}
 
}}
 
}}
 
</pre>
 
</pre>
  
 
== See also ==
 
== See also ==
* {{tl|Navbox}} Basic navbox
+
* {{t1|Navbox}} &ndash; Basic navbox
* {{tl|Navbox with columns}} Allows columns instead of groups/lists
+
* {{t1|Navbox with columns}} &ndash; Allows columns instead of groups/lists
* {{tl|Navbox with collapsible groups}} Another variation.
+
* {{t1|Navbox with collapsible groups}} &ndash; Another variation.
* {{strikethrough|[[Wikipedia:Line-break handling]] The how-to guide about how to handle word wraps (line breaks) on Wikipedia, such as the wrapping of the link lists used in navboxes.}} Deprecated; use the <code>hlist</code> class.
+
* [[Wikipedia:Line break handling]] &ndash; The how-to guide about how to handle word wraps (line breaks) on Wikipedia, such as the wrapping of the link lists used in navboxes.
* {{strikethrough|{{tl|Nowrap begin}} The recommended format for adding bullets, pipes, or dashes between list items.}} Deprecated; use the <code>hlist</code> class.
+
* {{t1|Nowrap begin}} &ndash; The recommended format for adding bullets, pipes, or dashes between list items. The page describes how to go about using them with proper wrapping.
* {{tl|Nobold}} To display text at normal font-weight within a context where the default font-weight is bold, e.g. header cells in tables.
+
* {{t1|Nobold}} &ndash; To display text at normal font-weight within a context where the default font-weight is bold, e.g. header cells in tables.
  
 
{{Navigation templates}}
 
{{Navigation templates}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>
 
<!--Categories-->
 
<!--Categories-->
 
[[Category:Navigational boxes| ]]
 
[[Category:Navigational boxes| ]]
 
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
 
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
}}</includeonly>
+
 
 +
<!--Other languages-->
 +
[[ar:قالب:Navbox subgroup]]
 +
[[be-x-old:Шаблён:Навігацыйная сабтабліца]]
 +
[[bg:Шаблон:Навигационен шаблон подгрупа]]
 +
[[ca:Plantilla:Navbox subgroup]]
 +
[[eo:Ŝablono:Navigilo subgrupo]]
 +
[[fr:Modèle:Méta palette de navigation sous-groupe]]
 +
[[hsb:Předłoha:Nawitabela z podskupinami]]
 +
[[hy:Կաղապար:Navbox subgroup]]
 +
[[ko:틀:안내/중첩]]
 +
[[ku:Şablon:Navbox subgroup]]
 +
[[id:Templat:Navbox subgroup]]
 +
[[ja:Template:Navbox subgroup]]
 +
[[ka:თარგი:ნავდაფა ქვეჯგუფი]]
 +
[[pt:Predefinição:Navbox subgroup]]
 +
[[ro:Format:Subgrup casetă de navigare]]
 +
[[ru:Шаблон:Navbox subgroups]]
 +
[[simple:Template:Navbox generic subgroup]]
 +
[[sl:Predloga:Navpolje podskupina]]
 +
[[tr:Şablon:Dolaşım iç]]
 +
[[uk:Шаблон:Navbox subgroup]]
 +
[[zh:Template:Navbox subgroup]]
 +
</includeonly>

Please note that all contributions to Ava Zinn Wiki are considered to be released under the a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License (see Ava Zinn Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Preview page with this template

Copy and paste: – — ° ′ ″ ≈ ≠ ≤ ≥ ± − × ÷ ← → · §   Sign your posts on talk pages: ~~~~   Cite your sources: <ref></ref>


{{}}   {{{}}}   |   []   [[]]   [[Category:]]   #REDIRECT [[]]   &nbsp;   <s></s>   <sup></sup>   <sub></sub>   <code></code>   <pre></pre>   <blockquote></blockquote>   <ref></ref> <ref name="" />   {{Reflist}}   <references />   <includeonly></includeonly>   <noinclude></noinclude>   {{DEFAULTSORT:}}   <nowiki></nowiki>   <!-- -->   <span class="plainlinks"></span>


Symbols: ~ | ¡ ¿ † ‡ ↔ ↑ ↓ • ¶   # ∞   ‘ ’ “ ” ‹› «»   ¤ ₳ ฿ ₵ ¢ ₡ ₢ $ ₫ ₯ € ₠ ₣ ƒ ₴ ₭ ₤ ℳ ₥ ₦ № ₧ ₰ £ ៛ ₨ ₪ ৳ ₮ ₩ ¥   ♠ ♣ ♥ ♦   ♭ ♯ ♮   © ® ™
Latin: A a Á á À à  â Ä ä Ǎ ǎ Ă ă Ā ā à ã Å å Ą ą Æ æ Ǣ ǣ   B b   C c Ć ć Ċ ċ Ĉ ĉ Č č Ç ç   D d Ď ď Đ đ Ḍ ḍ Ð ð   E e É é È è Ė ė Ê ê Ë ë Ě ě Ĕ ĕ Ē ē Ẽ ẽ Ę ę Ẹ ẹ Ɛ ɛ Ǝ ǝ Ə ə   F f   G g Ġ ġ Ĝ ĝ Ğ ğ Ģ ģ   H h Ĥ ĥ Ħ ħ Ḥ ḥ   I i İ ı Í í Ì ì Î î Ï ï Ǐ ǐ Ĭ ĭ Ī ī Ĩ ĩ Į į Ị ị   J j Ĵ ĵ   K k Ķ ķ   L l Ĺ ĺ Ŀ ŀ Ľ ľ Ļ ļ Ł ł Ḷ ḷ Ḹ ḹ   M m Ṃ ṃ   N n Ń ń Ň ň Ñ ñ Ņ ņ Ṇ ṇ Ŋ ŋ   O o Ó ó Ò ò Ô ô Ö ö Ǒ ǒ Ŏ ŏ Ō ō Õ õ Ǫ ǫ Ọ ọ Ő ő Ø ø Œ œ   Ɔ ɔ   P p   Q q   R r Ŕ ŕ Ř ř Ŗ ŗ Ṛ ṛ Ṝ ṝ   S s Ś ś Ŝ ŝ Š š Ş ş Ș ș Ṣ ṣ ß   T t Ť ť Ţ ţ Ț ț Ṭ ṭ Þ þ   U u Ú ú Ù ù Û û Ü ü Ǔ ǔ Ŭ ŭ Ū ū Ũ ũ Ů ů Ų ų Ụ ụ Ű ű Ǘ ǘ Ǜ ǜ Ǚ ǚ Ǖ ǖ   V v   W w Ŵ ŵ   X x   Y y Ý ý Ŷ ŷ Ÿ ÿ Ỹ ỹ Ȳ ȳ   Z z Ź ź Ż ż Ž ž   ß Ð ð Þ þ Ŋ ŋ Ə ə
Greek: Ά ά Έ έ Ή ή Ί ί Ό ό Ύ ύ Ώ ώ   Α α Β β Γ γ Δ δ   Ε ε Ζ ζ Η η Θ θ   Ι ι Κ κ Λ λ Μ μ   Ν ν Ξ ξ Ο ο Π π   Ρ ρ Σ σ ς Τ τ Υ υ   Φ φ Χ χ Ψ ψ Ω ω   {{Polytonic|}}
Cyrillic: А а Б б В в Г г   Ґ ґ Ѓ ѓ Д д Ђ ђ   Е е Ё ё Є є Ж ж   З з Ѕ ѕ И и І і   Ї ї Й й Ј ј К к   Ќ ќ Л л Љ љ М м   Н н Њ њ О о П п   Р р С с Т т Ћ ћ   У у Ў ў Ф ф Х х   Ц ц Ч ч Џ џ Ш ш   Щ щ Ъ ъ Ы ы Ь ь   Э э Ю ю Я я   ́
IPA: t̪ d̪ ʈ ɖ ɟ ɡ ɢ ʡ ʔ   ɸ β θ ð ʃ ʒ ɕ ʑ ʂ ʐ ç ʝ ɣ χ ʁ ħ ʕ ʜ ʢ ɦ   ɱ ɳ ɲ ŋ ɴ   ʋ ɹ ɻ ɰ   ʙ ⱱ ʀ ɾ ɽ   ɫ ɬ ɮ ɺ ɭ ʎ ʟ   ɥ ʍ ɧ   ʼ   ɓ ɗ ʄ ɠ ʛ   ʘ ǀ ǃ ǂ ǁ   ɨ ʉ ɯ   ɪ ʏ ʊ   ø ɘ ɵ ɤ   ə ɚ   ɛ œ ɜ ɝ ɞ ʌ ɔ   æ   ɐ ɶ ɑ ɒ   ʰ ʱ ʷ ʲ ˠ ˤ ⁿ ˡ   ˈ ˌ ː ˑ ̪   {{IPA|}}