Template:Category 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 template is within the scope of WikiProject Categories, a collaborative effort to improve the coverage of categories on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.CategoriesWikipedia:WikiProject CategoriesTemplate:WikiProject CategoriesCategories
This template was considered for merging with Template:CatAZ on 14 April 2011. The result of the discussion was "do not merge".
Where's the documentation at (no link)? --Scriberius (talk) 18:05, 24 May 2008 (UTC)
{{editprotected}}
I agree that there should be a documentation page, given that the template is protected. I have come here, however, to request another change:[reply]
Since that category is on the French Wikipedia, it is only possible to add people that already have an article there. Since Rick Sopher only has an article on the English Wikipedia [1], a separate article (in French) would need to be created. You can do this by following this link: http://fr.wikipedia.org/w/index.php?title=Rick_Sopher&action=edit&redlink=1
At the bottom of the new article, put [[Catégorie:Chevalier de la Légion d'honneur]] and [[en:Rick Sopher]] on separate lines in the edit window to add it to the category and to add a link back to the english version in the sidebar. Tra(Talk)20:49, 20 March 2012 (UTC)[reply]
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
Charles Windsor Bower United States Army Major is a recipient of the Bronze Star for his Heroism in Pearl Harbor, The Philipines and Korea during World War II
Sincerely,
Geron Decker
GrandsonDanthe3rd (talk) 10:29, 20 May 2012 (UTC)[reply]
Good to know. That said, I think you might have posted on the wrong page, so you might try posting your request on the page that uses this template, presuming that you wish to add this person to whatever list/category that brought you here. --slakr\ talk /01:08, 22 May 2012 (UTC)[reply]
In the same way as numerals can be displayed either separately or grouped, I would like to be able to display letters either separately or grouped. Category:Pistol and rifle cartridges contains entries primarily beginning with a numeral. If I were to add a TOC to that category, I would wish to display numerals separately and group the letters as A-Z. StraightAsADie (talk) 00:12, 4 July 2013 (UTC)[reply]
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
In the same way as numerals can be displayed either separately or grouped, I would like to be able to display letters either separately or grouped. Category:Pistol and rifle cartridges contains many entries beginning with a numeral and few entries beginning with a letter. I have manually coded a TOC for that page which groups letters as A-Z, but would prefer to use a standard template.
I have added the ability to group letters into this template's sandbox: Template:Category TOC/sandbox. Updated documentation including test cases are in: User:StraightAsADie/sandbox. Note that the documentation links to the sandbox.
This change is completely backwards compatible with the current template. All existing instances of the template will display the same as they currently do. The new uppercase=group or lowercase=group parameters must be added to activate the new features.
I have fixe it on Wikivoyage/de, but am not allowed to edit it here. Just add an {{#ifeq:{{{align|}}}|center|margin:auto;|}} to the sytle-section. -- DerFussi (talk) 07:47, 9 October 2013 (UTC)[reply]
Shouldn't the text: should only be added to category pages and should not be used for categories containing less than 400 pages be removed from the description? It is not clear why a TOC cannot be added to any category of over 200 (maybe even less?) in this day and age when many are trying to access Wikipedia on very small screens? Ottawahitech (talk) 14:25, 11 January 2015 (UTC)[reply]
@Ottawahitech: The MediaWiki default is to display 200 items per page: having a table of contents for less than that would make anchors in the same document and wouldn't aid in navigation. I don't know about mobile: have you looked at any categories on a mobile device? —Justin (koavf)❤T☮C☺M☯17:43, 20 January 2015 (UTC)[reply]
Thanks for responding Koavf. No, I have not looked at categories on a mobile recently, just threw this out to get some discussion going. As far as I am concerned I'd be happy with replacing the 400 with 200 in the text of this template. I do hope, though, that others would opine too. Ottawahitech (talk) 13:38, 21 January 2015 (UTC)[reply]
Opinions No problem. And I will happily accept some other standard or consensus but I don't see a lot of folks writing here as it's a pretty obscure template talk page. By all means, go for it. Thanks. —Justin (koavf)❤T☮C☺M☯16:23, 21 January 2015 (UTC)[reply]
I have a need on an independent MediaWiki for a Category TOC that displays both Latin and Hiragana characters at the same time. Unicode order is acceptable. Is this possible? --Rob Kelk13:27, 21 August 2016 (UTC)[reply]
A category such as Category:Houses by year of completion would be much better with a TOC having links to each century featured within the content. I think this would require a new template.
It could be similar to Template:TOCyears, which requires manual input for start and end dates, or Template:Compact ToC election decades, which requires input listing the relevant decades to be displayed. (Those examples show years and decades rather than centuries.)
@Fayenatic, it seems to me that what you are describing is a navbox, not a TOC, because the links you intend are presumably to the by-century categories rather than to items on the current page.
Category:Houses completed in 1885 has a TOC so that we can jump to contents e.g. house names beginning with V. It ought to be possible for the parent to have a TOC so that we could jump to contents e.g. years beginning with 18.
Sure, the other templates that I mentioned give links to sections within an article rather than members within a category, but I thought there might be some code that could be re-used. – FayenaticLondon20:11, 1 October 2019 (UTC)[reply]
I note that this template was on the list for conversion to {{TOC top}}as far back as 2012 (pinging User:Thumperward); however, the conversion still hasn't happened, and from a brief skim I don't see any relevant discussion on this talk page either. Is this conversion still planned? Is there something holding it up? Is it just a matter of someone making the change? 「ディノ奴千?!」☎ Dinoguy100005:24, 3 February 2022 (UTC)[reply]
There's no way I'm going to recall a discussion from literally a decade ago, and with ~150k page potentially impacted here I'm unlikely to be willing or able to reserve the time to look at it properly. But I'm certainly happy for anyone else thus inclined to have another look at it. Chris Cunningham (user:thumperward) (talk) 18:32, 4 February 2022 (UTC)[reply]
Are you using Vector 2022 in safe mode? See my screen shot of this template's doc page to the right. This happens to me in Mac OS Firefox and Brave. no borders – Jonesey95 (talk) 17:47, 22 January 2023 (UTC)[reply]
Thanks for the link. I was able to make yet another adjustment to my common.css to work around this bug/oversight. I am wanting to like this beta skin, but I sure have had to work around a lot of bugs and unfinished coding (not to mention the design choices that are not my cup of tea). My favorite so far is the 24px of empty space at the top of the page (see T325219), which should have been the work of a moment to fix and a nice quick win for the team to trumpet, but it's been moldering for over a month. – Jonesey95 (talk) 01:30, 23 January 2023 (UTC)[reply]
The .toc class removal was a clear design choice of removal and has a basic rationale that it's simply not needed. The .toccolours class removal I'm less thrilled about. Izno (talk) 04:12, 23 January 2023 (UTC)[reply]