add namespace restrictions to meta=siteinfo
Open, LowPublic

Description

It would be good to find a way to provide namespace restrictions ([[mw:Manual:$wgNamespaceProtection]]) with "meta=siteinfo" module,

  • in a new "siprop" parameter
  • or in already existent "siprop=namespaces" module.

Version: unspecified
Severity: enhancement

Details

Reference
bz71952
bzimport raised the priority of this task from to Low.
bzimport set Reference to bz71952.
bzimport added a subscriber: Unknown Object (MLST).

Please provide a usecase because I cannot guess why "it would be good". Thanks!

User scripts or gadget could need this information to know if a user can or cannot edit a page depending on its namespace.

I think to LiveRC gadget, for example ([[fr:Wikipédia:LiveRC/Sources]]).

It is as probably as reavelant as "case" or "subpages" attributes already provided with "meta=siteinfo&siprop=namespaces"

Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Feb 19 2015, 6:26 PM