As an aside I'm curious , how are you rendering the html from the wikitext ?

On Fri, Nov 15, 2013 at 2:07 PM, Thomas <> wrote:

I am writing a mobile client that can show wikipedia content. My approach is to download the raw media-wiki markup instead of the generated html.  This allows me more control and I avoid using a html parser/viewer.

The approach is quite successful except for when I encounter images.
In the markup I can see something like;

I use  the API to fetch some metadata; \

The piece of the puzzle I am still missing is how to find out the actual download URL for any given image.

I've seen images start with;
and with;

But I don't really understand how to decide what url to prefix to my image-name.
Anyone can shed some light on this?

Thomas Zander

Mediawiki-api mailing list