Hi,
I've been working on the wikipedia data overlay on our site,
multimap.com. One of the things we'd really love to do is add
thumbnail images to complement the summary text for an article that we
display in our infoboxes. However, we're finding it difficult to
programatically generate the URLs to specific images from the wiki tag.
For example, how do i get from:
[[Image:Asperger kl2.jpg|thumb|[[Hans Asperger]]
to
http://upload.wikimedia.org/wikipedia/en/5/57/Asperger_kl2.jpg
My understanding of the URL structure is thumbnails can be requested
from either:
http://upload.wikimedia.org/wikipedia/commons/thumb/X/YY/IMAGENAME/SIZEpx-I…
or
http://upload.wikimedia.org/wikipedia/en/thumb/X/YY/IMAGENAME/SIZEpx-IMAGEN…
where X is the first character of the md5 hash of the IMAGENAME, YY
are the first two characters of the same hash, IMAGENAME is the image
name and SIZE is the size you want in pixels.
The issue is with the /en/ or /commons/ part since it seems it can
either and I can't tell of a way to know without actually requesting
the image to see if it exists.
Is there a single thumbnail URL I can use to get an image no matter if
it exists in commons or not? I noticed there's a thumb.php available
too but again it doesn't seem to be a single URL endpoint for all
images.
Many many thanks for any help.
Regards,
Colm
Colm McMullan
Software Engineer
multimap
e: colm(a)multimap.com
t: +44 (0) 20 7632 7700 (switchboard)
165 Fleet Street, London EC4A 2DY [ Map » ]
Multi Media Mapping Ltd., trading as Multimap / Company number:
03121505 / VAT registration number: GB 671 8051 34
Registered address: Beaufort House, Tenth Floor, 15 St. Botolph
Street, London, EC3A 7EE
This email is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received
it in error, please contact us immediately.
______________________________________________________________________
A member of the Multimap Group owned by Multi Media Mapping Ltd., trading as Multimap / Registered in England & Wales. Company number: 03121505 / VAT registration number: GB 671 8051 34 / Registered address: Beaufort House,Tenth Floor, 15 ST. Botolph Street LONDON EC3A 7EE.
This email is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact us immediately.
______________________________________________________________________
A single apostrophe in an Article title on my Wiki is breaking that article.
For example:
An article titled: What's in Season this month
Has the URL: What%27s_in_Season_this_month
When the page loads the title is displayed as: What?s in Season
this month
And the page content is replace with the following message:
There is currently no text in this page, you can search for this page
title in other pages or edit this page.
Will someone please shed some light on how this can be fixed?
My Wiki installation is as follows:
MediaWiki: 1.10.0
PHP: 5.2.2 (apache2handler)
MySQL: 4.1.20
Many thanks in advance, Matthew
2008/1/17, Philip Hunt <cabalamat(a)googlemail.com> wrote:
>
> I've been reading about your idea of an "Extrapedia" containing
> articles that Wikipedia doesn't think are notable enough.
>
> I've recently been thinking on similar lines, and have decided to
> create an inclusionist fork of Wikipedia. You are welcome to use my
> wiki (when it's up) as your Extrapedia, if you want.
>
> I notice you say "Now I wonder in general: why do there need to be
> multiple Wikias? Why can't all articles from all Wikias be one wiki?"
>
> Why not indeed? I'm planning a feature I call "micro-wikis" that
> allows anyone to create a sub-wiki of the main wiki.
How would a micro-wiki work? What would it provide? Why not just use
the category system instead? :-) You could modify MediaWiki to allow
searches, recent-changes-views, etc. to show content related to the
category of your choice only. If the user interface for this category filter
system were designed well, maybe it would be a better way to get
what you want?
Cheers,
--
Jason Spiro: corporate trainer, web developer, IT consultant.
I support Linux, UNIX, Windows, and more.
Contact me to discuss your needs and get a free estimate.
Email: info(a)jspiro.com / MSN: jasonspiro(a)hotmail.com
Say, do others see HTTP 301 logged as 200 by apache?
http://issues.apache.org/bugzilla/show_bug.cgi?id=44365
b> --- Additional Comments From rpluem(a)apache.org 2008-02-06 ---
b> Please provide your httpd configuration and let us know who creates the 301
b> (httpd, some script (php, cgi whatever))
Maybe those who use their own hosts would be in a better position to
answer him.
On the recent changes page the change in size that the edits make is
shown for each edit. Could it be possible to get a similar overview
for the edits of a certain user? The reason I am asking this is that
the last few months it has happened a few times that my bot
unwantingly removed a large part of a long page. I still don't know
what caused it (my guess is that it's a problem in the internet
connection causing only part of the data to be transferred), but if I
had an overview like that, at least I would be able to do a check and
quickly repair it where it has happened.
--
Andre Engels, andreengels(a)gmail.com
ICQ: 6260644 -- Skype: a_engels
I should probably file a bug report, but I thought it's funny...
So, one of my tools tried to get a thumbnail from a file on Commons.
Turns out it's an OGG video. 75px thumbnail here:
http://upload.wikimedia.org/wikimedia/commons/thumb/3/38/LotuseffectAnimati…
hmmm... these pixels get larger every day! :-)
Magnus
On Feb 4, 2008 12:53 PM, <catrope(a)svn.wikimedia.org> wrote:
> (bug 12905) Created [[Special:API]] which just 302s to $wgScriptPath/api.php
Isn't 301 more appropriate?
While reviewing some other code, I went in and started ripping up some
of the file type & validity checks in MediaWiki's upload system, as
they've been driving me nuts for some time.
One quick subproject was tossing in an XML well-formedness check for SVG
files. For the curious, here's a report on the invalid files I
encountered while testing this with files from Commons:
http://meta.wikimedia.org/wiki/SVG_validity_checks
-- brion vibber (brion @ wikimedia.org)
Hi everybody!
I would like some help with a extension module to php. Since I'm not a c
programing guy, I have basicly given up. However, I have a little hope that
someone here on this mailling list can help me...!
You can get the (bad - you don't have to tell me that!) code at
http://www.fredan.org/pecl_wiki2html.tar.gz
What the module do is to translate wiki syntax to html syntax. Sounds simple,
eh? Well not for me! ;-)
The original source that I found somewhere on the net (can't remember where),
is included in the archive.
There is also an readme file to read for you!
If there is anyone who's willing to release this as an real pecl package,
please go ahead and do so.
This message was original posted by me on the pecl mailling list at this
location http://news.php.net/php.pecl.dev/5103
--
//fredan