Page MenuHomePhabricator

Categories can contain themselves
Closed, DeclinedPublic

Description

Author: rd232

Description:
It is possible to make categories contain themselves (eg Category:X can contain Category:X in a list of its own members - the link works, clicking it takes you to... Category X). This seems a rather silly thing to make possible; this bug is asking for such nonsensical categorisation to be ignored when the category page is displayed, so that if Category X does contain the code "[[Category:X]]", it doesn't do anything.

You might say "well categorising a category in itself is a silly thing to do, so just don't do it" - but if you have a template that automatically categorises into a category, and you want to display that template in the category, you need to add special collision detection just because this silliness is possible. Removing the silliness would make life quite a bit simpler, templatewise.


Version: unspecified
Severity: normal

Details

Reference
bz35221

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:19 AM
bzimport set Reference to bz35221.
bzimport added a subscriber: Unknown Object (MLST).

I would want to make very sure that nobody wants the current behaviour before changing it.

Examples of possible uses of this:
*Having category:Hidden Categories be in Category:Hidden Categories if its hidden. (Ok, ignoring tracking categories, I really can't think of anything else, but maybe somebody else has)

rd232 wrote:

Well, maybe we can add some additional "no really, this category SHOULD include itself" mechanism.

matmarex claimed this task.
matmarex subscribed.

I think this is intentional behavior, and it seems more sensible to me than special-casing.