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

       Web browser: ---
            Bug ID: 45131
           Summary: wbgetentities should apply basic normalization to
                    titles in parameters.
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

The titles given in the "titles=" parameters of the wbgetclaims module are
expecting spaces, not underscores, while elsewhere, we always use underscores
in the canonical title form.

Basic normalization should be performed on the titles used to select items:
strip leading/trailing whitespace, apply unicode normalization, replace " "
with "_" (or vice versa, as needed). 

More advances normalization, especially involving namespaces, is not possible
without calling the target wiki's API, which is too slow for this purpose. 

Converting the first character to upper case is a borderline case: it could be
done, but we can't be sure that it's appropriate.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to