mediawiki_ui is a Pythonista module for a nicer iOS user interface for MediaWiki wikis. You can use it with Wikipedia, Gamepedia, Wikia, and any other wikis using MediaWiki.
Put the mediwiki_ui
folder in site-packages
and mwapp.py
wherever you want.
The easiest way to use this is to run mwapp.py.
If you want to make your own app with the classes then continue reading.
Creating an instance of the wiki.Wiki
class will open the main interface.
You must have arguments for the title, wiki URL, and extension where the wiki is located.
Example: w = wiki.Wiki('Wikipedia', 'https://en.wikipedia.org/', '/wiki')
The "extension" is needed because it can very between wikis. It is normally /wiki
, but not always. It might be index.php
or /w
.
Many thanks go to members Pythonista community for their assistance.
- Make the loading of articles look nicer
- Make custom CSS styles
- Make urls work with reader thing
- Add open in Safari button
- Add font changer
- Implement history
- Make external URLs work
- Improve PEP-8 compliance
- Add Wikia support
- Document with comments
- Create an interface for switching between wikis