Page MenuHomePhabricator

API: mark namespaces that have wikibase enabled
Closed, ResolvedPublic

Description

Script and bots must know if editing page content must be done by using different api modules. So i need a list of namespaces where wikibase is enabled. Reedy had the idea to mark these namespaces by an additional attribute at
http://wikidata.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces


Version: unspecified
Severity: enhancement

Details

Reference
bz42089

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:04 AM
bzimport set Reference to bz42089.

Deriving the content model from the namespace is NOT the right way. It will probably work for wikibase, for now. But the RIGHT way would be to look at each page's content model; the API should be providing it where it makes sense and is useful. If this info is missing somewhere, it should just be added.

While assigning content model based on the namespace is convenient, it's not necessary or reliable. E.g. namespaces in the User: and MediaWIki: namespace may contain wikitext, css, js, and possibly other content types.

AS to Reedy's idea: siprop=namespaces could include the default content model for each namespace. However, people might be mislead to assume that all pages in that namespace will have that content model, which will not necessarily be true.

Closed older resolved bugs as verified.