create magic word __NOCATEGORY__
Closed, ResolvedPublic

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__

bzimport added a project: MediaWiki-Categories.Via ConduitNov 21 2014, 10:22 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz15941.
Cenarium created this task.Via LegacyOct 11 2008, 5:52 PM
bzimport added a comment.Via ConduitOct 11 2008, 6:55 PM

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.

Platonides added a comment.Via ConduitOct 11 2008, 8:15 PM

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

Cenarium added a comment.Via ConduitOct 11 2008, 8:32 PM

(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.

Cenarium added a comment.Via ConduitOct 11 2008, 8:42 PM

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).

Ilmari_Karonen added a comment.Via ConduitOct 12 2008, 11:36 AM

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]]."

Platonides added a comment.Via ConduitOct 12 2008, 3:57 PM

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>

Cenarium added a comment.Via ConduitOct 12 2008, 4:11 PM

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.

bzimport added a comment.Via ConduitOct 12 2008, 6:35 PM

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

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.