Template:Navbox

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

| mini

| #default = }} }} }}
Navbox title?
{{#ifeq:empty|empty|| }}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | Content?
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/doc.
To edit it, please edit the transcluded page.

{{#ifexist:Template:Navbox/doc| Template for creating simple navboxes. Navboxes created with this template auto-collapse if there are more than 2 on a page (see Template:Nb main).

Usage

{{navbox
|name=Template name (without "Template:" prefix); you can use {{subst:PAGENAME}}
|title=Title of your navbox
|content=Content of your navbox

Optional:
|footer=Content of footer, if needed
|contentalign=different text-alignment for content row (left/right/center) if desired; centered by default
|footeralign=different text-alignment for footer (left/right/center) if desired; centered by default
}}

Examples

without footer

{{navbox
|name={{subst:PAGENAME}}
|title=Example navbox
|content=Example content
}}

results in:

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

| mini

| #default = }} }} }}
Example navbox
{{#ifeq:empty|empty|| }}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | Example content
yes|2|3}}" class="{{#ifeq:yes|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:{{#ifeq:center|empty|center|center }};" | empty

with footer

{{navbox
|name={{subst:PAGENAME}}
|title=Example navbox
|content=Example content
|footer=Example footer
}}

results in:

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

| mini

| #default = }} }} }}
Example navbox
{{#ifeq:Example footer|empty|| }}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:;" | Example content
yes|2|3}}" class="{{#ifeq:yes|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:{{#ifeq:center|empty|center|center }};" | Example footer

All options

{{navbox
|name={{subst:PAGENAME}}
|title=Example navbox
|contentalign=right
|footeralign=left
|content=Example content
|footer=Example footer
}}

results in:

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

| mini

| #default = }} }} }}
Example navbox
{{#ifeq:Example footer|empty|| }}
yes|2|3}}" class="fallout_navbox_cell" style="text-align:right;" | Example content
yes|2|3}}" class="{{#ifeq:yes|yes|fallout_navbox_footer|fallout_navbox_header}}" style="text-align:{{#ifeq:left|empty|center|left }};" | Example footer

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