Template talk:Draft categories

Edit request
Please replace and
 * pattern=:[Cc]ategory
 * ?[Cc]ategory:

with and
 * pattern=:[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]
 * ?[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)


 * Pinging 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 &bull; videos) 03:16, 24 May 2020 (UTC)
 * I don't really see a need for complications. There are 14,000 drafts with "Category" in some capitalization but only 20 [//en.wikipedia.org/w/index.php?cirrusUserTesting=glent_m0&sort=relevance&search=insource%3ACategory+insource%3A%2FCATEGORY%3A%2F&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns118=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)
 * 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)
 * ❌ Agree with PrimeHunter, this is entirely pointless. * Pppery * it has begun... 16:43, 27 May 2020 (UTC)

Doesn't work with tlx
Discussion is at Template talk:Template link expanded (permalink). davidwr/ (talk)/(contribs) 🎄  14:19, 21 December 2020 (UTC)

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. &horbar;Jochem van Hees (talk) 11:36, 22 June 2021 (UTC)

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)

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.  Sdkb  talk 05:15, 20 June 2024 (UTC)