Template:TOCright: Difference between revisions

testing toclimit
No edit summary
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=4 will hide the fourth level and deeper subheadings in the hierarchy. And limit=2 will hide all subheadings leaving only the main headings. This is implemented as a CSS class in the MediaWiki:Common.css.  
*: <code><nowiki>{{TOCright|limit=3}}</nowiki></code> Limits the depth of subheadings shown. For instance using limit=4 will hide the fourth level and deeper subheadings in the hierarchy. And limit=2 will hide all subheadings leaving only the main headings. This is implemented as a CSS class 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>