On 02/18/2010 01:42 PM, Tei wrote:
> I can imagine this url:
> 
> http://someserver.com/wiki/api.php?wikicode=code here
> urlencoded&format=json&device=handheld
> 
> as a way to ask MediaWiki installed in someserver.com  to render has
> html inside json the wikicode provided.
> 
> Do mediawiki already support something like this?
> 
> Is somewhat interesting, as make the engine "portable", so any device
> can render wikicode in html, even clientside javascript (with a single
> ajax call).
> 

Yes, the API ( http://www.mediawiki.org/wiki/API ) has a parse method:

http://en.wiktionary.org/w/api.php?action=parse&text=[[hello]]&format=jsonfm

Yours

Conrad

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to