Hi !
I'm working on a extension for Media Wiki. And I need to detect when a categorization is made on an article.
So I search for the annotation with the keyword "category" but, then I need to detect categorizations in other languages.How can I get the translation of the keyword "category" ?
Wich is the best way to add/remove an article from a Category ?
Thanks!
El 24/07/12 19:45, Mauricio Etchevest escribió:
Hi !
I'm working on a extension for Media Wiki. And I need to detect when a categorization is made on an article.
So I search for the annotation with the keyword "category" but, then I need to detect categorizations in other languages.How can I get the translation of the keyword "category" ?
Wich is the best way to add/remove an article from a Category ?
Thanks!
You're doing it the wrong way. You want to call getCategoryLinks() on the parser output. Take a look at LinksUpdate.php
I can get all the categories with the Parser Output, but I can´t add or delete a category. I'm using updateCategoryCounts() in LinksUpdate but it doesn't work.
On Tue, Jul 24, 2012 at 3:23 PM, Platonides Platonides@gmail.com wrote:
El 24/07/12 19:45, Mauricio Etchevest escribió:
Hi !
I'm working on a extension for Media Wiki. And I need to detect when a categorization is made on an article.
So I search for the annotation with the keyword "category" but, then I
need
to detect categorizations in other languages.How can I get the
translation
of the keyword "category" ?
Wich is the best way to add/remove an article from a Category ?
Thanks!
You're doing it the wrong way. You want to call getCategoryLinks() on the parser output. Take a look at LinksUpdate.php
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org