Page MenuHomePhabricator

support Wikidata in commons_link.py
Closed, DeclinedPublicFeature

Description

commons_link.py now can add {{commonscat}} or {{commons}} when commons page have the same name like the page.
For many pages is this value stored on wikidata, so bot should look at first to corresponding item on wikidata (P373 = commonscat, P935 = commons). When there is not, look for category/gallery on commons

additionally, script should use standad pagegenerators.py, now is supporting only -link(s) / -cat / -page / -ref


Version: unspecified
Severity: enhancement

Details

Reference
bz57027

Related Objects

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:37 AM
bzimport set Reference to bz57027.
bzimport added a subscriber: Unknown Object (????).

Change 147899 had a related patch set uploaded by Ricordisamoa:
standard pagegenerators and minor improvements for commons_link.py

https://gerrit.wikimedia.org/r/147899

Change 147899 merged by jenkins-bot:
standard pagegenerators and minor improvements for commons_link.py

https://gerrit.wikimedia.org/r/147899

Standard pagegenerators have been implemented:

Only the Wikidata part remains, and also applies to core.

Aklapper triaged this task as Low priority.Feb 4 2022, 10:51 AM
Aklapper changed the subtype of this task from "Task" to "Feature Request".
Xqt subscribed.

commons_link.py is archived and not actively maintained. Please feel free to reopen this task and ask to recover this script if you want to use it.