Template talk:CategoryTOC

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Bugzilla[edit]

Please see bugzilla:1649. Thanks! Gangleri | Th | T 12:39, 7 Mar 2005 (UTC)

Category:Dutch pronunciation is one category where lower case entries are the majority of the entries in there. GerardM 10:54, 21 February 2006 (UTC)[reply]

Top, start, * or beginning?[edit]

I never thought about it before but "Top" is kinda weird on a category. "Beginning" is probably the best but a tad long. Maybe "Start"? Or is "*" understandable enough? Rocket000 (talk) 23:27, 27 July 2010 (UTC)[reply]

Accessible markup[edit]

@Ahecht and Verdy p:

The HTML from this template has the form:

<a class="external text" href="https://..." title="">September</a> <a class="external text" href="https://..." title="">October</a>

Could this be rendered instead as a list, using markup like like:

* [[foo|September]]
* [[foo|October]]

with its parent container (div?) having class="hlist" so that it appears horizontally, with styled (non-printing) separators, thus:

please? List markup is more accessible for people using assistive technologies to read pages to them. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:58, 2 June 2022 (UTC)[reply]

@Pigsonthewing I am already working on module:TOC to replace most of the function of this template, so I'll implement that there. Ahecht (TALK
PAGE
) 17:10, 2 June 2022 (UTC)[reply]
Ahecht Great, thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:35, 2 June 2022 (UTC)[reply]
@Pigsonthewing It's implemented for the numbers and English letters. I've applied for AWB access on commons to change over the other languages. Ahecht (TALK
PAGE
) 18:33, 2 June 2022 (UTC)[reply]

Sortkey prefix[edit]

What is sortkey prefix? How it works? Juandev (talk) 20:10, 19 September 2023 (UTC)[reply]

If all pages’ sort keys begin with the same string (e.g. there are no custom sort keys – either per-category or defaultsort – defined on the categorized pages, and their titles are “Foo page Aaa”, “Foo page Aab”, “Foo page Bbb” etc.), you can define the common prefix (in this example, “Foo page”) so that the alphabet links jump to the first page where the differing part begins with the given letter (i.e. clicking A jumps to Foo_page_Aaa, clicking B jumps to Foo_page_Bbb, and so on). It’s also useful if there are a few groups of common prefixes (e.g. sort keys start with either “Foo” or “Bar”), and you want to add multiple CategoryTOC templates, one per prefix group. —Tacsipacsi (talk) 07:35, 20 September 2023 (UTC)[reply]
Well I have tried that, but it didn't work. Maybe I am filling out other fields badly? For example in this revision, I am experimenting with that, but it seems to me that clicking on it does nothing and there is an empty URL to start from. Juandev (talk) 10:44, 20 September 2023 (UTC)[reply]
To me, it seems to work, except that it doesn’t handle quotation marks in the value (is there any real-world example for using quotation marks in sort keys?). —Tacsipacsi (talk) 21:30, 20 September 2023 (UTC)[reply]
Could you provide the example? If I remove quotation marks the text disapears. Quotation marks are being used in python for example. Juandev (talk) 05:28, 21 September 2023 (UTC)[reply]
Yes, it disappears, because exactly that’s the purpose of this parameter: to be included in the link without being displayed. Python is irrelevant here, MediaWiki templates are not a real programming language. —Tacsipacsi (talk) 19:44, 21 September 2023 (UTC)[reply]
Could you provide an example? Juandev (talk) 10:09, 22 September 2023 (UTC)[reply]