Template:Headless TOC
Jump to navigation
Jump to search
{{{1}}}
Example
This template allow words or desired phrases to be linked in the table of contents 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. {{TOC tab}} is an alias. For now, this must be placed under a subhead.
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" |This template allow {{TOC tab|words or desired phrases}} to be {{TOC tab|linked in the table of contents}} {{TOC tab| 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. {{t1|TOC tab}} is an alias. For now, this must be placed under a subhead.
Alternative label
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.
{{TOC tab|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}}
See also
The above documentation is transcluded from Template:Headless TOC/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |