User:Sardanaphalus/Template shells
From Wikipedia, the free encyclopedia
Navbox groupstyle/liststyle (ompare MediaWiki:Common.css)
|groupstyle = padding:0.2em 1.0em; line-height:1.1em; <!--reduces wide gap between wrapped groupname lines--> |liststyle = padding:0.4em 0; line-height:1.4em; <!--otherwise lists can appear to form continuous whole-->
Contents |
[edit] Template:Infobox parameters
above | |
image caption |
|
label1 | data1 |
---|---|
label2 | data2 |
data4, no label4 | |
header5 | |
label6 | data6 |
below | |
{{Infobox |name = <!--If not specified, no v-d-e links--> |bodystyle = <!--Styles applied to the infobox as a whole (e.g. width)--> |title = <!--Use for title above the infobox--> |titlestyle = |above = <!--Can use for title inside infobox--> |abovestyle = |image = |imagestyle = |caption = |captionstyle = |labelstyle = |datastyle = |headerstyle = |label[n] = |data[n] = |header[n] = <!--Use to convert row[n] into a subheading--> |belowstyle = |below =
[edit] Example Navbox subgroups across group names
|
[edit] Ambox formatting
{{Ambox |type = notice |text = <div style="line-height:1.3em; padding:0.25em 0 0.5em 0;">''' '''</div><div style="font-size:90%; line-height:1.2em; padding:0 0 0.25em 0.25em;"> </div>
[edit] Subst:d {{Navigational templates}}
collapsible | Header color† | Image | Groups | Style (body) parameter/s |
Examples | |
---|---|---|---|---|---|---|
{{Navbox}} | collapsible | navbox | Left/right of body | Yes | Yes | {{USCongress}}, {{Apollo program}} |
{{Navbox with columns}} | collapsible | navbox | Left/right of columns | No | Yes | {{Current U.S. Senators}}, {{UK subdivisions}} |
† The background color for the header or title is inherited from the class listed below. The templates have titlestyle parameters that can be used to override the default. |
Type | CSS classes | Collapses when | Custom initial state |
Nesting | Default header color |
Font size |
---|---|---|---|---|---|---|
Collapsible tables | collapsible | 2 or more autocollapse on page | Yes | Yes | #ccf | 90% |
Extend {{collapsible option}} to handle {{collapsible option|default=}}...?