Template:Compact TOC/doc: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (Twiddle.)
m (→‎Parameters: cleanup)
Line 55: Line 55:
*<code>top=yes</code> &mdash; enable the "Top" link; this is only useful if this copy of the ToC is a secondary ToC not at the top of the page, e.g. in the middle of a long glossary. (Every rendered page has a hidden <code><nowiki><a name="top" id="top"></a></nowiki></code> above the sitenotice which makes this link work without having to do anything but enable it in the template.)
*<code>top=yes</code> &mdash; enable the "Top" link; this is only useful if this copy of the ToC is a secondary ToC not at the top of the page, e.g. in the middle of a long glossary. (Every rendered page has a hidden <code><nowiki><a name="top" id="top"></a></nowiki></code> above the sitenotice which makes this link work without having to do anything but enable it in the template.)
*<code>sym=yes</code> &mdash; enable the "!$@" link for symbolic entries section
*<code>sym=yes</code> &mdash; enable the "!$@" link for symbolic entries section
*<code>num=yes</code> &mdash; enable the "0–9" link for numeric entries section ('''''use''''' heading <CODE>==0&amp;ndash;9==</CODE> for the link to work)
*<code>num=yes</code> &mdash; enable the "0–9" link for numeric entries section (create a heading of <code><nowiki>==0&amp;ndash;9==</nowiki></code> for the link to work)
*<code>symnum=yes</code> &mdash; enable the "!–9" link for combined symbolic and numeric entries section ('''''use''''' heading <CODE>==!&amp;ndash;9==</CODE> for the link to work)
*<code>symnum=yes</code> &mdash; enable the "!–9" link for combined symbolic and numeric entries section (create a heading of <code><nowiki>==!&amp;ndash;9==</nowiki></code> for the link to work)
*<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>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>seealso=yes</code> &mdash; enable link to the "See also" section