HomePhabricator

[IMPR] get commons category from wikibase

Authored by Xqt on May 5 2019, 7:29 AM.

Description

[IMPR] get commons category from wikibase

  • introduce a new Page method get_best_claim to retrieved the first preferred or the first claim referring to the given page
  • if a wikibase is connected use the best Claim with id P373 for wikidata to get the commons category for the given page
  • page parameter must be mandatory in findCommonscatLink method
  • remove pwb release comment about Page.interwiki method

Bug: T175207
Change-Id: Ic34a49f53a14699bd039e112075998c2f404afb9

Details

Committed
XqtSep 19 2020, 1:09 PM
Parents
rPWBC91ff38ad73a6: Update commonscatTemplates for ar, arz, ary
Branches
Unknown
Tags
Unknown
ChangeId
Ic34a49f53a14699bd039e112075998c2f404afb9