Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a24048cf5bbfc6f8

Jump to content

Template talk:Draft categories

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 2 years ago by Sdkb in topic Functionality with VisualEditor

Edit request

[edit source]

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 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}}

[edit source]

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?

[edit source]

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

[edit source]

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

[edit source]

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