Last modified: 2013-08-22 14:55:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44089, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42089 - API: mark namespaces that have wikibase enabled
API: mark namespaces that have wikibase enabled
Status: VERIFIED FIXED
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Umherirrender
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-14 00:45 UTC by merl
Modified: 2013-08-22 14:55 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description merl 2012-11-14 00:45:08 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
Comment 1 Daniel Kinzler 2012-11-14 09:14:41 UTC
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.
Comment 2 Daniel Kinzler 2012-11-14 09:16:35 UTC
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.
Comment 3 Umherirrender 2012-11-24 16:56:46 UTC
commited Gerrit change #34973
Comment 4 Umherirrender 2012-12-14 13:15:26 UTC
successfully merged
Comment 5 denny vrandecic 2013-08-22 14:55:30 UTC
Closed older resolved bugs as verified.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links