765,429
edits
(copying text from wowwiki, who in turn took it from en.wikipedia) |
m (Robot: Cosmetic changes) |
||
Line 2: | Line 2: | ||
== Usage == | == Usage == | ||
Please remove the parameters that are left blank. The template currently supports up to 10 groups/lists but more can be added if needed. | Please remove the parameters that are left blank. The template currently supports up to 10 groups/lists but more can be added if needed. You should use a minimum of two groups/lists; otherwise, use {{t|Navbox}} instead. | ||
<pre>{{Navbox with collapsible groups | <pre>{{Navbox with collapsible groups | ||
Line 32: | Line 32: | ||
This template shares many common parameters with its sister templates {{t|Navbox}} and {{t|Navbox with columns}}. The common parameters are marked with a cross<sup>'''†'''</sup>. Please refer to the documentation of {{t|Navbox}} for more in depth descriptions and examples of those parameters. | This template shares many common parameters with its sister templates {{t|Navbox}} and {{t|Navbox with columns}}. The common parameters are marked with a cross<sup>'''†'''</sup>. Please refer to the documentation of {{t|Navbox}} for more in depth descriptions and examples of those parameters. | ||
===Setup parameters=== | === Setup parameters === | ||
:;name<sup>†</sup> | :;name<sup>†</sup> | ||
::The name of the template. The name of this template, for example, is "Navbox with collapsible groups". | ::The name of the template. The name of this template, for example, is "Navbox with collapsible groups". | ||
Line 45: | Line 45: | ||
::Possible values are <code>child</code>, <code>none</code>, and the default value of blank. Set to <code>child</code> if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{t|Navbox}}, the columns of a {{t|Navbox with columns}}, or a list area of {{t|Navbox with collapsible groups}}. See {{t|Navbox}} for more information and examples. | ::Possible values are <code>child</code>, <code>none</code>, and the default value of blank. Set to <code>child</code> if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{t|Navbox}}, the columns of a {{t|Navbox with columns}}, or a list area of {{t|Navbox with collapsible groups}}. See {{t|Navbox}} for more information and examples. | ||
===Basic data parameters=== | === Basic data parameters === | ||
:;'''''title'''''<sup>†</sup> | :;'''''title'''''<sup>†</sup> | ||
::The title of the template, displayed centered in the titlebar at the top of the template. | ::The title of the template, displayed centered in the titlebar at the top of the template. | ||
Line 61: | Line 61: | ||
::Text or other elements to appear below the groups/lists. | ::Text or other elements to appear below the groups/lists. | ||
===Group/list parameters=== | === Group/list parameters === | ||
:; ''group<sub>n</sub>''<sup>†</sup> | :; ''group<sub>n</sub>''<sup>†</sup> | ||
:: The title of each section. | :: The title of each section. | ||
Line 83: | Line 83: | ||
:: An image to appear in the list<sub>n</sub> content area on the left side. | :: An image to appear in the list<sub>n</sub> content area on the left side. | ||
===Style parameters=== | === Style parameters === | ||
:;''bodystyle''<sup>†</sup> | :;''bodystyle''<sup>†</sup> | ||
::CSS style/s to apply to the entire template | ::CSS style/s to apply to the entire template | ||
Line 121: | Line 121: | ||
== Examples == | == Examples == | ||
===Basic example=== | === Basic example === | ||
<pre style="overflow:scroll;"> | <pre style="overflow:scroll;"> | ||
{{Navbox with collapsible groups | {{Navbox with collapsible groups | ||
Line 169: | Line 169: | ||
}} | }} | ||
===Nesting other Navbox forms=== | === Nesting other Navbox forms === | ||
This example shows {{t|Navbox}}, {{t|Navbox with collapsible groups}} and {{t|Navbox with columns}} all working together. Press the edit button for the section to view the code. Note that each of the child navboxes has the first parameter set to <code>child</code> | This example shows {{t|Navbox}}, {{t|Navbox with collapsible groups}} and {{t|Navbox with columns}} all working together. Press the edit button for the section to view the code. Note that each of the child navboxes has the first parameter set to <code>child</code> | ||
{{Navbox with collapsible groups | {{Navbox with collapsible groups |