Mike_Peel added a comment.

  Just to note that I've now gotten to the bottom of this in the pywikibot 
code. If after getting the property claim for an external-id, I request 
'clm.getTarget()' - then I get lower case. If, however, I do 
'clm.getTarget().title()' then the first letter is capitalised. To generalise 
the code, I've added a check for if a claim is an external-id or not, and use 
the appropriate call accordingly. This diff: 
https://github.com/mpeel/wikicode/commit/3f2c18ef8c559a02d04b81aa330ad9a843fb3a52

TASK DETAIL
  https://phabricator.wikimedia.org/T322977

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lydia_Pintscher, Mike_Peel
Cc: Mike_Peel, Lydia_Pintscher, Lucas_Werkmeister_WMDE, Aklapper, Mbch331, 
Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, Mattia_Capozzi_WMDE, 
ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, 
LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to