Difference between revisions of "Template:Toc"

m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>{{Template Overview
 
<noinclude>{{Template Overview
 
|usedon=all
 
|usedon=all
|purpose=display a table of contents
+
|purpose=display a table of contents on the left side of the page at the insertion point that does not allow content to flow around it
 
|template=<nowiki>{{Toc| }}</nowiki>
 
|template=<nowiki>{{Toc| }}</nowiki>
 
|category=Utility
 
|category=Utility
Line 10: Line 10:
 
|denotes=the lowest header level to be included in the table of contents
 
|denotes=the lowest header level to be included in the table of contents
 
|generates=the "class" attribute in the {{Monospace|div}} tag
 
|generates=the "class" attribute in the {{Monospace|div}} tag
|validvalues=1, 2, 3, 4, 5, 6, or 7
 
 
|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:Toc]].
 
|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:Toc]].
}}</noinclude><includeonly><div {{#if:{{{1|}}}|class="toclevel-{{{1}}}"}}>__TOC__</div></includeonly>
+
|validvalues=1, 2, 3, 4, 5, 6, or 7
 +
}}</noinclude><includeonly><div {{#if:{{{1|}}}|class="toclimit-{{{1}}}"}}>__TOC__</div></includeonly>

Latest revision as of 14:09, 3 April 2011

Template:Toc is designed for use on all pages to display a table of contents on the left side of the page at the insertion point that does not allow content to flow around it.

Template

{{Toc| }}

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:Toc.
  • Valid Value(s): 1, 2, 3, 4, 5, 6, or 7