Skip to content

hay/wiki-tools

Repository files navigation

Hay's wiki tools

Source code for all of my wiki tools

Setup

  • Create a config.php file (use config-sample.php as an example) in the lib directory.
    • If you plan on using docker-compose you can require_once __DIR__ . '/../.docker-compose/config.php';, which defines many things automatically.
  • Do a composer install in the lib/ directory. For this you need Composer.
  • Do a bower install in the root directory. For this you need Bower npm install -g bower.
  • Some tools (like VizQuery, or Depictor) need an npm install or composer install in their root as well.
    • VizQuery also needs a 'npm run build' to build the bundle.

Setting up your own OAuth consumer for Depictor

Here are some OAuth consumer references to help you during setup: Depictor production on Commons, Addshores local development on meta.

You can setup your own local development consumer by following these steps:

You will then be provided a key and secret that you need to define in OAUTH_DEPICTOR in your config.php file.

Running it (Docker)

Running it (Classic)

  • Get a webserver with PHP, and host the needed files
  • Configure the config.php file to reflect where these files will be served
  • Setup MySQL, inclusing creating the tables you can find in various .sql files

Remarks

  • To generate the props.html file that is used in the Wikidata Property browser, either:

License

All code is licensed under the terms of the MIT / X11 license.

Credits

Some of this stuff was written for my work as Wikipedian in Residence at the Dutch National Library and National Archive.

About

Code for my Wikimedia Labs Tools account

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published