Template:Compact TOC is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use ((edit template-protected)) to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing improvements to the Compact TOC template. |
|
Archives: 1Auto-archiving period: 30 days |
We are using this template on the various parts of List of Nintendo Switch games with "num=yes". The number link works fine on the page containing the numbers, List of Nintendo Switch games (0–9 and A–C). However on other pages, such as List of Nintendo Switch games (D–G), it links to the 0–9 section of that page (e.g. D–G), which of course doesn't exist. How can I specify the sub-article for the numbers, the same way as I do for A, B, C etc (via "a=", "b=", "c="). Sorry if I'm being dumb, but I couldn't figure that out from the documentation. Kidburla (talk) 21:34, 27 October 2021 (UTC)
This diff removed alignment of the optional sections below the ABCDEF listing. It makes (({align))} irrelevant. Please revert. 71.247.146.98 (talk) 11:59, 2 November 2021 (UTC)
The above may be amended, since previous edits re:non-printing moved around text-align blocks. Don't have time to look at the source further right now. The fact remains that the |align=
option does not work for custom sections. 71.247.146.98 (talk) 12:32, 2 November 2021 (UTC)
Using the Download as PDF or Printable version tools on an article displays normal TOCs in the output, but it hides the Compact TOC. It would be useful if there were an option to make this printable again. RandomBlobby (talk) 00:51, 4 June 2022 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please apply this sandbox edit to ((Compact TOC)) to add support for specifying a custom CSS class for the outer container using |class=
. This lets, say, a wrapper template add TemplateStyles that tweaks the custom TOC styling. And on Wikisource (which imports this template) some "magic" CSS classes affect software functionality, so having the ability to set the right magic CSS class to tag parts of the table of contents is critical.
Test case here. Xover (talk) 10:06, 4 December 2022 (UTC)
|class=
parameter that lets you add a CSS class to the template's output, and which in turn can be targetted by TemplateStyles (in a wrapper template) or a user script or Gadget. You can see the change in your web browser's web inspector: <div class="noprint ws-summary">…</div>
(the ws-summary
class was passed as a parameter). Xover (talk) 14:12, 5 December 2022 (UTC)
The TOC on Vector doesn't look too good. Could padding be added around the content of the TOC when using Vector 2022? Dreamy Jazz talk to me | my contributions 10:33, 13 March 2023 (UTC)
toccolours
styles. Jack who built the house (talk) 05:12, 29 December 2023 (UTC)The issue of configurability options for table of contents is being tracked in Phabricator. Mathglot (talk) 06:34, 21 April 2023 (UTC)