Jump to content
MediaWiki

Manual:Pywikibot/claimit.py

From mediawiki.org
Wikimedia Git repository has this file: scripts/claimit.py
Pywikibot logo
Pywikibot scripts
  • Configuration and scripts
  • Uses
More... »
v · d · e

claimit.py is a script to mass add Wikidata claims to a lot of items based on pages on Wikipedia.

Concept

[edit ]

A category or template on Wikipedia gives information about what kind of page it is. For example if it contains a person infobox, it's probably a person. Or as another example: If a page is in a certain taxonomic family category, it's probably in that family. Based on this information you can instruct the bot to add claims.

Syntax

[edit ]

The bot expects a generator and pairs of property and item:

$ pythonpwb.pyclaimit<somegenerator>P1Q2P3Q4

A concrete example:

$ pythonpwb.pyclaimit"-cat:Countries in Asia"P30Q48

AltStyle によって変換されたページ (->オリジナル) /