Code for the Tesseract Media Wiki Extension