Last modified: 2012-07-06 10:14:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37221, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35221 - Categories can contain themselves
Categories can contain themselves
Status: NEW
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-14 12:21 UTC by Rd232
Modified: 2012-07-06 10:14 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rd232 2012-03-14 12:21:43 UTC
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.
Comment 1 Bawolff (Brian Wolff) 2012-03-14 18:04:49 UTC
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)
Comment 2 Michael M. 2012-03-15 10:57:40 UTC
Satirical wikis like self-containing categories, I don't think you will find one without. For example:
* http://uncyclopedia.wikia.com/wiki/Category:Self-reference
* http://kamelopedia.mormo.org/index.php/Kategorie:Re%28h%29kursion
Comment 3 Rd232 2012-07-06 10:14:04 UTC
Well, maybe we can add some additional "no really, this category SHOULD include itself" mechanism.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links