Hi,
I want to get the contents of some specific Wikipedia pages to display on different, non-wiki, site[1]. I can see how to retrieve the body of a page marked up in wiki format, but is there any way to get it already rendered as HTML? I've found two wiki markup -> HTML renderers[2][3], but both have significant problems with some aspects of Wikipedia's tags.
Many thanks, Phil
[1] http://www.pepysdiary.com/ [2] http://pear.php.net/package/Text_Wiki_Mediawiki [3] http://code.blitzaffe.com/pages/phpclasses/files/wiki_parser_52-13
Phil Gyford schreef:
Hi,
I want to get the contents of some specific Wikipedia pages to display on different, non-wiki, site[1]. I can see how to retrieve the body of a page marked up in wiki format, but is there any way to get it already rendered as HTML?
The API will soon be able to do this (when Wikipedia upgrades to the latest version), but you can also do http://en.wikipedia.org/w/index.php?title=Article_name&action=render
Roan Kattouw
On 10/31/07, Roan Kattouw roan.kattouw@home.nl wrote:
Phil Gyford schreef:
I want to get the contents of some specific Wikipedia pages to display on different, non-wiki, site[1]. I can see how to retrieve the body of a page marked up in wiki format, but is there any way to get it already rendered as HTML?
The API will soon be able to do this (when Wikipedia upgrades to the latest version), but you can also do http://en.wikipedia.org/w/index.php?title=Article_name&action=render
Perfect! Thanks so much Roan. Out of interest, where else would I have found out about this - is there some instructions I missed on the wikipedia site? Thanks again.
On Oct 31, 2007 6:36 PM, Phil Gyford gyford@gmail.com wrote:
Perfect! Thanks so much Roan. Out of interest, where else would I have found out about this - is there some instructions I missed on the wikipedia site? Thanks again.
Such things are not available on Wikipedia, but on mediawiki.org. It is documented here: http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Actions.
Bryan
Speaking of versions, where does one go on a specific wiki to find out what version of mediawiki it's using?
-- Ian
On 10/31/07, Roan Kattouw roan.kattouw@home.nl wrote:
Phil Gyford schreef:
Hi,
I want to get the contents of some specific Wikipedia pages to display on different, non-wiki, site[1]. I can see how to retrieve the body of a page marked up in wiki format, but is there any way to get it already rendered as HTML?
The API will soon be able to do this (when Wikipedia upgrades to the latest version), but you can also do http://en.wikipedia.org/w/index.php?title=Article_name&action=render
Roan Kattouw
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Special:Version
On 10/31/07, Ian Cabell ian.cabell@gmail.com wrote:
Speaking of versions, where does one go on a specific wiki to find out what version of mediawiki it's using?
-- Ian
On 10/31/07, Roan Kattouw roan.kattouw@home.nl wrote:
Phil Gyford schreef:
Hi,
I want to get the contents of some specific Wikipedia pages to display on different, non-wiki, site[1]. I can see how to retrieve the body of a page marked up in wiki format, but is there any way to get it already rendered as HTML?
The API will soon be able to do this (when Wikipedia upgrades to the latest version), but you can also do http://en.wikipedia.org/w/index.php?title=Article_name&action=render
Roan Kattouw
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
--
Ian Cabell RadiantWeb Services ( 877 ) 406 - 6272 [toll free] ian@radiantweb.net http://www.radiantweb.net
"There is more than one right way .. to make it perfect!" _______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Or http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo if you want to script it, and use the "generator" field - although it doesn't include the SVN revision number like http://en.wikipedia.org/wiki/Special:Version does, but it does give the major/minor/point version numbers for official releases - e.g. 'generator="MediaWiki 1.11.0"'
-- All the best, Nick.
-----Original Message----- From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org]On Behalf Of Jean-Lou Dupont Sent: Thursday, 1 November 2007 12:04 PM To: MediaWiki API announcements & discussion Subject: Re: [Mediawiki-api] HTML versions of page contents?
Special:Version
On 10/31/07, Ian Cabell ian.cabell@gmail.com wrote: Speaking of versions, where does one go on a specific wiki to find out what version of mediawiki it's using?
-- Ian
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Nick Jenkins wrote:
Or http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo if you want to script it, and use the "generator" field - although it doesn't include the SVN revision number like http://en.wikipedia.org/wiki/Special:Version does, but it does give the major/minor/point version numbers for official releases - e.g. 'generator="MediaWiki 1.11.0"'
-- All the best, Nick.
Well, actually it does as of r26444[1]. Just hasn't been synced on Wikimedia yet.
[1] http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=26444
- -- Daniel Cannon (AmiDaniel)
http://amidaniel.com cannon.danielc@gmail.com
Screenscrape normal wikipedia pages between the HTML comments?
Magnus
On 10/31/07, Phil Gyford gyford@gmail.com wrote:
Hi,
I want to get the contents of some specific Wikipedia pages to display on different, non-wiki, site[1]. I can see how to retrieve the body of a page marked up in wiki format, but is there any way to get it already rendered as HTML? I've found two wiki markup -> HTML renderers[2][3], but both have significant problems with some aspects of Wikipedia's tags.
Many thanks, Phil
[1] http://www.pepysdiary.com/ [2] http://pear.php.net/package/Text_Wiki_Mediawiki [3] http://code.blitzaffe.com/pages/phpclasses/files/wiki_parser_52-13
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org