Template:Navbox side/doc: Difference between revisions

From Red Faction Wiki
m (1 revision)
m (2 revisions)
 
(No difference)

Latest revision as of 19:46, 6 July 2009

Template:Documentationpage 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)

 
Title of your navbox
content of first header
content of first row
content of second row
content of second header
content of third row
content of fourth row
{{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
}}

Left-aligned, width set, footer

 
Title of your navbox
content of first header
content of first row
content of second row
content of second header
content of third row
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

 
Title of your navbox
content of first header
content of first row
content of second row
content of third row
content of fourth row
content of fifth row
content of sixth row
content of seventh row
content of eighth row
content of ninth row
content of tenth row
{{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
}}