• New article from the Springfield Shopper: A Sneak Peek for “Treehouse of Horror Presents: Simpsons Wicked This Way Comes” has been released!
  • New article from the Springfield Shopper: Season 36 News: Even more Preview Images for “O C’mon All Ye Faithful” have been released!
  • New article from the Springfield Shopper: Season 36 News: The stories which the segments of “Simpsons Wicked This Way Comes” are based of have been announced!
  • Wikisimpsons needs more Featured Article, Picture, Quote, Episode and Comprehensive article nominations!
  • Wikisimpsons has a Discord server! Click here for your invite! Join to talk about the wiki, Simpsons and Tapped Out news, or just to talk to other users.
  • Make an account! It's easy, free, and your work on the wiki can be attributed to you.
TwitterFacebookDiscord

Difference between revisions of "Template:Toc"

Wikisimpsons - The Simpsons Wiki
m (new)
 
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
  
 
;Usage
 
;Usage
:{{t|ToC|align}}
+
:{{t|Toc|align}}
:{{t|ToC|align|clear|width|limit}}
+
:{{t|Toc|align|clear|width|limit}}
  
 
;Optional parameters
 
;Optional parameters
<pre>{{ToC
+
<pre>{{Toc
 
| align = the alignment of the table; defaults to Right
 
| align = the alignment of the table; defaults to Right
 
| clear = equivalent of placing <br clear=> above the table; defaults to Right
 
| clear = equivalent of placing <br clear=> above the table; defaults to Right
Line 15: Line 15:
 
}}</pre>
 
}}</pre>
 
</noinclude>
 
</noinclude>
 +
<noinclude>[[Category: Templates]]</noinclude>

Latest revision as of 12:21, November 19, 2011

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; defaults to Right
| clear = equivalent of placing <br clear=> above the table; defaults to Right
| width = the width of the table; defaults to AUTO
| limit = the limit of the sections displayed; the default is no limits
}}