Template:RightTOC scroll: Difference between revisions
Jump to navigation
Jump to search
(adapted from Template:RightTOC) |
(+height customization functionality) |
||
Line 1: | Line 1: | ||
<div style="clear: right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}}; max-height: | <div style="clear: right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}}; max-height: {{#if:{{{1|}}}|{{{1}}}|200}}px; overflow: auto;"> | ||
__TOC__ | __TOC__ | ||
</div><noinclude> | </div><noinclude> | ||
==Usage== | ==Usage== | ||
This inserts a table of contents with a vertical scrollbar. Insert '''<nowiki>{{RightTOC scroll}}</nowiki>''' into your page's wiki markup. | This inserts a table of contents with a vertical scrollbar. Insert '''<nowiki>{{RightTOC scroll}}</nowiki>''' into your page's wiki markup. You can customize the height by using '''<nowiki>{{RightTOC scroll|300}}</nowiki>''', where 300 is the height in pixels. The default is 200. | ||
Template code copied from [[Wikipedia]]'s [http://en.wikipedia.org/wiki/Template:TOCright Template:TOCright] template.</noinclude> | Template code copied from [[Wikipedia]]'s [http://en.wikipedia.org/wiki/Template:TOCright Template:TOCright] template.</noinclude> |
Latest revision as of 21:03, 25 January 2012
Usage
This inserts a table of contents with a vertical scrollbar. Insert {{RightTOC scroll}} into your page's wiki markup. You can customize the height by using {{RightTOC scroll|300}}, where 300 is the height in pixels. The default is 200.
Template code copied from Wikipedia's Template:TOCright template.