Template:TOCright: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(enable TOC header level limits and non numbering.) |
||
Line 1: | Line 1: | ||
{| cellspacing="0" cellpadding="0" style="clear:right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{1|auto}}};" |
{| cellspacing="0" cellpadding="0" style="clear:right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{1|auto}}};" class="toclimit-{{{limit|7}}} {{{num|}}}" |
||
| |
|__TOC__ |
||
|}<noinclude> |
|}<noinclude> |
||
[[Category:TOC templates|{{PAGENAME}}]] |
[[Category:TOC templates|{{PAGENAME}}]] |
||
Line 8: | Line 8: | ||
* This template can be used to wrap page text around a right-side table of contents box. |
* This template can be used to wrap page text around a right-side table of contents box. |
||
*: To use it, enter this wiki markup code, <code><nowiki>{{TOCright}}</nowiki></code>, on the page where you want the table of contents box. |
*: To use it, enter this wiki markup code, <code><nowiki>{{TOCright}}</nowiki></code>, on the page where you want the table of contents box. |
||
*: <code><nowiki>{{TOCright|limit=3}}</nowiki></code> Limits the depth of subheadings shown. For instance, using limit=2 will show only the =h1= and ==h2== header titles. (For the table of contents, the first header on the page will take on the level of the second header if they are different.) |
|||
*: <code><nowiki>{{TOCright|num=nonumtoc}}</nowiki></code> Removes the numbers preceding the section heading titles. These parameters are implemented through CSS classes in the [[MediaWiki:Common.css]]. |
|||
* An alternate template, [[Template:TOCleft]], is available if one wants to place the table of contents box on the left side of the page. |
* An alternate template, [[Template:TOCleft]], is available if one wants to place the table of contents box on the left side of the page. |
||
</noinclude> |
</noinclude> |
Revision as of 05:04, 11 November 2009
Table of Contents - right
- This template can be used to wrap page text around a right-side table of contents box.
- To use it, enter this wiki markup code,
{{TOCright}}
, on the page where you want the table of contents box. {{TOCright|limit=3}}
Limits the depth of subheadings shown. For instance, using limit=2 will show only the =h1= and ==h2== header titles. (For the table of contents, the first header on the page will take on the level of the second header if they are different.){{TOCright|num=nonumtoc}}
Removes the numbers preceding the section heading titles. These parameters are implemented through CSS classes in the MediaWiki:Common.css.
- To use it, enter this wiki markup code,
- An alternate template, Template:TOCleft, is available if one wants to place the table of contents box on the left side of the page.