https://bugzilla.wikimedia.org/show_bug.cgi?id=29536

       Web browser: ---
             Bug #: 29536
           Summary: inconsistent namespace capitalisation handling breaks
                    inline queries
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to