Template:ToC/doc: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{Documentation}} The '''ToC''' template aligns the "Table of Contents" in a page. The table may now be able to float at the left or right of a page and the text should wrap around it. This template can improve page layouts in certain cases. It can also force-insert a table of contents in pages where there are not enough sections for an automatic insertion of a "Table of Contents". ==Usage== * {{t|ToC|align}} * {{t|ToC|align|clear|width|limit}} ===Optional parameters=...")
 
No edit summary
 
Line 9:
===Optional parameters===
<pre>{{ToC
| align = the alignment of the table
| clear = equivalent of placing <br clear=> above the table; defaults to LEFT
| width = the width of the table; defaults to AUTO
| limit = the limit of the sections displayed; the default is no limits
}}</pre>
 

Latest revision as of 17:37, 23 March 2024

This is a documentation subpage for Template:ToC.
It contains usage information, categories, and other content that is not part of the original template page.

The ToC template aligns the "Table of Contents" in a page. The table may now be able to float at the left or right of a page and the text should wrap around it. This template can improve page layouts in certain cases. It can also force-insert a table of contents in pages where there are not enough sections for an automatic insertion of a "Table of Contents".

Usage

  • {{ToC|align}}
  • {{ToC|align|clear|width|limit}}

Optional parameters

{{ToC
|align = the alignment of the table
|clear = equivalent of placing <br clear=> above the table; defaults to LEFT
|width = the width of the table; defaults to AUTO
|limit = the limit of the sections displayed; the default is no limits
}}