Template:Navbox: Difference between revisions

From RoDpedia
Jump to navigation Jump to search
Skace (talk | contribs)
No edit summary
Skace (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<!--
<includeonly><!--


Please do not edit without discussion first as this is a VERY complex template.
Please do not edit without discussion first as this is a VERY complex template.
Line 238: Line 238:
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!--
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!--


--><noinclude>
--></includeonly><noinclude>{{documentation}}</noinclude>
 
== Usage ==
Please remove the parameters that are left blank.
 
<pre style="overflow:scroll;">{{Navbox
|name    = {{subst:PAGENAME}}
|title  =
|image  =
|above  =
 
|group1  =
|list1  =
 
|group2  =
|list2  =
...
|group20 =
|list20  =
 
|below  =
}}</pre>
</noinclude>

Latest revision as of 12:32, 26 August 2008

[edit]

Documentation

Usage

Please remove the parameters that are left blank.

{{Navbox
|name    = {{subst:PAGENAME}}
|title   = 
|image   = 
|above   = 

|group1  = 
|list1   = 

|group2  = 
|list2   = 
 ...
|group20 = 
|list20  = 

|below   = 
}}

Parameter list

The navbox uses lowercase parameter names, as shown in the box (at right). The mandatory name and title will create a one-line box if other parameters are omitted.

Notice "group1" (etc.) is optional, as are sections named "above/below".
The basic and most common parameters are as follows (see below for the full list):

name - the name of the template.
title - text in the title bar, such as: [[Widget stuff]].
state - autocollapse, uncollapsed, collapsed: the status of box expansion, where "autocollapse" hides stacked navboxes automatically.
titlestyle - a CSS style for the title-bar, such as: background:gray;
groupstyle - a CSS style for the group-cells, such as: background:#eee;
image - an optional right-side image (coded as the whole image tag: [[Image:XX.jpg|90px]] ).
imageleft - an optional left-side image (code the same was as the "image" parameter).
above - text to appear above the group/list section (could be a list of overall wikilinks).
groupn - the left-side text before list-n (if group-n omitted, list-n starts at left of box).
listn - text listing wikilinks, often separated by middot templates, such as: [[A]]{{·}} [[B]]
below - optional text to appear below the group/list section.