Difference between revisions of "Template:TOCbox"
Jump to navigation
Jump to search
(width = auto) |
(+ header) |
||
Line 1: | Line 1: | ||
− | <div style=" width:{{#if:{{{width}}}|{{{width|auto}}}|auto}}; font-size:{{#if:{{{font-size}}}|{{{font-size|96%}}}|96%}}; float: right; margin-left: 10px; margin-bottom: 10px; padding: 4px; border: {{#if:{{{border-width}}}|{{{border-width|0px}}}|0px}} solid {{#if:{{{border-color}}}|{{{border-color|#A3BFA3}}}|#A3BFA3}}; height:{{#if:{{{height}}}|{{{height|500px}}}|500px}}; overflow: auto; overflow-x:hidden">{{TOCright}}</div><noinclude> | + | <div style=" width:{{#if:{{{width}}}|{{{width|auto}}}|auto}}; font-size:{{#if:{{{font-size}}}|{{{font-size|96%}}}|96%}}; float: right; margin-left: 10px; margin-bottom: 10px; padding: 4px; border: {{#if:{{{border-width}}}|{{{border-width|0px}}}|0px}} solid {{#if:{{{border-color}}}|{{{border-color|#A3BFA3}}}|#A3BFA3}}; height:{{#if:{{{height}}}|{{{height|500px}}}|500px}}; overflow: auto; overflow-x:hidden">{{#if:{{{header}}}|<center>{{{header|}}}</center>|}} {{TOCright}}</div><noinclude> |
== Usage == | == Usage == | ||
Line 16: | Line 16: | ||
|border-width= | |border-width= | ||
|border-color= | |border-color= | ||
+ | |header= | ||
}} | }} | ||
</pre> | </pre> | ||
Line 25: | Line 26: | ||
|border-width=0px | |border-width=0px | ||
|border-color=#A3BFA3 - can be name | |border-color=#A3BFA3 - can be name | ||
+ | |header= empty | ||
== 2 == | == 2 == | ||
Line 30: | Line 32: | ||
== 4 == | == 4 == | ||
== 5 == | == 5 == | ||
+ | |||
== 6 == | == 6 == | ||
== 7 == | == 7 == |
Latest revision as of 16:54, 9 April 2013
Usage[edit source]
- Simple version
{{TOCbox}}
- Optional paramaters
{{TOCbox |width= |height= |font-size= |border-width= |border-color= |header= }}
- Defaults
|width=auto - can be % or px |height=500px - about 25 lines |font-size=96% - can be px |border-width=0px |border-color=#A3BFA3 - can be name |header= empty