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
Localise template catalogue and editorial guidance for the independent wiki
Line 1: Line 1:
[[Project:Template index|Template index]] / Compact tables of contents
<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>
{{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]].}}


Compact navigation within long articles and category pages.
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.


Check section anchors and alphabetical ranges against the actual page. Category navigation and article tables of contents have different targets; preview the result in the current skin.
__TOC__


== Local templates ==
== Non-[[Wikipedia:Categorization|category]] pages ==
Open a template page for its parameters and examples. These links identify existing local templates; their inclusion does not certify every imported behaviour.


* [[:Template:Compact ToC|Compact ToC]] - <code><nowiki>{{Compact ToC}}</nowiki></code>
These should work on pages whose title does not begin with "Category:".
* [[:Template:Category TOC|Category TOC]] - <code><nowiki>{{Category TOC}}</nowiki></code>
* [[:Template:TOC right|TOC right]] - <code><nowiki>{{TOC right}}</nowiki></code>
* [[:Template:TOC left|TOC left]] - <code><nowiki>{{TOC left}}</nowiki></code>
* [[:Template:TOC limit|TOC limit]] - <code><nowiki>{{TOC limit}}</nowiki></code>


== Additional catalogue entries ==
{{tlx|Compact ToC}}
Additional local templates linked from this subject catalogue. Check their documentation and wording before use.


* [[:Template:AlphanumericTOC|AlphanumericTOC]]
{{Compact ToC}}
* [[:Template:Category IP TOC|Category IP TOC]]
* [[:Template:CompactTOCprefix|CompactTOCprefix]]
* [[:Template:Large category TOC|Large category TOC]]
* [[:Template:TOC US states|TOC US states]]


== Before saving ==
''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.
* Preview the result and check any required parameters.
* Use local page titles and links.
* Explain a maintenance notice on the relevant talk page when needed.
* Do not copy example text that asserts a process or permission that does not exist here.


{{tlx|AlphanumericTOC|numbers{{=}}yes}}


== Local policies and guidance ==
{{AlphanumericTOC|numbers=yes}}
* [[Project:Manual of Style|Manual of Style]]


Variable, see template page for examples
{{Elite template index}}

{{tlx|CompactTOCprefix|prefix{{=}}!}}

{{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]].

{{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.

== [[Wikipedia:Categorization|Category]] pages ==

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

{{tlx|Category TOC}}

{{Category TOC}}

{{tlx|Large category TOC}}

{{Large category TOC}}

{{tlx|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>

Revision as of 09:17, 31 October 2026

Template index / Compact tables of contents

Compact navigation within long articles and category pages.

Check section anchors and alphabetical ranges against the actual page. Category navigation and article tables of contents have different targets; preview the result in the current skin.

Local templates

Open a template page for its parameters and examples. These links identify existing local templates; their inclusion does not certify every imported behaviour.

Additional catalogue entries

Additional local templates linked from this subject catalogue. Check their documentation and wording before use.

Before saving

  • Preview the result and check any required parameters.
  • Use local page titles and links.
  • Explain a maintenance notice on the relevant talk page when needed.
  • Do not copy example text that asserts a process or permission that does not exist here.


Local policies and guidance