This template provides the correct styling with which to embed an {{Infobox}} or {{Sidebar}} within another template (usually another infobox or sidebar).
{{Infobox/Sidebar/etc <!--(i.e. the parent template)-->
........
| dataN/contentN/etc =
{{Infobox| bodystyle = {{subinfobox bodystyle}}
........
}}
........
}}
(Technical note: Using {{subinfobox bodystyle}} rather than Infobox's child parameter to embed an {{Infobox}} means that the outermost table used to contain the (otherwise typical stand-alone) Infobox is retained.)
with Sidebar
When using {{subinfobox bodystyle}} (as {{subsidebar bodystyle}}) to embed a {{Sidebar}}, the embedded Sidebar's navbar parameter (see documentation) also needs to be set to "off" (|navbar=off):
{{Sidebar/Infobox/etc <!--(i.e. the parent template)-->
........
| contentN/dataN/etc =
{{Sidebar |navbar=off| style = {{subsidebar bodystyle}}
........
}}
........
}}
This template provides the correct styling with which to embed an {{Infobox}} or {{Sidebar}} within another template (usually another infobox or sidebar).