On IRC, Carl Fürstenberg (AzaTht) pointed out that for cmcategory, the Category: namespace prefix is implicit (i.e. for [[Category:People]], you'd use cmcategory=People), while this is not the case for imageinfo and imageusage the Image: namespace is not implied (iutitle=Image:Dog.jpg). For consistency's sake (and to make copying titles from other request easier), Carl suggested categorymembers be changed to explicitly require the Category: namespace prefix. Since this would be a breaking change, however, I'm suggesting this here first and asking for your input on whether we should do this.
Roan Kattouw
Would it be possible to allow both for a while, but deprecating the cmcategory=People format, with loud noisy warnings in the api documentation (and perhaps generate a warning if that style is used). Also, specify a version number and/or date when the old version will go away, and thus break if you're still using the old format.
That gives people the opportunity to still use the latest versions but upgrade their api-calling code in a more controlled manner, testing what they need to test, and migrating independently of an upgrade of the MediaWiki s/w.
Timothy On Nov 1, 2007, at 3:52 PM, Roan Kattouw wrote:
On IRC, Carl Fürstenberg (AzaTht) pointed out that for cmcategory, the Category: namespace prefix is implicit (i.e. for [[Category:People]], you'd use cmcategory=People), while this is not the case for imageinfo and imageusage the Image: namespace is not implied (iutitle=Image:Dog.jpg). For consistency's sake (and to make copying titles from other request easier), Carl suggested categorymembers be changed to explicitly require the Category: namespace prefix. Since this would be a breaking change, however, I'm suggesting this here first and asking for your input on whether we should do this.
Roan Kattouw
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Timothy Hunt schreef:
Would it be possible to allow both for a while, but deprecating the cmcategory=People format, with loud noisy warnings in the api documentation (and perhaps generate a warning if that style is used). Also, specify a version number and/or date when the old version will go away, and thus break if you're still using the old format.
Sounds like a good plan. I'll get on to changing the code some time this week-end.
Roan Kattouw
mediawiki-api@lists.wikimedia.org