Template talk:Draft categories

Page contents not supported in other languages.
Source: Wikipedia, the free encyclopedia.

Edit request

Please replace

|pattern=:[Cc]ategory

and

:?[Cc]ategory:

with

|pattern=:[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]

and

:?[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]:

This should allow the template to function no matter how "CATEGORY" is capitalized, whether it is all-caps or no-caps or leading-caps, or 1337 or camelcase. This would allow it to function with all the acceptable spellings MediaWiki allows. (thus it will not perform unexpectedly in not allowing valid CATEGORY statements)

-- 65.94.170.207 (talk) 23:44, 23 May 2020 (UTC)[reply]

Pinging PrimeHunter who has mostly worked on this. I'd rather get their opinion if they think it's a reasonable change or not first. –Deacon Vorbis (carbon • videos) 03:16, 24 May 2020 (UTC)[reply]
I don't really see a need for complications. There are 14,000 drafts with "Category" in some capitalization but only 20 [1] with "CATEGORY" which is probably the most common alternative to Category/category. None of them use the template. Another rare way to fool the template is spaces around "Category". All that happens is that a very few drafts may be placed in categories until they are cleaned up. PrimeHunter (talk) 08:38, 24 May 2020 (UTC)[reply]
Since leading and trailing spaces are also affected, then just addding regexp for handling those cases, also. It would make the template function with these valid formulations, thus the space formulations, which also seem not overly uncommon in ArticleSpace, work as expected with this template. It seems like minor changes for capitalization and leading and trailing spaces, for conforming to MediaWiki existing functionality. 65.94.170.207 (talk) 22:16, 24 May 2020 (UTC)[reply]
 Not done Agree with PrimeHunter, this is entirely pointless. * Pppery * it has begun... 16:43, 27 May 2020 (UTC)[reply]

Doesn't work with {{tlx}}

Discussion is at Template talk:Template link expanded#Broken with Template:Draft categories (permalink). davidwr/(talk)/(contribs) 🎄 14:19, 21 December 2020 (UTC)[reply]

New parameter for which namespace the draft is for?

Most of the time when you're using this template you want to ultimately move it to the article namespace, but I think it would also make sense to use this template if you're for example drafting something for the project space. I'd suggest adding a |namespace= parameter where you can specify this so that it updates the text. ―Jochem van Hees (talk) 11:36, 22 June 2021 (UTC)[reply]

This template isn't working anymore

Categories still appear in drafts with this template now Immanuelle ❤️💚💙 (talk to the cutest Wikipedian) 16:11, 12 March 2023 (UTC)[reply]

Functionality with VisualEditor

I notice that, when an article with draft categories is moved to mainspace and then edited with the VisualEditor, if the draft categories container has not yet been removed, the existing categories do not show up. This bug should ideally be resolved, as people writing drafts are disproportionately likely to be using the VE. Sdkbtalk 05:15, 20 June 2024 (UTC)[reply]