<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Vorlage%3ANavbox_subgroup%2Fdoc</id>
	<title>Vorlage:Navbox subgroup/doc - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Vorlage%3ANavbox_subgroup%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Vorlage:Navbox_subgroup/doc&amp;action=history"/>
	<updated>2026-04-05T23:33:07Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Verzauberte Welten e.V.</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.verzauberte-welten.de/index.php?title=Vorlage:Navbox_subgroup/doc&amp;diff=202&amp;oldid=prev</id>
		<title>mw&gt;Oetterer am 4. Februar 2015 um 10:02 Uhr</title>
		<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Vorlage:Navbox_subgroup/doc&amp;diff=202&amp;oldid=prev"/>
		<updated>2015-02-04T10:02:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&amp;gt;&lt;br /&gt;
{{Navbox suite}}&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Blank template ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Navbox subgroup&lt;br /&gt;
| groupstyle = &lt;br /&gt;
| liststyle  = &lt;br /&gt;
&lt;br /&gt;
| group1 = &lt;br /&gt;
| list1  = &lt;br /&gt;
| group2 = &lt;br /&gt;
| list2  = &lt;br /&gt;
...&lt;br /&gt;
| group20 = &lt;br /&gt;
| list20  = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
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:&lt;br /&gt;
*The border parameter defaults to &amp;quot;child&amp;quot;&lt;br /&gt;
*The group padding defaults to 0.75em on the left/right, and can only be changed with the &amp;lt;code&amp;gt;grouppadding&amp;lt;/code&amp;gt; parameter.  This is done to prevent the [[Internet Explorer box model bug]] from affecting the width of groups.&lt;br /&gt;
Everything else is ''exactly'' the same as {{tl|Navbox}}.&lt;br /&gt;
&lt;br /&gt;
Only the most common parameters are listed below.&lt;br /&gt;
&lt;br /&gt;
=== Cells ===&lt;br /&gt;
:; ''list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;''&lt;br /&gt;
::  (i.e. ''list1'', ''list2'', ... ''list20'') The body of the template, usually a list of links. Format is inline.  At least one ''list'' parameter is required; each additional ''list'' is displayed in a separate row of the table. Each ''list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;'' may be preceded by a corresponding ''group&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;'' parameter, if provided (see below). The background color of the list items (and the entire table) defaults to &amp;lt;code&amp;gt;transparent&amp;lt;/code&amp;gt;, therefore it displays the same background color used in the parent navigation box.&lt;br /&gt;
&lt;br /&gt;
:; ''group&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;''&lt;br /&gt;
:: (i.e. ''group1'', ''group2'', ..., ''group20'') If specified, text appears in a header cell displayed to the left of ''list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;''. If omitted, ''list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;'' uses the full width of the table. The background color defaults to &amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;background:#e6e6ff; color:black;&amp;quot;&amp;gt;#e6e6ff&amp;lt;/span&amp;gt;&amp;lt;/code&amp;gt;, but can be changed via the ''groupstyle'' parameter (see below).&lt;br /&gt;
&lt;br /&gt;
=== Styles ===&lt;br /&gt;
:; ''bodystyle''&lt;br /&gt;
:: Specifies [[wpen:Cascading Style Sheets|CSS]] styles to apply to the template body. Examples:&lt;br /&gt;
::: &amp;lt;code&amp;gt;background:#''nnnnnn'';&amp;lt;/code&amp;gt;&lt;br /&gt;
::: &amp;lt;code&amp;gt;text-align:[''right/center/left/justified''];&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:; ''groupstyle''&lt;br /&gt;
:: CSS styles to apply to the ''group&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;'' cells. This option overrides any styles that are applied to the entire table. Examples:&lt;br /&gt;
::: &amp;lt;code&amp;gt;background:#''nnnnnn'';&amp;lt;/code&amp;gt;&lt;br /&gt;
::: &amp;lt;code&amp;gt;text-align:[''left/center/right''];&amp;lt;/code&amp;gt;&lt;br /&gt;
::: &amp;lt;code&amp;gt;vertical-align:[''top/middle/bottom''];&amp;lt;/code&amp;gt;&lt;br /&gt;
::: &amp;lt;code&amp;gt;white-space:nowrap;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:; ''grouppadding''&lt;br /&gt;
:: CSS style to specify group padding.  Should usually be specified using em units.  It is recommended to leave this parameter alone and use the default padding.  Examples:&lt;br /&gt;
::: &amp;lt;code&amp;gt;grouppadding = 0em 1em;&amp;lt;/code&amp;gt; (1em on left/right, 0em on top/bottom)&lt;br /&gt;
::: &amp;lt;code&amp;gt;grouppadding = 0em 0.5em 0em 1em;&amp;lt;/code&amp;gt; (0em top, 0.5em right, 0em bottom, 1em left)&lt;br /&gt;
&lt;br /&gt;
:; ''liststyle''&lt;br /&gt;
:: CSS styles to apply to all lists. Overridden by the ''oddstyle'' and ''evenstyle'' parameters (if specified) below.&lt;br /&gt;
&lt;br /&gt;
:; ''oddstyle''&lt;br /&gt;
:; ''evenstyle''&lt;br /&gt;
:: CSS styles to apply to the odd-numbered list items (''list1'', ''list3'', etc) or even-numbered list items (''list2'', ''list4'', etc), respectively. Typically used to set background color (&amp;lt;code&amp;gt;background:#''nnnnnn'';&amp;lt;/code&amp;gt;) in order to achieve an alternating background color between odd and even-numbered lists.&lt;br /&gt;
&lt;br /&gt;
:; ''evenodd'' &amp;lt;span style=&amp;quot;font-weight:normal;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;[swap, even, odd, off]&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
:: If set to &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt;, then the automatic striping of even and odd rows is reversed.  Normally, even rows get a light gray background for striping; when this parameter is used, the odd rows receive the gray striping instead of the even rows.  Setting to &amp;lt;code&amp;gt;even&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;odd&amp;lt;/code&amp;gt; sets all rows to have that striping color.  Setting to &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt; disables automatic row striping. NOTE: Due to system limitations, do '''not''' use a semi-colon to close this command. &lt;br /&gt;
&lt;br /&gt;
==Setting the width of groups==&lt;br /&gt;
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 &amp;lt;code&amp;gt;groupwidth&amp;lt;/code&amp;gt; parameter:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;groupwidth = 10em&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An alternative way is to set the &amp;lt;code&amp;gt;groupstyle&amp;lt;/code&amp;gt; parameters to contain the desired width, and the &amp;lt;code&amp;gt;liststyle&amp;lt;/code&amp;gt; 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:&lt;br /&gt;
:&amp;lt;code&amp;gt;groupstyle = width:10em;&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;liststyle = width:auto;&amp;lt;/code&amp;gt;&lt;br /&gt;
*NOTE: For the &amp;lt;code&amp;gt;groupstyle&amp;lt;/code&amp;gt; widths to work, you '''must''' set the &amp;lt;code&amp;gt;liststyle&amp;lt;/code&amp;gt; width to &amp;quot;auto&amp;quot;.&lt;br /&gt;
If you also use the &amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;imageleft&amp;lt;/code&amp;gt; parameters, then you will most likely also need to set their width manually using the &amp;lt;code&amp;gt;imagestyle&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;imageleftstyle&amp;lt;/code&amp;gt; parameters.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
The following is an example of ''Navbox subgroup'' used within a ''Navbox'' template.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;overflow:scroll;&amp;quot;&amp;gt;&lt;br /&gt;
{{Navbox&lt;br /&gt;
| state  = uncollapsed&lt;br /&gt;
| name   = Protected Areas of Colorado&lt;br /&gt;
| title  = Protected Areas of Colorado&lt;br /&gt;
| listclass = hlist&lt;br /&gt;
| group1 = National Park Service&lt;br /&gt;
| list1  = {{Navbox subgroup&lt;br /&gt;
  | group1 = National Parks&lt;br /&gt;
  | list1  =&lt;br /&gt;
*[[Black Canyon of the Gunnison National Park|Black Canyon of the Gunnison]]&lt;br /&gt;
*[[Great Sand Dunes National Park and Preserve|Great Sand Dunes]]&lt;br /&gt;
*[[Mesa Verde National Park|Mesa Verde]]&lt;br /&gt;
*[[Rocky Mountain National Park|Rocky Mountain]]&lt;br /&gt;
  | group2 = National Monuments&lt;br /&gt;
  | list2  =&lt;br /&gt;
*[[Colorado National Monument|Colorado]]&lt;br /&gt;
*[[Florissant Fossil Beds National Monument|Florissant Fossil Beds]]&lt;br /&gt;
*[[Hovenweep National Monument|Hovenweep]]&lt;br /&gt;
*[[Yucca House National Monument|Yucca House]]&lt;br /&gt;
  | group3 = National Historic Sites&lt;br /&gt;
  | list3  =&lt;br /&gt;
*[[Bent's Old Fort National Historic Site|Bent's Old Fort]]&lt;br /&gt;
*[[Sand Creek Massacre National Historic Site|Sand Creek Massacre]]&lt;br /&gt;
  | group4 = National Recreation Area&lt;br /&gt;
  | list4  =&lt;br /&gt;
*[[Curecanti National Recreation Area|Curecanti]]&lt;br /&gt;
  }}&lt;br /&gt;
| group2 = National Forests&lt;br /&gt;
| list2  =&lt;br /&gt;
*[[Arapaho National Forest|Arapaho]]&lt;br /&gt;
*[[Grand Mesa National Forest|Grand Mesa]]&lt;br /&gt;
*[[Gunnison National Forest|Gunnison]]&lt;br /&gt;
*[[Pike National Forest|Pike]]&lt;br /&gt;
*[[Rio Grande National Forest|Rio Grande]]&lt;br /&gt;
*[[Roosevelt National Forest|Roosevelt]]&lt;br /&gt;
*[[Medicine Bow - Routt National Forest|Medicine Bow - Routt]]&lt;br /&gt;
*[[San Isabel National Forest|San Isabel]]&lt;br /&gt;
*[[San Juan National Forest|San Juan]]&lt;br /&gt;
*[[Uncompahgre National Forest|Uncompahgre]]&lt;br /&gt;
*[[White River National Forest|White River]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For the output, please visit [[wpen:{{PAGENAME}}|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Navbox}} – Basic navbox&lt;br /&gt;
* {{tl|Navbox with columns}} – Allows columns instead of groups/lists&lt;br /&gt;
* {{tl|Navbox with collapsible groups}} – Another variation.&lt;br /&gt;
* use the &amp;lt;code&amp;gt;hlist&amp;lt;/code&amp;gt; class.&lt;br /&gt;
&lt;br /&gt;
{{Navigation templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!--Categories--&amp;gt;&lt;br /&gt;
[[Category:Navigational boxes]]&lt;br /&gt;
[[Category:Metatemplates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>mw&gt;Oetterer</name></author>
	</entry>
</feed>