Шаблон:Subinfobox bodystyle/док — разлика између измена
| [непроверена измена] | [непроверена измена] |
м (Бот: исправљена преусмерења; козметичке измене) |
Нема описа измене |
||
| Ред 1: | Ред 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!----Categories where indicated at the bottom of this page, please; interwikis to Wikidata.----> | <!----Categories where indicated at the bottom of this page, please; interwikis to Wikidata.----> | ||
This template provides the correct [[ | 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 == | == Usage == | ||
=== with Infobox === | ===with Infobox=== | ||
{{Infobox/Sidebar/etc <!--(i.e. the parent template)--> | {{Infobox/Sidebar/etc <!--(i.e. the parent template)--> | ||
........ | ........ | ||
| Ред 20: | Ред 19: | ||
}} | }} | ||
(Technical note: Using {{tl|subinfobox bodystyle}} rather than [[ | (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 === | ===with Sidebar=== | ||
When using {{nobold|{{tlf|subinfobox bodystyle}}}} (as {{tl|subsidebar bodystyle}}) to embed a {{tl|Sidebar}}, the embedded Sidebar's ''navbar'' parameter (see [[ | 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 <!--(i.e. the parent template)--> | {{Sidebar/Infobox/etc <!--(i.e. the parent template)--> | ||
| Ред 39: | Ред 38: | ||
== Examples == | == Examples == | ||
=== Infobox within Infobox === | ===Infobox within Infobox=== | ||
{{Infobox | {{Infobox | ||
| label1 = label1 | | label1 = label1 | ||
| Ред 71: | Ред 70: | ||
</pre> | </pre> | ||
=== Infobox within Sidebar === | ===Infobox within Sidebar=== | ||
{{Sidebar | {{Sidebar | ||
| heading1 = heading1 | | heading1 = heading1 | ||
| Ред 109: | Ред 108: | ||
</pre> | </pre> | ||
=== Infobox3cols within Infobox === | ===Infobox3cols within Infobox=== | ||
{{Infobox | {{Infobox | ||
| label1 = label1 | | label1 = label1 | ||
| Ред 151: | Ред 150: | ||
</pre> | </pre> | ||
=== Sidebar within Sidebar === | ===Sidebar within Sidebar=== | ||
{{Sidebar | {{Sidebar | ||
| heading1 = heading1 | | heading1 = heading1 | ||
| Ред 186: | Ред 185: | ||
| content3 = content3 | | content3 = content3 | ||
| content4 = ''etc'' | | content4 = ''etc'' | ||
}} | |||
</pre> | |||
===Collapsed Infobox within Infobox=== | |||
{{Infobox | |||
| label1 = label1 | |||
| data1 = data1 | |||
| data2 = | |||
{{Infobox | |||
| bodyclass = mw-collapsible mw-collapsed | |||
| abovestyle = font-size:88%; padding-left:3em; | |||
| above = {{resize|114%|Collapsed information}} | |||
| 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 | |||
| bodyclass = mw-collapsible mw-collapsed | |||
| abovestyle = font-size:88%; padding-left:2em; | |||
| above = {{resize|114%|Collapsed information}} | |||
| bodystyle = {{subinfobox bodystyle}} | |||
| label1 = label1a | |||
| data1 = data1a | |||
| data2 = ''etc'' | |||
}} | |||
| label3 = label3 | |||
| data3 = data3 | |||
| data4 = ''etc'' | |||
}} | }} | ||
</pre> | </pre> | ||
== TemplateData == | == TemplateData == | ||
{{ | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| Ред 198: | Ред 235: | ||
</templatedata> | </templatedata> | ||
<includeonly>{{ | <includeonly>{{Sandbox other| | ||
| <!----Categories below this line, please; interwikis to Wikidata.----> | | <!----Categories below this line, please; interwikis to Wikidata.----> | ||
[[ | [[Category:Wikipedia utility templates]]<!-- requires focusing --> | ||
[[ | [[Category:Template implementation details]] | ||
}}</includeonly> | }}</includeonly> | ||
Верзија на датум 7. јануар 2021. у 19:01
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
This template provides the correct styling with which to embed an {{Infobox}} or {{Sidebar}} within another template (usually another infobox or sidebar).
Usage
with Infobox
{{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}}
........
}}
........
}}
Examples
Infobox within Infobox
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{Infobox
| label1 = label1
| data1 = data1
| data2 =
{{Infobox
| bodystyle = {{subinfobox bodystyle}}
| label1 = label1a
| data1 = data1a
| data2 = ''etc''
}}
| label3 = label3
| data3 = data3
| data4 = ''etc''
}}
Infobox within Sidebar
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{Sidebar
| heading1 = heading1
| content1 = content1
| heading2 = heading2
| content2 =
{{Infobox
| bodystyle = {{subinfobox bodystyle}}
| label1 = label2a
| data1 = data2a
| label2 = label2b
| data2 = data2b
| data3 = ''etc''
}}
| heading3 = heading3
| content3 = content3
| content4 = ''etc''
}}
Infobox3cols within Infobox
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{Infobox
| label1 = label1
| data1 = data1
| data2 =
{{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''
}}
Sidebar within Sidebar
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{Sidebar
| heading1 = heading1
| content1 = content1
| heading2 = heading2
| content2 =
{{Sidebar |navbar=off
| style = {{subsidebar bodystyle}}
| heading1 = heading2a
| content1 = content2a
| heading2 = heading2b
| content2 = content2b
| content3 = ''etc''
}}
| heading3 = heading3
| content3 = content3
| content4 = ''etc''
}}
Collapsed Infobox within Infobox
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{Infobox
| label1 = label1
| data1 = data1
| data2 =
{{Infobox
| bodyclass = mw-collapsible mw-collapsed
| abovestyle = font-size:88%; padding-left:2em;
| above = {{resize|114%|Collapsed information}}
| bodystyle = {{subinfobox bodystyle}}
| label1 = label1a
| data1 = data1a
| data2 = ''etc''
}}
| label3 = label3
| data3 = data3
| data4 = ''etc''
}}
TemplateData
TemplateData за Subinfobox bodystyle
This template provides the correct styling with which to embed an {{Infobox}} or {{Sidebar}} within another template (usually another infobox or sidebar).
| Параметар | Опис | Врста | Статус | |||
|---|---|---|---|---|---|---|
| Параметри нису наведени | ||||||