Manual:Pywikibot/illustrate wikidata.py/ja

illustrate_wikidata.py is a script used to add images to Wikidata items.

The image is extracted from the page_props page property. For this to be available the extension needs to be installed. On Wikimedia wikis PageImages extension is installed.

Concept
Illustrate Wikidata bot uses the information from page_props to add a claim to Wikidata. By default P18 (image) is used, but it's also possible to add other properties as long as the property is of type commonsMedia.

使用法
The bot expects a :

You can change the property to be added. For example, to add P41 (flag image):