Difference between revisions of "Template:Collapsible boxes"

From Worms Knowledge Base

Jump to: navigation, search
(code fix)
Line 1: Line 1:
<includeonly>{{#ifeq: {{#lc:{{{border|}}}}}|no||<div class="toccolours" style="padding: {{{border|5px}}};">}}<!--
+
<includeonly>{{#ifeq: {{lc:{{{border|}}}}}|no||<div class="toccolours" style="padding: {{{border|5px}}};">}}<!--
  
 
-->{{#if: {{{title1|}}}{{{1|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf; font-size: 110%;">{{{title1|{{{1}}}}}}</th></tr>
 
-->{{#if: {{{title1|}}}{{{1|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf; font-size: 110%;">{{{title1|{{{1}}}}}}</th></tr>
Line 31: Line 31:
 
<tr><td style="font-size: 90%;">{{{text10|{{{20}}}}}}</td></tr></table>}}<!--
 
<tr><td style="font-size: 90%;">{{{text10|{{{20}}}}}}</td></tr></table>}}<!--
  
-->{{#ifeq: {{#lc:{{{border|}}}}}|no||</div>}}</includeonly><noinclude>
+
-->{{#ifeq: {{lc:{{{border|}}}}}|no||</div>}}</includeonly><noinclude>
 
{{Collapsible boxes|{{{title1}}}|{{{text1}}}|{{{title2}}}|{{{text2}}}|...|...|<nowiki>{{{</nowiki>title<sub>n</sub><nowiki>}}}</nowiki>|<nowiki>{{{</nowiki>text<sub>n</sub><nowiki>}}}</nowiki>}}
 
{{Collapsible boxes|{{{title1}}}|{{{text1}}}|{{{title2}}}|{{{text2}}}|...|...|<nowiki>{{{</nowiki>title<sub>n</sub><nowiki>}}}</nowiki>|<nowiki>{{{</nowiki>text<sub>n</sub><nowiki>}}}</nowiki>}}
 +
----
 +
===Note===
 +
The thickness of the blue border can be adjusted by using the ''border'' parameter: <code>border=5px</code>
 +
 +
To completely remove the border, use <code>border=no</code> .
 
</noinclude>
 
</noinclude>

Revision as of 14:08, 18 December 2009


Note

The thickness of the blue border can be adjusted by using the border parameter: border=5px

To completely remove the border, use border=no .

Personal tools