User:Datumizer/Sandbox/Vertbox: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<div class="infobox" style="font-size:100%;width:16em;padding:0em;text-align:left;"> |
<div class="infobox" style="font-size:100%;width:16em;padding:0em;text-align:left;"> |
||
{{#if:{{{image|}}}|<div style="text-align:center;padding:0.15em;margin:0.15em;">{{{image}}}</div> |
{{#if:{{{image|}}}|<div style="text-align:center;padding:0.15em;margin:0.15em;">{{{image}}}</div>}} |
||
{{#if:{{{title|}}}|<div style="font-weight:bold;background-color:#ccccff;text-align:center;padding:0.15em;margin:0.15em;">{{{title}}}</div> |
{{#if:{{{title|}}}|<div style="font-weight:bold;background-color:#ccccff;text-align:center;padding:0.15em;margin:0.15em;">{{{title}}}</div>}} |
||
{{#if:{{{list1|}}}|{{#if:{{{group1|}}}|<div class="NavFrame collapsed" style="border:none;padding:0em;margin:0.15em;font-size:100%;"> |
{{#if:{{{list1|}}}|{{#if:{{{group1|}}}|<div class="NavFrame collapsed" style="border:none;padding:0em;margin:0.15em;font-size:100%;"> |
||
<div class="NavHead">{{{group1}}}</div>}} |
<div class="NavHead">{{{group1}}}</div>}} |
Revision as of 01:40, 10 February 2009
Parameters
The navbox uses lowercase parameter names. The mandatory name and title will create a one-line box if other parameters are omitted. Notice "group1" (etc.) is optional.
The basic and most common parameters are as follows:
name
— the name of the template.title
— text in the title bar, such as: [[Widget stuff]].state
— the status of box expansion, where "autocollapse" hides stacked navboxes automatically. Can beautocollapse
,uncollapsed
orcollapsed
. The default iscollapsed
.focus
— forces the group with the same number to have anuncollapsed
state while leaving the other groups alone.bgcolor
— the background color of header cells.image
— an optional top-side image (coded as the whole image tag: [[Image:XX.jpg|90px]] ).groupn
— the top-side text before list-n.listn
— text listing wikilinks, often separated by bullets.
Subgroups
You can create subgroups of items that behave much like the main groups. You do this by using {{User:SharkD/Sandbox/Vertbox subgroup}} within the listn
items. The syntax is more or less the same, except that there are much fewer parameters.