User:Kaldari/iNaturalist2Commons

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

iNaturalist2Commons is a user script that lets you import free-license images from iNaturalist to Commons.

Installation

[edit]

To install iNaturalist2Commons, add the following line to your common.js page:

mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Kaldari/inat2commons.js&action=raw&ctype=text/javascript');

Usage

[edit]

Once the user script is installed, go to any Commons category or gallery page for a taxon, for example, Category:Tauraco corythaix. If the taxon has an associated iNaturalist ID in Wikidata, a button will appear next to the page title that says "iNaturalist import".

Note: To enable the button to appear, the Wikidata item for the taxon should have the following fields completed, under the heading Multilingual sites:

  • commons - enter Category:taxon name
  • species - enter taxon name

Click the button to view thumbnails of free-license images of that taxon hosted on iNaturalist. Click a thumbnail to view a larger preview, and then click the "Upload image" button to upload the image to Commons. All images imported with this user script are automatically added to Category:Uploaded with iNaturalist2Commons.

Development

[edit]

The code for iNaturalist2Commons is hosted on GitHub. Please report any issues at https://github.com/kaldari/iNaturalist2Commons/issues.

See also

[edit]