Difference between revisions of "Template:Tocright"

m (Protected "Template:Tocright" [edit=sysop:move=sysop])
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Including this template creates a table of contents for the page, and moves it to the topright corner of the insertion point.
+
<noinclude>{{Template Overview
==Usage==
+
|usedon=all
To use, add <nowiki>{{Tocright}}</nowiki> to the top of the page, or anywhere else in the page you want the table of contents to appear.
+
|purpose=display a table of contents on the right side of the page at the insertion point that allows content to flow around it
 
+
|template=<nowiki>{{Tocright| }}</nowiki>
 
+
|category=Utility
[[Category:General Wiki Templates|{{PAGENAME}}]]
+
}}
</noinclude><div style="float:right; clear:right; margin: .5em 0 1em 2em; background: transparent; max-width: 20em;">__TOC__</div>
+
{{Template Parameter
 +
|name=1
 +
|takes=a number
 +
|denotes=the lowest header level to be included in the table of contents
 +
|generates=the "class" attribute in the {{Monospace|div}} tag
 +
|othernotes=This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using [[Template:Tocright]].
 +
|validvalues=1, 2, 3, 4, 5, 6, or 7
 +
}}
 +
</noinclude><includeonly><div style="clear:both; float:right; margin:0px 0px 5px 5px; max-width:20em;">{{Toc|{{{1|}}}}}</div></includeonly>

Latest revision as of 15:11, 3 April 2011

Template:Tocright is designed for use on all pages to display a table of contents on the right side of the page at the insertion point that allows content to flow around it.

Template

{{Tocright| }}

Parameters

1

  • Usage: Optional
  • Description: The 1 parameter takes a number denoting the lowest header level to be included in the table of contents. This is used to generate the "class" attribute in the div tag. This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using Template:Tocright.
  • Valid Value(s): 1, 2, 3, 4, 5, 6, or 7