Parsoid would make pulling out and editing the category tags much easier.
This might be an interesting test case for the parsoid-DOM future.
  --scott
On Jul 17, 2013 6:41 PM, "Yuvi Panda" <[email protected]> wrote:

> On Thu, Jul 18, 2013 at 4:06 AM, Tyler Romeo <[email protected]> wrote:
> > Quick question, is there a way in the API (other than action=edit) to
> > add/remove categories from a page? Because that seems to be one of the
> main
> > things that would be holding this back from becoming an extension proper.
>
> There isn't currently (we hit this in the mobile commons app).
> Currently we have to get the wikitext, parse out the categories (eek
> wikitext), and then add/replace/edit them. Regexes all over. Not fun.
>
> But fixing that would take a lot more work, I think.
>
>
> --
> Yuvi Panda T
> http://yuvi.in/blog
>
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to