"MM" == Magnus Manske magnus.manske@web.de writes:
MM> Well, the code *I* wrote (which I assume is what you're MM> talking about) is finished, in the sense of "it works, but it MM> ain't too pretty".
OK. Right now, as far as I can tell, it doesn't seem to work, since it's commented out. I can find the part where it collects the category links, but I can't find the part where it renders them.
The whole thing is blocked out by a "CHECK MERGE" comment, which I guess means it was a merge problem.
MM> Example: "[[Category:Stuff]]" somewhere in the article will MM> show a link above (similar to language links), leading to the MM> category page ("Category:Stuff"). That will automagically list MM> all pages in that category (meaning, that link there via MM> category link). A category page can be edited like a normal MM> page (the article list is automatically shown below), and can MM> include "super-categories" (e.g., "[[Category:Biology]]" on MM> "Category:Zoology"). Any page can, of course, have many MM> categories.
Hrm. OK, I'm grokking part of this, at least. There's some stuff in the skin code to do category links. I'll see if I can reenable it in the unstable branch.
MM> You'll have to enable categories in LocalSettings, but I MM> forgot how :-(
$wgUseCategoryMagic.
So, I think that this is a nice piece of work. Since it's not in use in production -- couldn't be, with all that commented-out stuff -- how would you feel about me generalizing it to just another kind of metadata? That is, instead of trying to find [[Category:Foo]], use [[metadata:category:foo]] instead?
This would leave the door open for other kinds of metadata.
~ESP