Template:TOC: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Tigerpaw28 (talk | contribs)
Fixing and enhancing the functionality of this template. It can now float left or right without falling into Derik's infinite transclusion loop and causing an error. Also dropped the pointless purplemonkeydishwasher parameter.
Saix (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
<includeonly>{{#if:{{{suppress|}}}|__NOTOC__|<div style="clear: {{{clear|none}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2.5em; | <!-- align=none --> }} }} width: {{{width|auto}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div>}}
<includeonly>{{#if:{{{suppress|}}}|__NOTOC__|<div style="clear: {{{clear|none}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2.5em; | <!-- align=none --> }} }} width: {{{width|auto}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div>}}</includeonly><noinclude>
</includeonly><noinclude>
This template is no longer an affront before God, and can be used by anyone.
This template is no longer an affront before God, and can be used by anyone.



Latest revision as of 20:27, 30 June 2023

This template is no longer an affront before God, and can be used by anyone.

{{TOC
|align= Which side to align the table of contents to. Aligns left by default.
|limit= The maximum header level to limit to. By default all headers are included.
|width= The width of the TOC. Defaults to 'auto'.
|clear= What to set the CSS 'clear' property to. This determines which side (or both) of the TOC things are not allowed to float on. Defaults to 'none'.
|suppress= If set to true, the TOC will be hidden completely.
}}