Topic on Extension talk:FlaggedRevs

Getting $wgFlaggedRevsNamespaces configuration in JavaScript

1
Dr Brains (talkcontribs)

Hello,

I am looking for a way to get the content of $wgFlaggedRevsNamespaces variable through javascript, to define if a particular namespace is under review or not. I've searched in API help but it seems there is no sush a feature.

Of course, I could :

  1. list namespaces through meta=siteinfo&siprop=namespaces
  2. look for the first page in each namespaces with list=allpages
  3. test the flag status of theses pages through prop=flagged

but wow, this is a bit complicated just to get this poor information.

Does anyone know an easier way to do it?

Thank you.

Reply to "Getting $wgFlaggedRevsNamespaces configuration in JavaScript"