Difference between revisions of "Template:Navbox"
Jump to navigation
Jump to search
Rand Linden (talk | contribs) |
Rand Linden (talk | contribs) |
||
Line 1: | Line 1: | ||
<onlyinclude><div id="box" style="float: {{{float|right}}}; background:{{{title-bg-color|#96C5AF}}}; margin-left: 10px; max-width: {{{width|30%}}};{{{1|}}}"> | <onlyinclude><div id="box" style="float: {{{float|right}}}; background:{{{title-bg-color|#96C5AF}}}; margin-left: 10px; max-width: {{{width|30%}}};{{{1|}}}"> | ||
<div style="text-align: center; font-size: 16px; padding: 5px; color: {{{title-color|black}}}">'''{{{title}}}'''</div> | <div style="text-align: center; font-size: 16px; padding: 5px; color: {{{title-color|black}}}">'''{{{title}}}'''</div> | ||
<div style="padding: 0.5em; background:{{{content-bg-color|#ffffff}}}; color:{{{content-color|black}}}"> | <div style="padding: 0.5em; background:{{{content-bg-color|#ffffff}}}; color:{{{content-color|black}}}" class="navbox-content"> | ||
{{{content}}} | {{{content}}} | ||
</div></div></onlyinclude> | </div></div></onlyinclude> |
Revision as of 10:55, 14 December 2010
{{{title}}}
This is a simple template intended for use in creating navigation templates. It takes two parameters:
- title - Title of the navigation group. This can also be a link using normal wiki syntax.
- content - Text to appear in the navigation template "box". The expectation is that this is generally a bulleted list; though it can be in any text.
- content-bg-color (optional) - Background color of content area (default is white)
- content-color (optional) - color of content text (default is black)
- title-bg-color (optional) - Specify a color if you want to use something other than the default blue-green color.
- title-color: color of title text; default is black.
- float (optional) - CSS float position. Default is right.
- width (optional) - max width. Default is 30%
Usage
{{Navbox |title=your title |content=your content }}
Tip: See the Style Guide for Navbox usage relevant to the Knowledge Base. |
Example
Input:
{{Navbox |title=[[User:Magellan Linden|Magellan]]'s Discoveries |content=*[[Nautilus City investigation|Nautilus City]] **[[Magellan_and_Gaeta|Gaeta]] **[[LDPW]] *[[Agni]] *[[Aditi]] }}
Output:
Magellan's Discoveries