Template:Navbox side

From Red Faction Wiki
Jump to navigationJump to search
{{#switch:{{#switch:{{{Position}}}|left|right={{{Position}}}|#default=right}}|right|left=
 
|bottom|#default=}}
{{#switch:{{{showedit}}}|no= |yes|#default={{#ifeq:empty|empty|Name?|{{#switch: | full=

| mini

| #default = }} }} }}
Navbox title?
{{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerA}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerB}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerC}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerD}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerE}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE5}}}
yes|2|3}}" class="{{#ifeq:yes|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:{{#ifeq:center|empty|center|center }};" | empty

Documentation

60x55px
Documentation transcluded
The documentation for this template is transcluded from Template:Navbox side/doc.
To edit it, please edit the transcluded page.

{{#ifexist:Template:Navbox side/doc| 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)

{{#switch:{{#switch:{{{Position}}}|left|right={{{Position}}}|#default=right}}|right|left=
 
|bottom|#default=}}
{{#switch:{{{showedit}}}|no= |yes|#default={{#ifeq:Navbox side/doc|empty|Name?|{{#switch: | full=

| mini

| #default = }} }} }}
Title of your navbox
{{#ifeq:content of first header|empty|| }} {{#ifeq:content of first row|empty|| }} {{#ifeq:content of second row|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:content of second header|empty|| }} {{#ifeq:content of third row|empty|| }} {{#ifeq:content of fourth row|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | content of first header
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | content of first row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | content of second row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | content of second header
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | content of third row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | content of fourth row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerC}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerD}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerE}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE5}}}
yes|2|3}}" class="{{#ifeq:yes|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:{{#ifeq:center|empty|center|center }};" | empty
{{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

{{#switch:{{#switch:left|left|right=left|#default=right}}|right|left=
 
|bottom|#default=}}
{{#switch:{{{showedit}}}|no= |yes|#default={{#ifeq:Navbox side/doc|empty|Name?|{{#switch: | full=

| mini

| #default = }} }} }}
Title of your navbox
{{#ifeq:content of first header|empty|| }} {{#ifeq:content of first row|empty|| }} {{#ifeq:content of second row|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:content of second header|empty|| }} {{#ifeq:content of third row|empty|| }} {{#ifeq:content of fourth row|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:example footer|empty|| }}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | content of first header
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | content of first row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | content of second row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentA5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | content of second header
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | content of third row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | content of fourth row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentB5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerC}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentC5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerD}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentD5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:;" | {{{headerE}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | {{{contentE5}}}
yes|2|3}}" class="{{#ifeq:yes|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:{{#ifeq:center|empty|center|center }};" | example footer
{{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

{{#switch:{{#switch:right|left|right=right|#default=right}}|right|left=
 
|bottom|#default=}}
{{#switch:{{{showedit}}}|no= |yes|#default={{#ifeq:Navbox side/doc|empty|Name?|{{#switch: | full=

| mini

| #default = }} }} }}
Title of your navbox
{{#ifeq:content of first header|empty|| }} {{#ifeq:content of first row|empty|| }} {{#ifeq:content of second row|empty|| }} {{#ifeq:content of third row|empty|| }} {{#ifeq:content of fourth row|empty|| }} {{#ifeq:content of fifth row|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:content of sixth row|empty|| }} {{#ifeq:content of seventh row|empty|| }} {{#ifeq:content of eighth row|empty|| }} {{#ifeq:content of ninth row|empty|| }} {{#ifeq:content of tenth row|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:empty|empty|| }} {{#ifeq:example footer|empty|| }}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:left;" | content of first header
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of first row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of second row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of third row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of fourth row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of fifth row
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:left;" | {{{headerB}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of sixth row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of seventh row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of eighth row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of ninth row
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | content of tenth row
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:left;" | {{{headerC}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentC1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentC2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentC3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentC4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentC5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:left;" | {{{headerD}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentD1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentD2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentD3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentD4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentD5}}}
yes|2|3}}" class="{{#ifeq:no|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:left;" | {{{headerE}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentE1}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentE2}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentE3}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentE4}}}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | {{{contentE5}}}
yes|2|3}}" class="{{#ifeq:yes|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:{{#ifeq:left|empty|center|left }};" | example footer
{{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
}}

|Template:Navbox side/doc does not exist yet. Please click on the link to create it.}}