Hi, I am using the MediaWiki to display some articles in my Flash app. I have run into a problem when I try to display an image because, all that API gives me is File:Name of image.jpg but for example for image File:Krilleyekils.jpg the path that I can recreate is w:en:File:Krilleyekils.jpg but to display the image elsewhere I need this path http://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Krilleyekils.jpg/627px-Krilleyekils.jpg any idea how can I get it?
Topic on Project:Support desk
If you can figure out some way to access {{filepath:}}
through the API, then read Help:Magic_words#URL data. Alternatively, using the "Media:" namespace instead of "File:" should take you straight to the image, so read Help:Namespaces#-2: Media.
The filepath is what I need but I dont know how can I use it ;/ To get articles from wikipedia I use this link-> http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Heart&rvprop=content but I dont know where could I put the Any ideas?
You can use
or
- w:en:Special:Filepath/Example.jpg?width=100
Also : media:Example.jpg.