Elite Dangerous Wiki:Template index/Compact tables of contents: Difference between revisions
Localise template catalogue and editorial guidance for the independent wiki |
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)) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<div class="hatnote">This index documents local templates. Follow this wiki's local policies and guidance when using the examples.</div> |
|||
[[Project:Template index|Template index]] / Compact tables of contents |
|||
{{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 [[Project:Talk page guidelines|talk page]].}} |
|||
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. |
|||
Compact navigation within long articles and category pages. |
|||
__TOC__ |
|||
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. |
|||
== Non-[[Elite Dangerous Wiki:Categorization|category]] pages == |
|||
== 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. |
|||
These should work on pages whose title does not begin with "Category:". |
|||
* [[:Template:Compact ToC|Compact ToC]] - <code><nowiki>{{Compact ToC}}</nowiki></code> |
|||
* [[: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> |
|||
{{tlx|Compact ToC}} |
|||
== Additional catalogue entries == |
|||
Additional local templates linked from this subject catalogue. Check their documentation and wording before use. |
|||
{{Compact ToC}} |
|||
* [[:Template:AlphanumericTOC|AlphanumericTOC]] |
|||
* [[:Template:Category IP TOC|Category IP TOC]] |
|||
* [[:Template:CompactTOCprefix|CompactTOCprefix]] |
|||
* [[:Template:Large category TOC|Large category TOC]] |
|||
* [[:Template:TOC US states|TOC US states]] |
|||
''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. |
|||
== 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. |
|||
{{tlx|AlphanumericTOC|numbers{{=}}yes}} |
|||
{{AlphanumericTOC|numbers=yes}} |
|||
== Local policies and guidance == |
|||
* [[Project:Manual of Style|Manual of Style]] |
|||
Variable, see template page for examples |
|||
{{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]]. |
|||
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. |
|||
== [[Elite Dangerous Wiki: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}} |
|||
Latest revision as of 21:41, 31 October 2026
| 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 talk page. |
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}}
{{Category TOC|numerals=separate|uppercase=no}}