A tool that evaluates high-risk Wikipedia templates https://tools.wmflabs.org/earwig-dev/tif
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ben Kurtovic 3433a3a6b0 Commas in numbers. 3 years ago
static Clean up, units. 3 years ago
templates Commas in numbers. 3 years ago
tif Fix name shadowing. 3 years ago
.gitignore More work on templates and calculator. 3 years ago
LICENSE Initial commit 3 years ago
README.md DB schema. 3 years ago
app.fcgi Pass empty result dict on initial page load. 3 years ago
schema.sql Another fixup, FLOAT -> DOUBLE in cache table. 3 years ago


This is a tool that calculates the Template Influence Factor of a Wikipedia template, which is a measure of how high risk it is, for the purposes of anti-vandalism. It runs on Wikimedia Labs.



  • Install all dependencies listed above.

  • Create an SQL database based on schema.sql on the same server as your MediaWiki database.

  • Create an earwigbot instance in .earwigbot (run earwigbot .earwigbot). In .earwigbot/config.yml, fill out the connection info for the database by adding the following to the wiki section:

        host: <hostname of database server>
        db:   <name of database>

If additional arguments are needed by oursql.connect(), like usernames or passwords, they should be added to the _tifSQL section.

  • Start the web server (on Tool Labs, webservice2 uwsgi-python start).