Şablon:Subsidebar bodystyle: Ferqê çımraviyarnayışan

Content deleted Content added
Perra Newiye: <!----Categories where indicated at the bottom of this page, please; interwikis to Wikidata.----> {{redirect3|noquotes|Template:Subsidebar bodystyle}} This template provides th...
 
No edit summary
 
Line 1:
border-collapse: collapse; border-spacing: 0px; border:none; width:100%; margin:0px; font-size: 100%; clear:none; float:none;<noinclude>
<!----Categories where indicated at the bottom of this page, please; interwikis to Wikidata.---->
{{documentation|content=
{{redirect3|noquotes|[[Template:Subsidebar bodystyle]]}}
This template is used in conjunction with {{tl|infobox}} or {{tl|sidebar}} to create a borderless subbox, which can be embedded in another infobox or sidebar. This is similar in spirit to {{tl|navbox subgroup}}, which does the same thing for {{tl|navbox}}. It is slightly different from the "child" option for {{tl|infobox}}, since it still creates the outer table.
 
== Example 1 ==
This template provides the correct [[Cascading Style Sheets|styling]] with which to embed an {{tl|Infobox}} or {{tl|Sidebar}} within another template (usually another infobox or sidebar).
 
== Usage ==
 
===with Infobox===
{{Infobox/Sidebar/etc <&#33;--(i.e. the parent template)-->
........
| dataN/contentN/etc =
'''''{{Infobox'''''
'''''| bodystyle = {{subinfobox bodystyle{{))}}'''''
........
}}
........
}}
 
(Technical note: Using {{tl|subinfobox bodystyle}} rather than [[Template:Infobox#Embedding|Infobox's ''child'' parameter]] to embed an {{tl|Infobox}} means that the outermost table used to contain the (otherwise typical stand-alone) Infobox is retained.)
 
===with Sidebar===
When using {{nobold|{{tlf|subinfobox bodystyle}}}} (as {{tl|subsidebar bodystyle}}) to embed a {{tl|Sidebar}}, the embedded Sidebar's ''navbar'' parameter (see [[Template:Sidebar#Other parameters|documentation]]) also needs to be set to "off" ({{para|navbar|off}}):
 
{{Sidebar/Infobox/etc <&#33;--(i.e. the parent template)-->
........
| contentN/dataN/etc =
'''''{{((}}Sidebar |navbar=off'''''
'''''| style = {{subsidebar bodystyle{{))}}'''''
........
}}
........
}}
 
== Examples ==
 
===Infobox within Infobox===
{{Infobox
| label1 = label1
| data1 = data1
| data2 = {{infobox
| bodystyle = {{infobox subbox bodystyle}}
{{Infobox
| bodystyle = {{subinfobox bodystyle}}
| label1 = label1a
| data1 = data1a
}}
| data2 = ''etc''
}}
| label3 = label3
| data3 = data3
| data4 = ''etc''
}}
<pre style="overflow:auto;">
{{Infobox
| label1 = label1
| data1 = data1
| data2 = {{infobox
| bodystyle = {{infobox subbox bodystyle}}
{{Infobox
| bodystyle = {{subinfobox bodystyle}}
| label1 = label1a
| data1 = data1a
}}
| data2 = ''etc''
}}
| label3 = label3
| data3 = data3
| data4 = ''etc''
}}
</pre>
== Example 2 ==
 
===Infobox within Sidebar===
{{Sidebar
| heading1 = heading1
| content1 = content1
| heading2 = heading2
| content2 = {{infobox
| bodystyle = {{infobox subbox bodystyle}}
{{Infobox
| bodystyle = {{subinfobox bodystyle}}
| label1 = label2a
| data1 = data2a
| label2 = label2b
| data2 = data2b
| data3 = ''etc''
}}
| heading3 = heading3
| content3 = content3
| content4 = ''etc''
}}
<pre style="overflow: auto;">
{{Sidebar
| heading1 = heading1
| content1 = content1
| heading2 = heading2
| content2 = {{infobox
| bodystyle = {{infobox subbox bodystyle}}
{{Infobox
| bodystyle = {{subinfobox bodystyle}}
| label1 = label2a
| data1 = data2a
| label2 = label2b
| data2 = data2b
| data3 = ''etc''
}}
| heading3 = heading3
| content3 = content3
| content4 = ''etc''
}}
</pre>
 
== Example 3 ==
===Infobox3cols within Infobox===
{{Infobox
| label1 = label1
| data1 = data1
| data2 = {{infobox3cols
| bodystyle = {{infobox subbox bodystyle}}
{{Infobox3cols
| label1 = label1a
| bodystyle = {{subinfobox bodystyle}}
| label1data1a = label1data1aa
| data1adata1b = data1adata1ab
| data1bdata1c = data1bdata1ac
}}
| data1c = data1c
| label2 = label2
| data2a = data2a
| data2c = data2c
| data3 = ''etc''
}}
| label3 = label3
| data3 = data3
| data4 = ''etc''
}}
<pre style="overflow:auto;">
{{Infobox
| label1 = label1
| data1 = data1
| data2 = {{infobox3cols
| bodystyle = {{infobox subbox bodystyle}}
{{Infobox3cols
| bodystyle = {{subinfobox bodystyle}}
| label1 = label1a
| data1a = data1aa
| data1b = data1ab
| data1c = data1ac
}}
| label2 = label2a
| data2a = data2aa
| data2c = data2ac
| data3 = ''etc''
}}
| label3 = label3
| data3 = data3
| data4 = ''etc''
}}
</pre>
== Example 4 ==
 
===Sidebar within Sidebar===
{{Sidebar
| heading1 = heading1
| content1 = content1
| heading2 = heading2
| content2 = {{sidebar|navbar=off
| bodystyle = {{Subsidebar bodystyle}}
{{Sidebar |navbar=off
| style = {{subsidebar bodystyle}}
| heading1 = heading2a
| content1 = content2a
| heading2 = heading2b
| content2 = content2b
| content3 = ''etc''
}}
| heading3 = heading3
| content3 = content3
| content4 = ''etc''
}}
<pre style="overflow: auto;">
{{Sidebar
| heading1 = heading1
| content1 = content1
| heading2 = heading2
| content2 = {{sidebar|navbar=off
| bodystyle = {{Subsidebar bodystyle}}
{{Sidebar |navbar=off
| style = {{subsidebar bodystyle}}
| heading1 = heading2a
| content1 = content2a
| heading2 = heading2b
| content2 = content2b
| content3 = ''etc''
}}
| heading3 = heading3
| content3 = content3
| content4 = ''etc''
}}
</pre>
}}</noinclude>
 
== TemplateData ==
{{TemplateDataHeader}}
<templatedata>
{
"description": "This template provides the correct styling with which to embed an {{Infobox}} or {{Sidebar}} within another template (usually another infobox or sidebar).",
"params": {}
}
</templatedata>
 
== See also ==
* {{tl|Navbox subgroup}}, a similar kind of template used with {{tl|Navbox}}.
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!----Categories below this line, please; interwikis to Wikidata.---->
[[Category:Wikipedia utility templates]]<!-- requires focusing -->
}}</includeonly>