Jump to content

Template:TOC: Difference between revisions

From Wikibooks, open books for an open world
[unreviewed revision][checked revision]
Content deleted Content added
m fix typo
m Changed protection settings for "Template:TOC": High-impact page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))
 
(19 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<div class="noprint {{#if:{{{limit|}}}|toclimit-{{{limit}}}}}" style="float:{{{float|left}}}; {{#switch: {{{float}}}
<div style="float:left; margin:0.25em 0.5em 0.5em 0.25em; padding:0.5em 1.4em 0.8em 0em; background:transparent;">__TOC__</div>
| 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}}
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 of left, right, none, inherit[1]
  • limit, must be an integer. This limits how deep the TOC goes.