Editing will be locked on December 31st, 2017. All content and images will still be available for the time being. Thank you for 10 years!

Difference between revisions of "Template:Navbox"

From Userpedia
Jump to: navigation, search
(Now using the mediawiki standard for collapsing elements)
Line 1: Line 1:
<table class="navbox collapsible autocollapse" align={{{align|center}}} style="margin: 0 auto 0 auto; padding: 0.2em; color:black; border: 1px solid black; background:{{{bodybg|#fdfdfd;}}} width:{{{width|100%}}}; vertical-align:middle;">
+
<table class="navbox mw-collapsible" align={{{align|center}}} style="margin: 0 auto 0 auto; padding: 0.2em; color:black; border: 1px solid black; background:{{{bodybg|#fdfdfd;}}} width:{{{width|100%}}}; vertical-align:middle;">
 
<tr>
 
<tr>
 
<th style="background:{{{titlebgcolor|#ccccff}}}; padding-left:1em; padding-right:1em; text-align:center;" colspan=2>{{{title|{{PAGENAME}}}}}</th>
 
<th style="background:{{{titlebgcolor|#ccccff}}}; padding-left:1em; padding-right:1em; text-align:center;" colspan=2>{{{title|{{PAGENAME}}}}}</th>

Revision as of 08:59, 20 January 2013


Usage

{{Navbox|
|title=Navigation Template
|group1=Example 1
|list1=Lorem Ipsum
|group2=Example 2
|list2=Lorem Ipsum 2: Electric Boogaloo
|group3=Example 3
|list3=Lorem Ipsum 3: Revenge of the Electric Boogaloo
}}
  • Colors may be customized by using the bodybgcolor, titlebgcolor, groupbgcolor, and listbgcolor parameters. All colors are allowed, from color names to their hex value.
  • If you think the navbox is too wide, use the width parameter to adjust it. It defaults to 100%.
    • Likewize, the group column's width can be adjusted. It defaults to 15em.
  • To make a bullet point, you can use either &middot;, &bull; or a simple hyphen. -

Why a standard navbox?

This is my attempt to make a standard navigation box template for people who make them, in order to simplify creation of other navboxes. As this may be implemented in many high-use templates after initial work on this template is complete, major changes to this template should be voted on first.

Discussion, criticism, suggestions should of course be taken to this talk page.