Difference between revisions of "Template:Tocleft"

m
m
Line 1: Line 1:
<noinclude>[[Category:Utility Templates|{{PAGENAME}}]]
+
<noinclude>{{Template Overview
</noinclude>{| cellspacing="0" cellpadding="0" style="clear:left; margin-bottom: .5em; margin-right: 2em; float: left; padding: .5em 0 .8em 1.4em; background: none;"
+
|usedon=all
|
+
|purpose=display a table of contents that is placed in the top left corner of the page
__TOC__
+
|template=<nowiki>{{Tocleft| }}</nowiki>
|}
+
|category=Utility
 +
}}
 +
{{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:Tocleft]].
 +
|validvalues=1, 2, 3, 4, 5, 6, or 7
 +
}}
 +
</noinclude><includeonly><div style="clear:both; float:left; margin:0px 5px 5px 0px; max-width:20em;">{{Toc|{{{1|}}}}}</div></includeonly>

Revision as of 15:01, 3 April 2011

Template:Tocleft is designed for use on all pages to display a table of contents that is placed in the top left corner of the page.

Template

{{Tocleft| }}

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