[Mediawiki-api] Retrieving images instead of math markup

Gabriel Sandor gabi.t.sandor at gmail.com
Mon Dec 13 11:42:51 UTC 2010


I see, very helpful idea, thank you !
And what if the formula is really long ? I guess there are limits to the
length of the URL, so is it possible in this case to send a POST message and
retrieve the same result ?

On Mon, Dec 13, 2010 at 1:23 PM, Roan Kattouw <roan.kattouw at gmail.com>wrote:

> 2010/12/13 Gabriel Sandor <gabi.t.sandor at gmail.com>:
> > Is it possible to retrieve (preferably via the MediaWiki API) an image
> > representing a mathematical formula given in the <math> tags that are
> > frequently encountered in Wikipedia articles ?
> There's no direct way to do this, although I guess it could be
> implemented. A workaround would be to do something like
> http://en.wikipedia.org/w/api.php?action=parse&text=
> <math>\gamma=\frac{1}{\sqrt{1-v^2}}</math>&format=yamlfm
> , which will give you the HTML generated for this <math> tag, which
> could be an image (like in this case), or HTML if the formula is
> sufficiently simple (try a^2+b^2=c^2 for instance).
>
> Roan Kattouw (Catrope)
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20101213/04beef48/attachment.htm 


More information about the Mediawiki-api mailing list