Changes

Jump to navigation Jump to search

Template:Infobox/doc

1,534 bytes added, 20:18, 28 May 2013
</pre>
Note that omitting the {{para|title}} parameter, and not including any text preceding the embedded infobox, may result in spurious blank table rows, creating gaps in the visual presentation.
 
===Subboxes===
An alternative method for embedding is to use {{para|subbox|yes}}, which removes the outer border from the infobox, but preserves the interior structure. One feature of this approach is that the parent and child boxes need not have the same structure, and the label and data fields are not aligned between the parent and child boxes.
{{Infobox
| headerstyle = background-color:#eee;
| labelstyle = background-color:#eee;
| header1 = Main 1
| header2 = Main 2
| data3 = {{Infobox|subbox=yes
| headerstyle = background-color:#ccc;
| labelstyle = background-color:#ddd;
| header1 = Sub 3-1
| header2 = Sub 3-2
| label3 = Label 3-3
| data3 = Data 3-3
}}
| data4 = {{Infobox|subbox=yes
| labelstyle = background-color:#ccc;
| label1 = Label 4-1
| data1 = Data 4-1
}}
| label5 = Label 5
| data5 = Data 5
| header6 = Main 6
}}
<pre style="overflow:auto">
{{Infobox
| headerstyle = background-color:#eee;
| labelstyle = background-color:#eee;
| header1 = Main 1
| header2 = Main 2
| data3 = {{Infobox|subbox=yes
| headerstyle = background-color:#ccc;
| labelstyle = background-color:#ddd;
| header1 = Sub 3-1
| header2 = Sub 3-2
| label3 = Label 3-3
| data3 = Data 3-3
}}
| data4 = {{Infobox|subbox=yes
| labelstyle = background-color:#ccc;
| label1 = Label 4-1
| data1 = Data 4-1
}}
| label5 = Label 5
| data5 = Data 5
| header6 = Main 6
}}
</pre>
=== Full blank syntax ===
Anonymous user

Navigation menu