User:Ianweller/mw thoughts

From FedoraProject

Jump to: navigation, search
Note.png
Nothing here is permanent
If you want to help out with mw, you basically get to help decide what happens. Tell me — or just edit stuff — if you think you can help.

Contents

Local junk

Aliases

Aliases are kind of like bookmarks for a wiki, so you can easily do "mw init fpwiki" for the Fedora Project wiki, for instance.

To prevent cruft, we should only implement code to automatically include aliases for WMF wikis (Wikipedia, Wiktionary, etc) in their different languages (aliases should be like en.wikipedia, wikipedia-en, whatever we decide, whatever's easiest). We don't need to store these locally; en.wikipedia's API provides functionality for determining a full list of WMF wikis.

Aliases should be addable/removable in a global config (/etc/mwrc, ~/.mwrc, other standards) with relevant commands. The global config code probably needs to be implemented.

User documentation

I don't care how we do user documentation, whether it's all in "mw command --help" (output to screen or through man pages), or built with python-sphinx, or whatever. It just needs to be done.

Fetching

Page functions

History and repo status

log and blame are considered most important by Ian

Committing / editing

Media files

Media files have a text description as well as the actual file. Therefore we need separate download/upload commands for media files.

Repository directory layout

<repo>/
  .mw/
    config
  cat/
    <folders with symlinks to pages in category>
  img/
    <where stuff from the Media/File/Image namespaces go>
  <all pages -- subpages have slashes converted to exclamation points>

Things that would be rockin' but totally not needed