Ian Cabell | 1 Nov 2007 02:01
Picon

Re: HTML versions of page contents?

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-CmkmPbn3yAE@public.gmane.org> 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-RusutVdil2icGmH+5r0DM0B+6BGkLq7r@public.gmane.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api



--
----------------------------
Ian Cabell
RadiantWeb Services
( 877 ) 406 - 6272 [toll free]
ian-xCCRkCwjFykmz2Dbq8P9jA@public.gmane.org
http://www.radiantweb.net

"There is more than one right way .. to make it perfect!"
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@...
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Jean-Lou Dupont | 1 Nov 2007 02:04
Picon
Gravatar

Re: HTML versions of page contents?

Special:Version


On 10/31/07, Ian Cabell <ian.cabell-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-CmkmPbn3yAE@public.gmane.org> 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-RusutVdil2icGmH+5r0DM0B+6BGkLq7r@public.gmane.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api



--
----------------------------
Ian Cabell
RadiantWeb Services
( 877 ) 406 - 6272 [toll free]
ian-xCCRkCwjFykmz2Dbq8P9jA@public.gmane.org
http://www.radiantweb.net

"There is more than one right way .. to make it perfect!"
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api-RusutVdil2icGmH+5r0DM0B+6BGkLq7r@public.gmane.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@...
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Nick Jenkins | 1 Nov 2007 04:58
Picon
Gravatar

Re: HTML versions of page contents?

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@...
[mailto:mediawiki-api-bounces@...]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@...> wrote:
Speaking of versions, where does one go on a specific wiki to find out what version of mediawiki it's using?

-- Ian
Daniel Cannon | 1 Nov 2007 05:12
Picon

Re: HTML versions of page contents?


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@...
Eddie Roger | 1 Nov 2007 18:38
Picon

Login Against Vodafone Branch

I'm trying to log in against the Vodafone branch on a dev server
through the API, and I had a (probably) silly question. The API loads
LocalSettings.php, correct? I ask because we're using the
LdapAuthentication extension, which works as expected through the
browser, but the API throws an error that it couldn't throw if it had
all the settings. So, probably a dumb question, but at some point it
loads, correct?
Roan Kattouw | 1 Nov 2007 18:37
Picon
Favicon

Re: Login Against Vodafone Branch

Eddie Roger schreef:
> I'm trying to log in against the Vodafone branch on a dev server
> through the API, and I had a (probably) silly question. The API loads
> LocalSettings.php, correct? I ask because we're using the
> LdapAuthentication extension, which works as expected through the
> browser, but the API throws an error that it couldn't throw if it had
> all the settings. So, probably a dumb question, but at some point it
> loads, correct?
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api@...
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>   
LocalSettings.php is always loaded. There are even API configuration 
settings in there!

Roan Kattouw
Eddie Roger | 1 Nov 2007 18:43
Picon

Re: Login Against Vodafone Branch

Yeah, you got me - I spoke quicker than I tested. Sorry about that,
I'm still getting this stuff down. Let me expand the question - does
anyone use the domain field with the API in this branch? That's the
cause of my problem, its not passing the domain to the login, so LDAP
can't pick the right server from its config. I apologize for the list
spam.

Eddie

On 11/1/07, Roan Kattouw <roan.kattouw@...> wrote:
> Eddie Roger schreef:
> > I'm trying to log in against the Vodafone branch on a dev server
> > through the API, and I had a (probably) silly question. The API loads
> > LocalSettings.php, correct? I ask because we're using the
> > LdapAuthentication extension, which works as expected through the
> > browser, but the API throws an error that it couldn't throw if it had
> > all the settings. So, probably a dumb question, but at some point it
> > loads, correct?
> >
> > _______________________________________________
> > Mediawiki-api mailing list
> > Mediawiki-api@...
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
> >
> >
> LocalSettings.php is always loaded. There are even API configuration
> settings in there!
>
> Roan Kattouw
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api@...
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
Roan Kattouw | 1 Nov 2007 18:41
Picon
Favicon

Re: Login Against Vodafone Branch

Eddie Roger schreef:
> Yeah, you got me - I spoke quicker than I tested. Sorry about that,
> I'm still getting this stuff down. Let me expand the question - does
> anyone use the domain field with the API in this branch? That's the
> cause of my problem, its not passing the domain to the login, so LDAP
> can't pick the right server from its config. I apologize for the list
> spam.
>
> Eddie
>
>   
Look at http://en.wikipedia.org/w/api.php under action=login. You can 
specify the domain field with the lgdomain parameter.

Roan Kattouw
Roan Kattouw | 1 Nov 2007 21:52
Picon
Favicon

Assumed namespace for cmcategory parameter

On IRC, Carl Fürstenberg (AzaTht) pointed out that for cmcategory, the 
Category: namespace prefix is implicit (i.e. for [[Category:People]], 
you'd use cmcategory=People), while this is not the case for imageinfo 
and imageusage the Image: namespace is not implied 
(iutitle=Image:Dog.jpg). For consistency's sake (and to make copying 
titles from other request easier), Carl suggested categorymembers be 
changed to explicitly require the Category: namespace prefix. Since this 
would be a breaking change, however, I'm suggesting this here first and 
asking for your input on whether we should do this.

Roan Kattouw
Timothy Hunt | 1 Nov 2007 23:37

Re: Assumed namespace for cmcategory parameter

Would it be possible to allow both for a while, but deprecating the  
cmcategory=People format, with loud noisy warnings in the api  
documentation (and perhaps generate a warning if that style is  
used).  Also, specify a version number and/or date when the old  
version will go away, and thus break if you're still using the old  
format.

That gives people the opportunity to still use the latest versions  
but upgrade their api-calling code in a more controlled manner,  
testing  what they need to test, and migrating independently of an  
upgrade of the MediaWiki s/w.

Timothy
On Nov 1, 2007, at 3:52 PM, Roan Kattouw wrote:

> On IRC, Carl Fürstenberg (AzaTht) pointed out that for cmcategory, the
> Category: namespace prefix is implicit (i.e. for [[Category:People]],
> you'd use cmcategory=People), while this is not the case for imageinfo
> and imageusage the Image: namespace is not implied
> (iutitle=Image:Dog.jpg). For consistency's sake (and to make copying
> titles from other request easier), Carl suggested categorymembers be
> changed to explicitly require the Category: namespace prefix. Since  
> this
> would be a breaking change, however, I'm suggesting this here first  
> and
> asking for your input on whether we should do this.
>
> Roan Kattouw
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api@...
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>

Gmane