Last modified: 2013-08-22 14:55:30 UTC
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
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.
commited Gerrit change #34973
successfully merged
Closed older resolved bugs as verified.