Template:Compact TOC/doc: Difference between revisions

no edit summary
m (→‎Letters: Typo self-fix.)
No edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 20:
 
 
'''For maximum number of features and centered placement''' (leave off a parameter or change it to blank or "no" to disable a feature''')
 
<nowiki>{{</nowiki>'''CompactTOC8'''
Line 53:
*<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 ata thesecondary bottomToC (ornot middle,at theoretically)the top of the page, ase.g. in the middle of a secondarylong ToCglossary. (everyEvery 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>num=yes</code> &mdash; enable the "0–9" link for numeric entries section ('''''use'''''create a heading of <CODEcode><nowiki>==0&amp;ndash;9==</CODEnowiki></code> for the link to work)
*<code>symnum=yes</code> &mdash; enable the "!–9" link for combined symbolic and numeric entries section ('''''use'''''create a heading of <CODEcode><nowiki>==!&amp;ndash;9==</CODEnowiki></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>seealso=yes</code> &mdash; enable link to the "See also" section
Line 77:
''Note:'' It is often better to create an empty placeholder span (e.g. <code><nowiki><span id="Q" /></nowiki></code> 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:
 
WithThis afeature littlecan morealso work,be oneused canto create range links:
{{tlx|CompactTOC8|side&#61;yes|x&#61;<nowiki>[[#X-Z|X-Z]]</nowiki>|y&#61;|z&#61;}} (or <code>x=|y=|z=<nowiki>[[#X-Z|X-Z]]</nowiki></code> etc.)
 
{{tlx|CompactTOC8|side&#61;yes|x&#61;<nowiki>[[#X-Z|X-Z]]</nowiki>|y&#61;|z&#61;}} (or <code>x=|y=|z=<nowiki>[[#X-Z|X-Z]]</nowiki></code> etc.)
 
{{CompactTOC8|side=yes|x=[[#X-Z|X-Z]]|y=|z=}}
 
Line 123 ⟶ 125:
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:TOC templates|CompactTOC8]]
[[Category:Templates using ParserFunctions|CompactTOC8]]
 
[[nl:Sjabloon:CompactTOC8]]
[[sl:Predloga:CompactTOC3]]
[[es:Plantilla:TOC]]
</includeonly>
Anonymous user