Template:Compact TOC/doc: Difference between revisions

Jump to navigation Jump to search
→‎Usage: +new var
(→‎Usage: +range links)
(→‎Usage: +new var)
Line 18:
'''For maximum number of features and centered placement''' (leave off a parameter or change it to blank or "no" to disable a feature'''
 
<code><nowiki>{{</nowiki>'''CompactTOC8'''|name=Contents|side=yes|center=yes|right=|align=center|nobreak=yes|top=yes|num=yes|sym=yes|symnum=|custom1=|custom2=|custom3=|seealso=yes|notesfirst=|refs=yes|notes=yes|extlinks=yes<nowiki>}}</nowiki></code>
 
''or''
Line 26:
|center=yes
|right=
|align=center
|nobreak=yes
|top=yes
Line 49 ⟶ 50:
*<code>center=yes</code> &mdash; center to ToC in the horizontal middle of the page, instead of floated left
*<code>right=yes</code> &mdash; align the ToC horizontally to the right of the page (may require <code><nowiki><br style="clear:right;" /></nowiki></code> after it, depending on page layout), instead of floated left (this parameter is mutually exclusive with the "center" option above, and should be used sparingly and with good reason)
*<code>align=</code> &mdash; sets the alignment of the ''links'' inside the table; default is left; use <code>center</code>, <code>right</code> or <code>left</code>
*<code>nobreak=yes</code> &mdash; no linebreak between the A-B-C-etc. stuff and the See also/References/etc. stuff (note: does not affect the heading; use <code>side=</code> for that)
*<code>top=yes</code> &mdash; enable the "Top" link; this is only useful if this copy of the ToC is at the bottom (or middle, theoretically) of the page, as a secondary ToC (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)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu