Anonymous user
Template:Compact TOC/doc: Difference between revisions
no edit summary
(→Usage: Dox update for a=no, etc.) |
No edit summary |
||
(9 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> — 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> — 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> — enable the "Top" link; this is only useful if this copy of the ToC is
*<code>sym=yes</code> — enable the "!$@" link for symbolic entries section
*<code>num=yes</code> — enable the "0–9" link for numeric entries section (
*<code>symnum=yes</code> — enable the "!–9" link for combined symbolic and numeric entries section (
*<code>custom1</code>, <code>custom2</code> and <code>custom3</code> — add up to 3 extra "custom" sections at the end of the list (alternatively <code>Sec1, Sec2, Sec3</code>)
*<code>seealso=yes</code> — enable link to the "See also" section
*<code>refs=yes</code> — enable link to the "References" section (
*<code>notes=yes</code> — enable link to the "Notes" section (
*<code>notesfirst=yes</code> — enable link to the "Notes" section, but placed before "References";
*<code>extlinks=yes</code> — enable link to the "External links" section
*<code>a=
====Letters====
Any letter can be deleted (i.e. because it has no entries in the list) by adding it as a '''
{{tlx|CompactTOC8|side=yes|j=|q=}}
{{CompactTOC8|side=yes|j=|q=}}
Or it can be replaced with an unlinked letter by using that letter ('''upper case'''):
{{tlx|CompactTOC8|side=yes|j=J|q=Q}}
{{CompactTOC8|side=yes|j=J|q=Q}}
''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:▼
{{tlx|CompactTOC8|side=yes|x=<nowiki>[[#X-Z|X-Z]]</nowiki>|y=|z=}}
▲{{tlx|CompactTOC8|side=yes|x=<nowiki>[[#X-Z|X-Z]]</nowiki>|y=|z=}} (or <code>x=|y=|z=<nowiki>[[#X-Z|X-Z]]</nowiki></code> etc.)
{{CompactTOC8|side=yes|x=[[#X-Z|X-Z]]|y=|z=}}
Line 120 ⟶ 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>
|