Difference between revisions of "Template:TOC right"

From Second Life Wiki
Jump to navigation Jump to search
(Shamelessly copied from wikipedia.org and adapted for SL Wiki)
 
m (Using internal TOC template, which worked, unlike my copy!)
 
Line 1: Line 1:
<div class="tocright {{#if:{{{clear|}}}|tocright-clear-{{{clear|}}}}} {{#if:{{{limit|}}}|toclimit-{{{limit}}}}}" {{#if:{{{width|{{{1|}}}}}}|style="width: {{{width|{{{1}}}}}};"}}>__TOC__</div><noinclude>
{{TOC|float=right}}<noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! -->
<!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! -->
</noinclude>
</noinclude>

Latest revision as of 15:47, 10 June 2023

[Edit] [🔄Purge] Template-info.png Template documentation


{{TOC right}} forces the auto-generated Table of Contents for an article to appear floated to the right side of the page, in order to improve article layout; {{TOC left}} is the equivalent template to float the TOC to the left.

Usage

  • Insert {{TOC right}} at the point in the article where you want the top of the Table of Contents box to appear. This should usually be after the text of the lead section, and just before the first section heading, in accordance with "Wikipedia logo"MOS:LEADELEMENTS. Use with {{-}} or {{clear}} to prevent collision with text; use the clear parameter (see below) to prevent collision with images.
  • Avoid placing the TOC in a visually poor location. Crossing a section division is probably a poor idea.

Note

Unlike Wikipedia, which uses TemplateStyles, the SL Wiki already included a reasonably good 'hacked' {{TOC}} template, and {{TOC right}} only redirects it (probably badly).[1]

See also

  1. Still a work in progress, mind you — Gwyneth Llewelyn