Jump to content

Elite Dangerous Wiki:Template index/Compact tables of contents: Difference between revisions

From Elite Dangerous Wiki
Content deleted Content added
Remove source-wiki categories from the local index
m Protected "Elite Dangerous Wiki:Template index/Compact tables of contents": Pre-registration protection review: Public template catalogue ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div class="hatnote">This index is adapted from Wikipedia. Examples and linked guidance may describe its processes; check that each template and its instructions apply here before using it.</div>
<div class="hatnote">This index documents local templates. Follow this wiki's local policies and guidance when using the examples.</div>
{{Shortcut|Project:TI/TOC}}
{{Shortcut|Project:TI/TOC}}
{{Warning|The 'Top' and 'Top of page' links within these templates are non-functional when used with browsers and/or skins that support floating quickbars. Please propose working solutions for all browsers and skins on the [[Wikipedia talk:Template messages/Compact tables of contents|talk page]].}}
{{Warning|The 'Top' and 'Top of page' links within these templates are non-functional when used with browsers and/or skins that support floating quickbars. Please propose working solutions for all browsers and skins on the [[Project:Talk page guidelines|talk page]].}}


This page lists ways to create several kinds of [[Wikipedia:Section#Compact TOC|compact]] [[Wikipedia:Section#Table of contents (TOC)|tables of contents]] (TOC). Please note that a normal compact TOC will not work when put on Category pages; this page contains a separate section instructing you how to put a compact TOC on Category pages.
This page lists ways to create several kinds of [[Project:Template index/Compact tables of contents|compact]] [[Project:Template index/Compact tables of contents|tables of contents]] (TOC). Please note that a normal compact TOC will not work when put on Category pages; this page contains a separate section instructing you how to put a compact TOC on Category pages.


__TOC__
__TOC__


== Non-[[Wikipedia:Categorization|category]] pages ==
== Non-[[Elite Dangerous Wiki:Categorization|category]] pages ==


These should work on pages whose title does not begin with "Category:".
These should work on pages whose title does not begin with "Category:".
Line 29: Line 29:
Similar to the above, includes the prefix in the links: designed for use with pages such as [[List of acronyms and initialisms: A]].
Similar to the above, includes the prefix in the links: designed for use with pages such as [[List of acronyms and initialisms: A]].


{{tlx|TOC US states|before{{=}}|after{{=}}[[#Other section|Other section]]|noendlinks{{=}}}}


{{TOC US states|before=|after=[[#Other section|Other section]]}}


Use '''before=''' or '''after=''' to manually create links to other sections on the page. If ''after'' is left blank, links to <nowiki>[[#See also]], [[#References]] and [[#External links]]</nowiki> may also be generated using optional parameters.
Use '''before=''' or '''after=''' to manually create links to other sections on the page. If ''after'' is left blank, links to <nowiki>[[#See also]], [[#References]] and [[#External links]]</nowiki> may also be generated using optional parameters.


== [[Wikipedia:Categorization|Category]] pages ==
== [[Elite Dangerous Wiki:Categorization|Category]] pages ==


Use one of these on pages whose title begins with "Category:".
Use one of these on pages whose title begins with "Category:".
Line 50: Line 48:


{{Category TOC|numerals=separate|uppercase=no}}
{{Category TOC|numerals=separate|uppercase=no}}

{{tlx|Category IP TOC}}

{{Category IP TOC}}

<div class="plainlinks" style="font-size:85%; margin-top:1em;">Adapted from [https://en.wikipedia.org/wiki/Wikipedia:Template_index/Compact_tables_of_contents Wikipedia]; see its [https://en.wikipedia.org/w/index.php?title=Wikipedia%3ATemplate+index%2FCompact+tables+of+contents&action=history revision history] for contributors. Content is available under the Creative Commons Attribution-ShareAlike licence.</div>

Latest revision as of 21:41, 31 October 2026

This index documents local templates. Follow this wiki's local policies and guidance when using the examples.

This page lists ways to create several kinds of compact tables of contents (TOC). Please note that a normal compact TOC will not work when put on Category pages; this page contains a separate section instructing you how to put a compact TOC on Category pages.

Non-category pages

These should work on pages whose title does not begin with "Category:".

{{Compact ToC}}

See template page for numerous examples. This highly customizable template can replace most other templates listed below, which are in the process of being switched over to its code.

{{AlphanumericTOC|numbers=yes}}

Variable, see template page for examples

{{CompactTOCprefix|prefix=!}}

Similar to the above, includes the prefix in the links: designed for use with pages such as List of acronyms and initialisms: A.


Use before= or after= to manually create links to other sections on the page. If after is left blank, links to [[#See also]], [[#References]] and [[#External links]] may also be generated using optional parameters.

Category pages

Use one of these on pages whose title begins with "Category:".

{{Category TOC}}

{{Large category TOC}}

{{Category TOC|numerals=separate|uppercase=no}}