Last modified: 2011-06-22 20:36:45 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 T31536, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29536 - inconsistent namespace capitalisation handling breaks inline queries
inconsistent namespace capitalisation handling breaks inline queries
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-22 20:36 UTC by Joel Hedlund
Modified: 2011-06-22 20:36 UTC (History)
1 user (show)

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


Attachments

Description Joel Hedlund 2011-06-22 20:36:45 UTC
A page type property set like so:

[[image::image:foo.jpg]] 

will get its capitalisation partially converted, yielding a property named Image (note correct case) that points to the page image:Foo.jpg (note correct case of Foo.jpg and incorrect case of the Image: namespace). 

When included in the results from an inline query {{#ask: ... |format=table}} the image will not be rendered. If I go to the trouble of correcting the namespace case manually, then the image will be rendered, but I'd rather not (babysitting users is tedious). I expect semantic mediawiki to autocorrect the namespace case for me, if only for reasons of consistency since it autocorrects the 2 other instances of incorrect capitalisation in this case. 

There is also an issue with queries on the form {{#ask: [[category:foo]]}, which fail only because the "Category:" namespace is wrongly capitalised. However if a page type property has the same error, e.g. {{#ask: [[prop::category:foo]]}}, then the query works. Furthermore, it works regardless of namespace capitalisation, incuding allcaps {{#ask: [[prop::CATEGORY:foo]]}}. 

I expect semantic mediawiki to use e.g. {{ucfirst: ... }} for namespaces.

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


Navigation
Links