-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: image of item, creature etc. #75
Comments
Hi! Which image URL would you prefer to have? Let's take a creature, say a dragon for example. We could add an But I can imagine you want a direct URL to the image, e.g. https://vignette.wikia.nocookie.net/tibia/images/e/e0/Dragon.gif/revision/latest?cb=20140823213526&path-prefix=en I think this URL is a bit more dynamic and can change over time, maybe also differ per region you access TibiaWiki from. |
Hmm, that's actually kinda pain in the ass. Yea i'd like to have direct URL to img like the second one you posted. I wonder how dynamic it is. I think the URL is changing each time someone edits the article but i'm not really sure. Well if that's gonna help you somehow then i don't think this URL depends on region of access. The URL u sent here is working perfectly fine for me. (I'm accessing it from Poland. ) |
Ok, well, let's see what I can do, I think it might be obtainable using the MediaWiki API and if not, we'll just have to be a bit more creative :) |
Ok, the MediaWiki API does support this, e.g.: https://tibia.fandom.com/api.php?action=query&titles=File%3ADragon.gif&prop=imageinfo&iilimit=50&iiend=2007-12-31T23%3A59%3A59Z&iiprop=timestamp%7Cuser%7Curl&format=json results in: {
"query": {
"pages": {
"1317": {
"pageid": 1317,
"ns": 6,
"title": "File:Dragon.gif",
"imagerepository": "local",
"imageinfo": [
{
"timestamp": "2014-08-23T21:35:26Z",
"user": "Kapitan Kuna",
"url": "https://vignette.wikia.nocookie.net/tibia/images/e/e0/Dragon.gif/revision/latest?cb=20140823213526&path-prefix=en",
"descriptionurl": "https://tibia.fandom.com/wiki/File:Dragon.gif"
}
]
}
}
}
} |
Hey, so far i'm loving the API. Easy and simple to use, but it's missing one feature.
I'm not an expert but as far as it's possible would be great if you add the image URL in responses on the creatures and items etc. Would be really usefull
The text was updated successfully, but these errors were encountered: