Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Difference between revisions of "Template:Toc right"

From Appropedia
Jump to: navigation, search
(Usage: can be auto height)
(made auto height default)
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">
+
<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:<includeonly>{{#if:{{{height}}}|{{{height|500px}}}|500px}};</includeonly><noinclude>{{#if:{{{height}}}|{{{height|500px}}}|500px}};</noinclude> 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__
Line 24: Line 24:
 
;Defaults
 
;Defaults
 
   |width=auto - can be % or px
 
   |width=auto - can be % or px
   |height=500px - about 25 lines, can be auto
+
   |height=auto - can be px, 500px = about 25 lines
 
   |font-size=96% - can be px
 
   |font-size=96% - can be px
 
   |border-width=0px
 
   |border-width=0px

Revision as of 14:46, 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=auto - can be px, 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