Template:Navbox collapsible group: Difference between revisions
TeslaRaptor (talk | contribs) m (1 revision) |
TeslaRaptor (talk | contribs) m (1 revision) |
(One intermediate revision by the same user not shown) | |
(No difference)
|
Revision as of 21:24, 3 July 2009
Name? | |
---|---|
|
Documentation
File:Mbox documentationpage.png |
Documentation transcluded
The documentation for this template is transcluded from Template:Navbox collapsible group/doc.
To edit it, please edit the transcluded page.
|
Template for creating navboxes with collapsible groups and subgroups. Supports up to 8 groups with 5 subgroups each. The collapsible groups are collapsed on page-load (an uncollapsed group can be specified, see Usage) and the navbox is displayed at the bottom.
Intended for navboxes with a lot of content, please use Template:Navbox or Template:Navbox group for navboxes with less content.
Navboxes created with this template auto-collapse if there are more than 2 on a page (see Template:Nb main).
Usage
{{navbox collapsible group |name=Template name (without "Template:" prefix); you can use {{subst:PAGENAME}} |title=Title of your navbox |headerA=title of first collapsible group within the navbox |groupA1=name of first row in first collapsible group |contentA1=content of first group row in first collapsible group |groupA2=name of second group row in first collapsible group |contentA2=content of second group row in first collapsible group |headerB=title of second collapsible group within the navbox |groupB1=name of first row in second collapsible group |contentB1=content of first group row in second collapsible group etc. Optional: |footer=Content of footer, if needed |uncollapsed=A, B, C, D, E, F, G, H or none. Let's you specify a group which is not collapsed by default. |headeralign=different text-alignment for header rows (left/right/center) if desired; centered by default |groupalign=different text-alignment for group cells (left/right/center) if desired; centered by default |contentalign=different text-alignment for content cells (left/right/center) if desired; left-aligned by default |footeralign=different text-alignment for footer (left/right/center) if desired; centered by default |nowraplinks=yes/no, whether links should be wrapped (no) or not (yes); defaults to yes }}
All header, group and content fields are not displayed if not specified. If no header is specified, all content rows belonging to it are not displayed. For example, if you set groupA2 and contentA2 but do not set headerA, they will not be shown.
Maximum content is 8 groups (A up to H) with 5 subgroups (1 up to 5) each.
Examples
{{navbox collapsible group |name={{subst:PAGENAME}} |title=Title of your navbox |headerA=Header A |groupA1=First subgroub of A |contentA1=First subgroub content of A |groupA2=Second subgroub of A |contentA2=Second subgroub content of A |headerB=Header B |groupB1=First subgroub of B |contentB1=First subgroub content of B |groupB2=Second subgroub of B |contentB2=Second subgroub content of B }}
results in:
|
{{navbox collapsible group |name={{subst:PAGENAME}} |title=Title of your navbox |headerA=Header A |groupA1=First subgroub of A |contentA1=First subgroub content of A |groupA2=Second subgroub of A |contentA2=Second subgroub content of A |headerB=Header B |groupB1=First subgroub of B |contentB1=First subgroub content of B |groupB2=Second subgroub of B |contentB2=Second subgroub content of B |footer=Footer }}
results in:
|