Page MenuHomePhabricator

create magic word __NOCATEGORY__
Open, LowPublicFeature

Description

It would be helpful to have a magic word NOCATEGORY removing all categories from a page. The content of pages like sandboxes or certain maintenance pages changes frequently and add unwanted categories from transcluded templates. There is no other possibility to fix this issue efficiently apart from removing or hiding somehow all categories on the page, see the discussion at http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#__NOCATEGORY__ .


Version: 1.14.x
Severity: enhancement
URL: http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=244627175#__NOCATEGORY__

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:22 PM
bzimport set Reference to bz15941.
bzimport added a subscriber: Unknown Object (MLST).

mike.lifeguard+bugs wrote:

(In reply to comment #0)

It would be helpful to have a magic word NOCATEGORY removing all categories
from a page. The content of pages like sandboxes or certain maintenance pages
changes frequently and add unwanted categories from transcluded templates.
There is no other possibility to fix this issue efficiently apart from removing
or hiding somehow all categories on the page, see the discussion at
http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#__NOCATEGORY__
.

Seems like a very limited use case; I don't think we need this.

You can use CSS to hide categories of a given page.

(In reply to comment #1)

(In reply to comment #0)

It would be helpful to have a magic word NOCATEGORY removing all categories
from a page. The content of pages like sandboxes or certain maintenance pages
changes frequently and add unwanted categories from transcluded templates.
There is no other possibility to fix this issue efficiently apart from removing
or hiding somehow all categories on the page, see the discussion at
http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#__NOCATEGORY__
.

Seems like a very limited use case; I don't think we need this.

I don't think the use is limited. Personal sandboxes or temporary drafts (for example http://en.wikipedia.org/wiki/Talk:Sarah_Palin/Draft_article) are very common, and userfication (http://en.wikipedia.org/wiki/Wikipedia:Userfication) is also a common practice. Categories and templates transcluding categories have to be deactivated, which is sometimes cumbersome and affects editability. There are also new kind of maintenance pages for templates like http://en.wikipedia.org/wiki/Wikipedia:Main_Page/Protection or http://en.wikipedia.org/wiki/User:Cenarium/Protected_templates where templates are temporarily or permanently transcluded. There are certainly other possible uses. Some monobooks also are added to categories inappropriately.

(In reply to comment #2)

You can use CSS to hide categories of a given page.

More precisely on the function, it should remove the page from all categories (so that readers see only articles, it's the point of "deactivating" all those categories). But whether the categories are shown at the bottom of the page is not very important. Actually, it would be better to let them for sandboxes.

Reopen as it's the other way around: the page shouldn't show up in categories. However, the page can show categories.

Is more community support needed for this ? The discussion is recent (5 hrs on VP/T).

This has been on my personal wish/todo list for a long time. However, I think it would be more appropriate to use a custom tag like <nocat></nocat> rather than a page-global magic word, so that one can wrap transcluded (or substed / cut-and-pasted) content in such tags without having to disable categorization for that page entirely. That is, I'd like to be able to do this:

"To mark a page for speedy deletion, type <nowiki>{{deletebecause|Reason here}}</nowiki>, which produces <nocat>{{deletebecause|Reason here}}</nocat> and (if used without the &lt;nocat&gt; tags) adds the page to [[:Category:Candidates for speedy deletion]]."

I prefer the <nocat></nocat> approach. However, I'm unsure if the current tag
functionality will be able to cope with the odd
<noinclude><nocat></noinclude>[[Category:Foo]]<noinclude></nocat></noinclude>

Agreed it would be even better, like David Göthberg suggested at VP/T, it could be used to add the page to appropriate categories and not to unwanted ones, like for various template messages pages, from http://en.wikipedia.org/wiki/Wikipedia:Template_messages.

Specifically, a tag <nocat> (or <nocategory>) such that when a category or a categorizing template is wrapped in them, then the page doesn't show up in those categories.

However, all categories should be shown at the bottom of the page as usual (so that new users see the categories when testing, essentially). Though having a possibility to hide them also would be handy on certain other pages, though it would require the creation of another tag. But this later point is not very important.

rowan.collins wrote:

There's already much discussion (and also a lot of noise) about this under Bug 835

*** This bug has been marked as a duplicate of bug 835 ***

I will reopen this bug as it is more focused than T2835.
This one asks for a page-wide magic word NOCATEGORY, while T2835 asks for ways to transclude templates without inheriting their categories / interwikis.

A NOCATEGORY magic word is actually not that difficult to implement, compared to T2835.
In addition, it can be implemented in such a way that hidden categories are still categorized, which allows hidden maintenance categories.

Change 255428 had a related patch set uploaded (by Cenarium):
Add magic word NOCATEGORY

https://gerrit.wikimedia.org/r/255428

Aklapper lowered the priority of this task from Medium to Low.Nov 25 2015, 7:35 PM
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.