Difference between revisions of "Template:Toc"
m |
m |
||
Line 12: | Line 12: | ||
|validvalues=1, 2, 3, 4, 5, 6, or 7 | |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=" | + | }}</noinclude><includeonly><div {{#if:{{{1|}}}|class="toclevel-{{{1}}}"}}>__TOC__</div></includeonly> |
Revision as of 13:02, 3 April 2011
Contents
Template:Toc is designed for use on all pages to display a table of contents.
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