A tool that evaluates high-risk Wikipedia templates https://tools.wmflabs.org/earwig-dev/tif
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

README.md 1.3 KiB

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`).