Template:Navbox side: Difference between revisions
TeslaRaptor (talk | contribs) m (1 revision) |
(No difference)
|
Revision as of 15:32, 16 April 2009
Name? | |
---|---|
|
Documentation
File:Mbox documentationpage.png |
Documentation transcluded
The documentation for this template is transcluded from Template:Navbox side/doc.
To edit it, please edit the transcluded page.
|
Template for creating simple navboxes which are displayed either left or right of the text within an article (in contrast to standard navboxes based on Template:Navbox and Template:Navbox group which are to be displayed at the bottom of an article). Supports up to 5 headers with 5 subgroups each.
Navboxes created with this template are not collapsible and do not auto-collapse/count towards the auto-collapse limit (see Template:Nb main).
Usage
{{navbox side |name=Template name (without "Template:" prefix); you can use {{subst:PAGENAME}} |title=Title of your navbox |headerA=content of first header |contentA1=content of first row |contentA2=content of second row |contentA3=content of third row |contentA4=content of fourth row |contentA5=content of fifth row |headerB=content of second header etc. (up to headerE and contentE5) Optional: |footer=content of footer, if needed |position=left or right (defaults to right) |nowraplinks=yes/no, don't wrap links in the content fields of this navbox? (defaults to no for this navbox) |width=width of your Navbox (e.g. "300px" or "20%"), absolute value recommended |headeralign=different text-alignment for header rows (left/right/center) if desired; centered by default |contentalign=different text-alignment for content rows (left/right/center) if desired; left-aligned by default |footeralign=different text-alignment for footer row (left/right/center) if desired; centered by default }}
All header and content fields are not displayed if not specified. Maximum content is 5 groups (A up to E) with 5 subgroups (1 up to 5) each.
Examples
Right-aligned (standard)
|
{{navbox side |name={{subst:PAGENAME}} |title=Title of your navbox |headerA=content of first header |contentA1=content of first row |contentA2=content of second row |headerB=content of second header |contentB1=content of third row |contentB2=content of fourth row }}
|
{{navbox side |name={{subst:PAGENAME}} |title=Title of your navbox |position=left |width=300px |headerA=content of first header |contentA1=content of first row |contentA2=content of second row |headerB=content of second header |contentB1=content of third row |contentB2=content of fourth row |footer=example footer }}
Right-aligned, 10 rows, non-standard text-alignments
|
{{navbox side |name={{subst:PAGENAME}} |title=Title of your navbox |position=right |headeralign=left |contentalign=right |footeralign=left |headerA=content of first header |contentA1=content of first row |contentA2=content of second row |contentA3=content of third row |contentA4=content of fourth row |contentA5=content of fifth row |contentB1=content of sixth row |contentB2=content of seventh row |contentB3=content of eighth row |contentB4=content of ninth row |contentB5=content of tenth row |footer=example footer }}