Template:Compact TOC/doc: Difference between revisions

→‎Parameters: Dox improvement.
(→‎Usage: Dox update for a=no, etc.)
(→‎Parameters: Dox improvement.)
Line 59:
*<code>custom1</code>, <code>custom2</code> and <code>custom3</code> &mdash; add up to 3 extra "custom" sections at the end of the list (alternatively <code>Sec1, Sec2, Sec3</code>)
*<code>seealso=yes</code> &mdash; enable link to the "See also" section
*<code>refs=yes</code> &mdash; enable link to the "References" section (noteobserve that it is plural)
*<code>notes=yes</code> &mdash; enable link to the "Notes" section (noteobserve that it is plural)
*<code>notesfirst=yes</code> &mdash; enable link to the "Notes" section, but placed before "References"; '''''do not''' use with <code>notes</code>'' (noteand do observe that it is plural)
*<code>extlinks=yes</code> &mdash; enable link to the "External links" section
*<code>a=no</code> through <code>z=no</code> &mdash; individually disable particular letters (Q, X, Z, etc., commonly willthat have no entries). ''Use with caution'' and check regularly to make sure that new entries do not require the removal of this parameters. Can also be used to create range links, e.g. "X-Z". ''(See [[#Letters]] below for more detailed documentation of this feature.)''
 
====Letters====
Line 73:
 
{{CompactTOC8|side=yes|j=J|q=Q}}
 
It is often better to create an empty placeholder span (e.g. <code><nowiki><span id="Q" /></code></nowiki>where the letter's heading would be in the page if it existed, since in most cases it is quite possible that it will come to exist in the future.
 
With a little more work, one can create range links:
Anonymous user