Template:TOC: Difference between revisions
Appearance
[unreviewed revision] | [checked revision] |
Content deleted Content added
m moved Template:TOCleft to Template:TOC: enlarged scope |
m Changed protection settings for "Template:TOC": High-impact page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(15 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<div {{#if:{{{limit|}}}| |
<div class="noprint {{#if:{{{limit|}}}|toclimit-{{{limit}}}}}" style="float:{{{float|left}}}; {{#switch: {{{float}}} |
||
| right = margin:0.25em 0.25em 0.5em 0.5em; |
| right = margin:0.25em 0.25em 0.5em 0.5em; |
||
| margin:0.25em 0.5em 0.5em 0.25em; |
|||
}} padding:0.5em 1.4em 0.8em 0em; background:transparent;">__TOC__</div><noinclude> |
|||
{{clear}} |
|||
}} background:transparent;" class="noprint">__TOC__</div> |
|||
See [[Editing_Wikitext/Headers#The_Table_of_Contents|Editing Wikitext: The Table of Contents]] |
|||
== Usage == |
|||
This template takes two variables: |
|||
* <code>float</code>, can be any of <code>left</code>, <code>right</code>, <code>none</code>, <code>inherit</code>[http://www.w3.org/TR/CSS21/visuren.html#propdef-float] |
|||
* <code>limit</code>, must be an integer. This limits how deep the TOC goes. |
|||
[[Category:Table of contents templates|{{PAGENAME}}]] |
|||
</noinclude> |
Latest revision as of 11:07, 25 October 2021
See Editing Wikitext: The Table of Contents
Usage
This template takes two variables:
float
, can be any ofleft
,right
,none
,inherit
[1]limit
, must be an integer. This limits how deep the TOC goes.