m (moved Template:Tocright to Template:TOC right: better readability - less confusing when viewing the markup.)
(added scrolling box)
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">
{| cellspacing="0" cellpadding="0" style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit}}}"}}
{| cellspacing="0" cellpadding="0" style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit}}}"}}
| __TOC__
| __TOC__
|}<noinclude>
|}</div><noinclude>
{{documentation}}
 
<!-- Add categories to the /doc subpage, not here! -->
== Usage ==
 
;Simple version
<pre>
{{TOC right}}
</pre>
 
;Optional paramaters
<pre>
{{TOC right
  |width=
  |height=
  |font-size=
  |border-width=
  |border-color=
}}
</pre>
 
;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
 
== 2 ==
== 3 ==
== 4 ==
== 5 ==
== 6 ==
== 7 ==
== 8 ==
== 9 ==
== 10 ==
== 11 ==
== 12 ==
== 13 ==
== 14 ==
== 15 ==
== 16 ==
== 17 ==
== 18 ==
== 19 ==
== 20 ==
== 21 ==
== 22 ==
== 23 ==
== 24 ==
== 25 ==
== 26 ==
== 27 ==
== 28 ==
== 29 ==
== 30 ==
 
[[Category:Table of contents templates]]
</noinclude>
</noinclude>

Revision as of 16:08, 21 July 2012

Usage

Simple version
{{TOC right}}
Optional paramaters
{{TOC right
  |width=
  |height=
  |font-size=
  |border-width=
  |border-color=
}}
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

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

Cookies help us deliver our services. By using our services, you agree to our use of cookies.