Anonymous user
Template:Compact TOC/doc: Difference between revisions
Jump to navigation
Jump to search
→Usage: +range links
(update) |
(→Usage: +range links) |
||
Line 22:
''or''
<nowiki>{{</nowiki>'''CompactTOC8'''
|name=
|side=yes
|center=yes
Line 39:
|notes=yes
|extlinks=yes
|a=
...
|z=
}}</code>
===Parameters===
*<code>name=
*<code>side=yes</code> — put the "Contents" heading on the left side with a colon, instead of the top without one
*<code>center=yes</code> — center to ToC in the horizontal middle of the page, instead of floated left
Line 69:
{{CompactTOC8|side=yes|j=J|q=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.)
{{CompactTOC8|side=yes|x=[[#X-Z|X-Z]]|y=|z=}}
====Shorthand====
|