Difference between revisions of "Template:Collapsible boxes"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (code fix) |
Explorer09 (Talk | contribs) m (change font size to 95% from 90%) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq: {{ | + | <includeonly>{{#ifeq: {{lc:{{{border|}}}}}|no||<div class="toccolours" style="font-size: 100%; padding: {{{border|5px}}};">}}<!-- |
− | -->{{#if: {{{title1|}}}{{{1|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf | + | -->{{#if: {{{title1|}}}{{{1|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title1|{{{1}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <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 | + | -->{{#if: {{{title2|}}}{{{3|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title2|{{{3}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <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 | + | -->{{#if: {{{title3|}}}{{{5|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title3|{{{5}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <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 | + | -->{{#if: {{{title4|}}}{{{7|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title4|{{{7}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <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 | + | -->{{#if: {{{title5|}}}{{{9|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title5|{{{9}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <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 | + | -->{{#if: {{{title6|}}}{{{11|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title6|{{{11}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <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 | + | -->{{#if: {{{title7|}}}{{{13|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title7|{{{13}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <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 | + | -->{{#if: {{{title8|}}}{{{15|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title8|{{{15}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <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 | + | -->{{#if: {{{title9|}}}{{{17|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title9|{{{17}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <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 | + | -->{{#if: {{{title10|}}}{{{19|}}}|<table class="collapsible collapsed" width="100%"><tr><th style="background: #ccf;">{{{title10|{{{19}}}}}}</th></tr> |
− | <tr><td style="font-size: | + | <tr><td style="font-size: 95%;">{{{text10|{{{20}}}}}}</td></tr></table>}}<!-- |
− | -->{{#ifeq: {{ | + | -->{{#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>}} | ||
− | </noinclude> | + | ---- |
+ | ===Usage=== | ||
+ | <code><nowiki>{{</nowiki>Collapsible boxes| title1 | text1 | title2 | text2 | ... | ... | title10 | text10 <nowiki>}}</nowiki></code> | ||
+ | |||
+ | or | ||
+ | |||
+ | <code><nowiki>{{</nowiki>Collapsible boxes| border=5px | title1 | text1 | title2 | text2 | ... | ... | title10 | text10 <nowiki>}}</nowiki></code> | ||
+ | |||
+ | 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> |
Latest revision as of 12:31, 3 January 2010
{{{title1}}} |
---|
{{{text1}}} |
{{{title2}}} |
---|
{{{text2}}} |
... |
---|
... |
{{{titlen}}} |
---|
{{{textn}}} |
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
.