A tool that evaluates high-risk Wikipedia templates https://tools.wmflabs.org/earwig-dev/tif
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

README.md 1.3 KiB

8 anni fa
12345678910111213141516171819202122232425262728293031323334353637
  1. This is a tool that calculates the
  2. [Template Influence Factor](https://en.wikipedia.org/wiki/User:The_Earwig/Sandbox/TIF)
  3. of a [Wikipedia template](https://en.wikipedia.org/wiki/Help:Template), which
  4. is a measure of how
  5. [high risk](https://en.wikipedia.org/wiki/Wikipedia:High-risk_templates) it is,
  6. for the purposes of anti-vandalism. It runs on
  7. [Wikimedia Labs](https://tools.wmflabs.org/earwig-dev/tif).
  8. Dependencies
  9. ============
  10. * [earwigbot](https://github.com/earwig/earwigbot) >= 0.2
  11. * [flask](http://flask.pocoo.org/) >= 0.10.1
  12. * [flask-mako](https://pythonhosted.org/Flask-Mako/) >= 0.3
  13. * [mako](http://www.makotemplates.org/) >= 1.0.3
  14. * [oursql](http://packages.python.org/oursql/) >= 0.9.3.1
  15. Running
  16. =======
  17. - Install all dependencies listed above.
  18. - Create an SQL database based on `schema.sql` on the same server as your
  19. MediaWiki database.
  20. - Create an earwigbot instance in `.earwigbot` (run `earwigbot .earwigbot`). In
  21. `.earwigbot/config.yml`, fill out the connection info for the database by
  22. adding the following to the `wiki` section:
  23. _tifSQL:
  24. host: <hostname of database server>
  25. db: <name of database>
  26. If additional arguments are needed by `oursql.connect()`, like usernames or
  27. passwords, they should be added to the `_tifSQL` section.
  28. - Start the web server (on Tool Labs, `webservice2 uwsgi-python start`).