harvest_template should be able to create multiple statements for infobox fields that contain a list of items. For example, creating multiple has_part statements from past_members and current_members fields of Infobox musical artist.
Description
Details
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | matej_suchanek | T87689 Harvest lists of items from a single infobox field | |||
| Resolved | matej_suchanek | T72702 claimit and harvest_template - add another value for one property | |||
| Resolved | matej_suchanek | T69284 claimit.py should add another value but not duplicate |
Event Timeline
I should highlight that importing multiple values is okay only by certain parameters (like the mentioned ones). For example, place_of_birth may contain more links but only the first one is valid.
Just to make it clear.
To implement this, there should be added one more command line option (something like ~"-listok" / "-multiple") which will tell to script that is ok to harvest all listed values in a template parameter; but by default this should be disabled (it is not always safe, as Matej said above).
Change 364475 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[pywikibot/core@master] [IMPR] Enhance argument management in harvest_template.py
Change 364475 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] Enhance argument management in harvest_template.py
Change 371586 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[pywikibot/core@master] [WIP] harvest multiple values from one parameter
Change 377182 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[pywikibot/core@master] WIP Split lists to harvest multiple things
Change 371586 merged by jenkins-bot:
[pywikibot/core@master] Harvest multiple values from one parameter
Change 377182 abandoned by Ejegg:
Split lists to harvest multiple things
Reason:
alternate approach was merged