Difference between revisions of "Template:Collapsible boxes"

From Worms Knowledge Base

Jump to: navigation, search
m (description)
m (change font size to 95% from 90%)
 
Line 2: Line 2:
  
 
-->{{#if: {{{title1|}}}{{{1|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title1|{{{1}}}}}}</th></tr>
 
-->{{#if: {{{title1|}}}{{{1|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title1|{{{1}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text1|{{{2}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text1|{{{2}}}}}}</td></tr></table>}}<!--
  
 
-->{{#if: {{{title2|}}}{{{3|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title2|{{{3}}}}}}</th></tr>
 
-->{{#if: {{{title2|}}}{{{3|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title2|{{{3}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text2|{{{4}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text2|{{{4}}}}}}</td></tr></table>}}<!--
  
 
-->{{#if: {{{title3|}}}{{{5|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title3|{{{5}}}}}}</th></tr>
 
-->{{#if: {{{title3|}}}{{{5|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title3|{{{5}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text3|{{{6}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text3|{{{6}}}}}}</td></tr></table>}}<!--
  
 
-->{{#if: {{{title4|}}}{{{7|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title4|{{{7}}}}}}</th></tr>
 
-->{{#if: {{{title4|}}}{{{7|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title4|{{{7}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text4|{{{8}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text4|{{{8}}}}}}</td></tr></table>}}<!--
  
 
-->{{#if: {{{title5|}}}{{{9|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title5|{{{9}}}}}}</th></tr>
 
-->{{#if: {{{title5|}}}{{{9|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title5|{{{9}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text5|{{{10}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text5|{{{10}}}}}}</td></tr></table>}}<!--
  
 
-->{{#if: {{{title6|}}}{{{11|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title6|{{{11}}}}}}</th></tr>
 
-->{{#if: {{{title6|}}}{{{11|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title6|{{{11}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text6|{{{12}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text6|{{{12}}}}}}</td></tr></table>}}<!--
  
 
-->{{#if: {{{title7|}}}{{{13|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title7|{{{13}}}}}}</th></tr>
 
-->{{#if: {{{title7|}}}{{{13|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title7|{{{13}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text7|{{{14}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text7|{{{14}}}}}}</td></tr></table>}}<!--
  
 
-->{{#if: {{{title8|}}}{{{15|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title8|{{{15}}}}}}</th></tr>
 
-->{{#if: {{{title8|}}}{{{15|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title8|{{{15}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text8|{{{16}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text8|{{{16}}}}}}</td></tr></table>}}<!--
  
 
-->{{#if: {{{title9|}}}{{{17|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title9|{{{17}}}}}}</th></tr>
 
-->{{#if: {{{title9|}}}{{{17|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title9|{{{17}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text9|{{{18}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text9|{{{18}}}}}}</td></tr></table>}}<!--
  
 
-->{{#if: {{{title10|}}}{{{19|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title10|{{{19}}}}}}</th></tr>
 
-->{{#if: {{{title10|}}}{{{19|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title10|{{{19}}}}}}</th></tr>
<tr><td style="font-size: 90%;">{{{text10|{{{20}}}}}}</td></tr></table>}}<!--
+
<tr><td style="font-size: 95%;">{{{text10|{{{20}}}}}}</td></tr></table>}}<!--
  
 
-->{{#ifeq: {{lc:{{{border|}}}}}|no||</div>}}</includeonly><noinclude>
 
-->{{#ifeq: {{lc:{{{border|}}}}}|no||</div>}}</includeonly><noinclude>

Latest revision as of 12:31, 3 January 2010


Usage

{{Collapsible boxes| title1 | text1 | title2 | text2 | ... | ... | title10 | text10 }}

or

{{Collapsible boxes| border=5px | title1 | text1 | title2 | text2 | ... | ... | title10 | text10 }}

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