Eisimpleir - Example

deasaich
This template allows

Script error: No such module "ustring".words or desired phrasesScript error: No such module "ustring".

words or desired phrases to be

Script error: No such module "ustring".linked in the table of contentsScript error: No such module "ustring".

linked in the table of contents

Script error: No such module "ustring". without a new sectionScript error: No such module "ustring".

without a new section but must be enclosed in a table to avoid creating line breaks.

However, as shown in the preceding line, it is easy to make a table look like a normal paragraph. {{Headless TOC}} is an alias.

With the

Script error: No such module "ustring".depthScript error: No such module "ustring".

depth
parameter, you can set this to

Script error: No such module "ustring".deeperScript error: No such module "ustring".

deeper

Script error: No such module "ustring".and deeperScript error: No such module "ustring".

and deeper subhead levels.
Template documentation[view] [edit] [history] [purge]

This template is for creating a link in the Table of Contents (TOC) without creating a visible break in the text. This can be especially useful where there are many hidden sections in close proximity, such as in the page Android version history.

==Example==
{| style="border-collapse:collapse"
==Example==
{| style="border-collapse:collapse"
|This template allow {{Headless TOC|words or desired phrases}} to be {{Headless TOC|linked in the table of contents}} {{Headless TOC| without a new section}} but must be enclosed in a table to avoid creating line breaks.
|}
However, as shown in the preceding line, it is easy to make a table look like a normal paragraph. {{tl|Headless TOC}} is an alias.
{| style='border-collapse:collapse'
|With the <code>{{Headless TOC|depth|depth=2}}</code> parameter, you can set this to {{Headless TOC|deeper|depth=3}} {{Headless TOC|and deeper|depth=4}} subhead levels.
|}

TOC Depth

deasaich

New Feature added 30 Dec 2014:

By default, the link in the table is at the first sub-level (as would be produced by ===text===).
You may set |depth=2 to link under the next sub level (like ====text====), or as deep as you wish. You may also set it as a top-level heading with |depth=0. If omitted, depth will be equal to 1.

Alternative label

deasaich

Script error: No such module "ustring".second parameterScript error: No such module "ustring".

By default, the text in the first parameter would be used as both the in-line text and the TOC title. If a second parameter is provided then the first parameter would be the text that displays in

the body of the article and the second parameter in the TOC.

{{Headless TOC|By default, the text in the first parameter would be used as both the in-line text and the TOC title. If a second parameter is provided then the first parameter would be the text that displays in the body of the article and the second parameter in the TOC.|second parameter}}

Faic cuideachd - Also see