Skip to content

lucaswerkmeister/ACDC

Repository files navigation

AC/DC

Add to Commons / Descriptive Claims is a gadget for Wikimedia Commons to add a collection of statements to a set of files. See the on-wiki documentation for more information.

Development

For local development, I usually load manifest.json as a temporary extension in about:debugging, then open this page and test the gadget there. Code changes to acdc.js become effective after a reload of the page (there’s no need to reload the temporary extension). Note that this is only possible in Firefox – I’m not aware of a way for a WebExtension to run code in the page content in Chrome or other browsers.

For deployment, run make all to build the Commons version of the script, copy dist/main.js to the clipboard and save that on MediaWiki:Gadget-ACDC.js. Afterwards, copy the page revision from the “permanent link” in the sidebar and tag the current commit as rrevid, then push main and that tag to origin.

When introducing new dependencies in package.json, add them to dependencies if they’re necessary to build the gadget (make all), or to devDependencies if they’re only necessary to test it (make check). In other words, rm -rf node_modules/ && npm install --prod && make all should always succeed.

License

As this script is published on Wikimedia Commons, it falls under the Creative Commons Attribution-ShareAlike 3.0 Unported license (CC BY-SA 3.0). Additionally, I place it under the Creative Commons Attribution-ShareAlike 4.0 International license (CC BY-SA 4.0), and I’m open to publishing it under other free licenses too.

If you contribute to this script, you agree to release your contributions under the same licenses, and I may contact you in the future to request additional licenses.

About

gadget for Wikimedia Commons to add a collection of statements to a set of files

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages