Anonymous user
Template:Compact TOC/doc: Difference between revisions
no edit summary
m (→Letters: Twiddles.) |
No edit summary |
||
(7 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
Line 75:
{{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" /></
With a little more work, one can create range links:▼
{{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.)▼
▲{{tlx|CompactTOC8|side=yes|x=<nowiki>[[#X-Z|X-Z]]</nowiki>|y=|z=}}
{{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>
|