Difference between revisions of "Template:Collapsible box"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(added padding settings)
Line 1: Line 1:
<includeonly><onlyinclude><div class="toccolours mw-collapsible {{#ifeq:{{{collapse|true}}}|true|mw-collapsed}}" style="width:{{{width|auto}}}; overflow:auto; display:inline-block; padding:{{{padding|5px}}};">
<includeonly><onlyinclude><div class="toccolours mw-collapsible {{#ifeq:{{{collapse|true}}}|true|mw-collapsed}}" style="width:{{{width|auto}}}; overflow:auto; display:inline-block; padding:{{{padding|5px}}};{{{style-box|}}};">
{{#if:{{{title|}}}|<div style="font-weight:bold;line-height:1.6;">{{{title|}}}</div>}}
{{#if:{{{title|}}}|<div style="font-weight:bold;line-height:1.6;">{{{title|}}}</div>}}
<div class="mw-collapsible-content">
<div class="mw-collapsible-content" style="{{{style-content|}}}">
{{{1|}}}
{{{1|}}}
</div></div></includeonly></onlyinclude><noinclude>
</div></div></includeonly></onlyinclude><noinclude>
Line 8: Line 8:
<pre>{{Collapsible box|width=400px|title=Title|Collapsed text|collapse=false}}</pre>
<pre>{{Collapsible box|width=400px|title=Title|Collapsed text|collapse=false}}</pre>
{{Collapsible box|width=400px|title=Title|Collapsed text|collapse=false}}
{{Collapsible box|width=400px|title=Title|Collapsed text|collapse=false}}
<pre>{{Collapsible box|width=400px|title=Title|style-box=margin:50px;background-color:lightblue|style-content=font-family:Cooper Black, Consolas|Collapsed text|collapse=false}}</pre>
{{Collapsible box|width=400px|title=Title|style-box=margin:50px;background-color:lightblue|style-content=font-family:Cooper Black, Consolas|Collapsed text|collapse=false}}
</noinclude>
</noinclude>

Revision as of 18:35, 21 September 2020

{{Collapsible box|width=400px|title=Title|Collapsed text}}
Title

Collapsed text

{{Collapsible box|width=400px|title=Title|Collapsed text|collapse=false}}
Title

Collapsed text

{{Collapsible box|width=400px|title=Title|style-box=margin:50px;background-color:lightblue|style-content=font-family:Cooper Black, Consolas|Collapsed text|collapse=false}}
Title

Collapsed text