User:TechieNK/Cat2Data

Cat2Data
Description Batch editor for adding and removing Wikidata property-value pairs
Author TechieNK, Yaron_Koren
Status Stable
First released May 20, 2025; 38 days ago (2025-05-20)
Updated See latest edit
Source User:TechieNK/Cat2Data.js

Install Cat2Data and easily manage Wikidata property-value edits for all files in a Commons category using an intuitive, conflict-free interface with autocomplete and live search support.

Install

Append the following line to your your common.js file.

importScript("User:TechieNK/Cat2Data.js");

Usage

  1. Go to your target Commons category page (e.g., Category:LibriVox - Les Misérables, by Victor Hugo).
  2. You will see a new tab labelled Data for files in the top navigation bar.
  3. Click on Data for files to open the property editor interface.
  4. Use the form to select properties and values you want to add or remove for all files in the category.
  5. Autocomplete suggestions and live Wikidata search help you quickly find valid properties and items.
  6. Click Go to apply your changes. A summary will display which values were added or already existed.
  7. All changes are applied safely and in bulk with edit summaries like Added via Cat2Data.

Note

  • The Data for files tab will only appear on Commons category pages (i.e., pages in the Category: namespace). It will not be visible on file pages, user pages, or other namespaces.
  • ⚠️ Currently, Cat2Data only supports editing the following Wikidata data types: wikibase-item, string, Point in time.

Demo video

Credits

Cat2Data was created by Naresh Kumar Babu and Yaron Koren. Elements of the code and interface were inspired by the Wikidata Forage script.

The creation of Cat2Data was funded by a Wikimedia Rapid Grant.

Category:Structured Data on Commons Category:User scripts
Category:Structured Data on Commons Category:User scripts