Template:Compact TOC/doc: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(→‎Parameters: Dox improvement.)
m (→‎Letters: Twiddles.)
Line 66: Line 66:


====Letters====
====Letters====
Any letter can be deleted by adding it as a '''lowercase''' blank parameter, or replaced with an unlinked letter by using that letter:
Any letter can be deleted (i.e. because it has no entries in the list) by adding it as a '''lower case''' blank parameter
{{tlx|CompactTOC8|side=yes|j=|q=}}
{{tlx|CompactTOC8|side=yes|j=|q=}}
{{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}}
{{tlx|CompactTOC8|side=yes|j=J|q=Q}}


{{CompactTOC8|side=yes|j=J|q=Q}}
{{CompactTOC8|side=yes|j=J|q=Q}}


It is often better to create an empty placeholder span (e.g. <code><nowiki><span id="Q" /></code></nowiki>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.
''Note:'' It is often better to create an empty placeholder span (e.g. <code><nowiki><span id="Q" /></code></nowiki>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:
With a little more work, one can create range links: