Anonymous
×
Create a new article
Write your page title here:
We currently have 1,806 articles on Everwind Wiki. Type your article name above or click on one of the titles below and start writing!



Everwind Wiki
1,806Articles

Template:Tocright: Difference between revisions

en>Default
mNo edit summary
 
en>Rebecca Zarzycki
No edit summary
Line 1: Line 1:
<div style="float:right; clear:{{{clear|right}}}; margin-bottom:.5em; padding:.5em 0 .8em 1.4em; background:transparent; max-width:20em;">__TOC__</div><noinclude>
<onlyinclude><includeonly><!--
{{documentation}}</noinclude>
 
--><div class="va-toc-template{{#if:{{{limit|}}}|&#032;va-toclimit-{{{limit}}}}}" style="background: transparent; max-width: 250px;<!--
-->{{#switch:{{lc:{{#if:{{{float|}}}|{{{float}}}|{{{1|}}}}}}}<!--
  -->|right=float: right; clear: right; padding: 0 0 5px 10px;<!--
  -->|left=float: left; clear: left; padding: 0 10px 5px 0;<!--
-->}}<!--
-->">__TOC__</div><!--
 
--></includeonly></onlyinclude>
{{Documentation}}
[[Category:Navigation templates]]

Revision as of 13:24, 27 May 2013

Template documentation (for the above template, sometimes hidden or invisible)

Template for manipulating the table of contents (TOC) of an article: a maximum level for shown headlines can be specified, and the TOC can be aligned to the left/right of an article (with text flowing around it).

Usage

Simply place the following where you want the TOC to appear:

{{TOC}}

Parameters

{{#replace:{{#replace:{{#replace:{{#replace:<unnamed 1> // float|| }}| >> | up to }}| // | or }}| ++ |, }}
Specifies alignment of the TOC; sets CSS "float" (and "clear") attribute for the box.

Available options:

  • left: TOC will be aligned to the left, and text will flow around it on the right.
  • right: TOC will be aligned to the right, and text will flow around it on the left.
{{#replace:{{#replace:{{#replace:{{#replace:limit|| }}| >> | up to }}| // | or }}| ++ |, }}
If specified, subheadings with a level lower than limit will not be shown in the TOC. For example, with limit set to 3, only headings up to level 3 (===) will be displayed. Usually used for articles with a lot of subheadings in order to downsize the TOC.

Technical

ja:Template:TOC


Visit Template:Tocright/doc to edit this text! (How does this work?)