From WikiChip
Difference between revisions of "Template:Box"

(Make div not flow underneath float right guide box)
 
Line 1: Line 1:
<includeonly><div class="mw-collapsible {{#ifeq: {{{collapsed|true}}} | true | mw-collapsed | }}" style="margin-top:15px; overflow:hidden; border: solid 1px black;">
+
<includeonly><div class="mw-collapsible {{#ifeq: {{{collapsed|true}}} | true | mw-collapsed | }}" style="margin-top:15px; clear:both; border: solid 1px black;">
 
<div style="border: none; text-align:center; background: #ccf; color: black; font-weight: bold;">{{{header}}}</div>
 
<div style="border: none; text-align:center; background: #ccf; color: black; font-weight: bold;">{{{header}}}</div>
 
<div class="mw-collapsible-content" style="background: #F9F9F9;">{{{body}}}</div>
 
<div class="mw-collapsible-content" style="background: #F9F9F9;">{{{body}}}</div>
 
</div></includeonly><noinclude>{{Box/Doc}}
 
</div></includeonly><noinclude>{{Box/Doc}}
 
</noinclude><noinclude>[[Category:templates]]</noinclude>
 
</noinclude><noinclude>[[Category:templates]]</noinclude>

Latest revision as of 17:18, 21 September 2017

Template documentation


A template to create box.

Usage[edit]

{{Box
|collapsed    = true/false
|header       = header name
|body         = content
}}

Example

{{Box
|header       = {{Navbar|mini=1|Example|style=padding-left: 10px;float:left;}} Example
|body         = This is the content
}}
{{Box
|collapsed    = false
|header       = {{Navbar|mini=1|Example|style=padding-left: 10px;float:left;}} Example
|body         = This is the content
}}
v · d · e Example
This is the content


v · d · e Example
This is the content