Template:Navbox: Difference between revisions

From Red Faction Wiki
m (1 revision)
 
m (1 revision)
 
(3 intermediate revisions by the same user not shown)
(No difference)

Latest revision as of 19:18, 6 July 2009

Name?
Navbox title?

Documentation

File:Mbox documentationpage.png
Documentation transcluded
The documentation for this template is transcluded from Template:Navbox/doc.
To edit it, please edit the transcluded page.

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:

Example navbox

with footer

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

results in:

Example navbox

All options

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

results in:

Example navbox