-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Marek Möhling wrote: | XML files from http://en.wikipedia.org/wiki/Special:Export | contain img refences like: | [[Image:Flag_de-berlin_civil_300px.png|150px|Landesflagge Berlins]] | this e.g. resolves to: | commons.wikimedia.org/upload/thumb/5/54/150px-Flag_de-berlin_civil_300px.png | | That means that I don't get enough information to reconstruct the path. | | Is any help available? | E.g. how can I tell if an img comes from | upload.wikimedia.org or commons.wikimedia.org/upload?
If it's in the local wiki's uploaded file set, that's used. Otherwise, the commons file set is checked.
| What's the explanation for "thumb/5/54" in the example above? | Are there rules for conversion?
The 'thumb' subdirectory is used for thumbnails. Please check the source code for the exact details of how things are parsed, or look at the mailing list archives for past discussions.
- -- brion vibber (brion @ pobox.com)