[Mediawiki-api] Request for redirect info in backlinks query

2008-01-04 Thread Nicolas Vervelle
Hi, (I also posted this at http://www.mediawiki.org/wiki/Talk:API:Query_-_Lists) Hi, I see that the backlinks query can already filter results depending if a backlink is a redirect or not (with blfiterredir) but I don't see a way to see in the result if backlinks are actually redirect or not.

[Mediawiki-api] Parameter apprefix for allpages request

2008-01-14 Thread Nicolas Vervelle
Hi, When looking at the documentation you get when callling the API, the apprefix parameter is documented as "Search for all page titles that begin with this value" but I don't get any result when I try to use it. For example, the following request returns zero pages : http://en.wikipedia.org/w

Re: [Mediawiki-api] Parameter apprefix for allpages request

2008-01-14 Thread Nicolas Vervelle
Roan Kattouw a écrit : Nicolas Vervelle schreef: Hi, When looking at the documentation you get when callling the API, the apprefix parameter is documented as "Search for all page titles that begin with this value" but I don't get any result when I try to use i

Re: [Mediawiki-api] Parameter apprefix for allpages request

2008-01-14 Thread Nicolas Vervelle
could be used instead). Nico Nicolas Vervelle a écrit : > Roan Kattouw a écrit : >> Nicolas Vervelle schreef: >> >>> Hi, >>> >>> When looking at the documentation you get when callling the API, the >>> apprefix parameter is documented as &q

Re: [Mediawiki-api] Parameter apprefix for allpages request

2008-01-14 Thread Nicolas Vervelle
Roan Kattouw a écrit : > Nicolas Vervelle schreef: > >> Hi again, >> >> I forgot one question : would it be possible to add an other parameter >> than apprefix to search all titles containing a given word, not only >> titles begining with a given word ?

Re: [Mediawiki-api] Parameter apprefix for allpages request

2008-01-14 Thread Nicolas Vervelle
Bryan Tong Minh a écrit : > On Jan 14, 2008 8:07 PM, Nicolas Vervelle <[EMAIL PROTECTED]> wrote: > >> Roan Kattouw a écrit : >> >>> Nicolas Vervelle schreef: >>> >>> >>>> Hi again, >>>> >>>> I for

Re: [Mediawiki-api] Parameter apprefix for allpages request

2008-01-14 Thread Nicolas Vervelle
Roan Kattouw a écrit : > Nicolas Vervelle schreef: > >> Ok, thanks for the answer. >> So, I am back with my suggestion for an other parameter for allpages >> query giving the ability to find all titles containing a given word >> (which sould be easy to imp

[Mediawiki-api] Quick questions about API

2008-04-05 Thread Nicolas Vervelle
Hi, Thanks again for the API, very practical for tools working on Wikipedia. Do you have an ETA for action=edit being available on Wikipedia servers ? Is there a way to test tools with the Edit action, since it has been developed ? I have started modifying my tool and I like to test it with the

Re: [Mediawiki-api] Quick questions about API

2008-04-06 Thread Nicolas Vervelle
Bryan Tong Minh a écrit : > On Sat, Apr 5, 2008 at 8:53 PM, Nicolas Vervelle > <[EMAIL PROTECTED]> wrote: > >> Is it normal that the result is not formatted when query API with an >> unknown action (like action=edit for the moment) ? >> Could the API return

[Mediawiki-api] Problem: Invalid redirect IDs were found

2008-04-08 Thread Nicolas Vervelle
Hi everyone, Starting today, I have an error with the following request: http://fr.wikipedia.org/w/api.php?redirects=&action=query&titles=Var&format=xml #0 /usr/local/apache/common-local/php-1.5/includes/api/ApiBase.php(659): wfDebugDieBacktrace('Internal error ...') #1 /usr/local/apache/com

Re: [Mediawiki-api] Problem: Invalid redirect IDs were found

2008-04-08 Thread Nicolas Vervelle
Roan Kattouw a écrit : Nicolas Vervelle schreef: Hi everyone, Starting today, I have an error with the following request: http://fr.wikipedia.org/w/api.php?redirects=&action=""> It was working a few days ago, but now redirects seem to have problems.

[Mediawiki-api] Incorrect message for wrong login

2008-04-13 Thread Nicolas Vervelle
Hi, The message given when providing an incorrect login is not correct : on the example below, wait is 15, but the text is 5. Also, I am not sure that the throttle is really 5 seconds for the first incorrect login. Nico ___ Mediawiki-api maili

Re: [Mediawiki-api] Incorrect message for wrong login

2008-04-15 Thread Nicolas Vervelle
Roan Kattouw a écrit : Nicolas Vervelle schreef: Hi, The message given when providing an incorrect login is not correct : on the example below, wait is 15, but the text is 5. Also, I am not sure that the throttle is really 5 seconds for the first incorrect login. Good

[Mediawiki-api] Documentation for ?

2008-08-14 Thread Nicolas Vervelle
Hi, The tag is documented at http://www.mediawiki.org/wiki/API:Errors I am looking the same kind of documentation for the tag. Is there documentation about it ? I have modified my tool to log messages in case of errors reported by the API, and I would like to do the same for warnings, but I'd

Re: [Mediawiki-api] MediaWiki 1.13.0 released

2008-08-17 Thread Nicolas Vervelle
Hi, [EMAIL PROTECTED] a écrit : > * action=edit has been added. Note that $wgEnableWriteAPI = true; is required > for this. Two questions about this : - It doesn't seem to be activated on Wikipedia. Do you have an idea when it will be available ? - Is there a proper way to ask the API if action=

[Mediawiki-api] Getting the pageid of a deleted page ?

2010-04-04 Thread Nicolas Vervelle
Hi, I'd like to obtain the pageid of a page, even if the page has been deleted. Requests like this onereturn the pageid only if the page is still existing. I h

[Mediawiki-api] Pagedeleted error

2010-04-04 Thread Nicolas Vervelle
Hi, It seems that there's a bug with some pages that have been deleted and restaured after that, but without any more modification. For example, on the French wiki, I get the error when trying to edit fr:Charbonnage. The page exists, its last version was o

[Mediawiki-api] Parsing into printable text ?

2010-04-04 Thread Nicolas Vervelle
Hi, Is there a way to parse a wiki text to get a simplified text (without HTML, external and internal replaced by their text, ...) ? My need is the following : - The project Check Wikipediauses a configuration file for ea

Re: [Mediawiki-api] Getting the pageid of a deleted page ?

2010-04-04 Thread Nicolas Vervelle
On Sun, Apr 4, 2010 at 11:18 PM, Platonides wrote: > El 04/04/10 17:43, Nicolas Vervelle wrote: > > Hi, > > > > I'd like to obtain the pageid of a page, even if the page has been > deleted. > > Requests like this one > > < > http://fr.wikipedia.org/

Re: [Mediawiki-api] Pagedeleted error

2010-04-04 Thread Nicolas Vervelle
On Sun, Apr 4, 2010 at 11:14 PM, Platonides wrote: > El 04/04/10 17:48, Nicolas Vervelle wrote: > > Hi, > > > > It seems that there's a bug with some pages that have been deleted and > > restaured after that, but without any more modification. For example, on >

Re: [Mediawiki-api] Parsing into printable text ?

2010-04-04 Thread Nicolas Vervelle
On Sun, Apr 4, 2010 at 11:15 PM, Platonides wrote: > El 04/04/10 17:49, Nicolas Vervelle wrote: > > Hi, > > > > Is there a way to parse a wiki text to get a simplified text (without > > HTML, external and internal replaced by their text, ...) ? >

Re: [Mediawiki-api] Getting the pageid of a deleted page ?

2010-04-06 Thread Nicolas Vervelle
Hi, There's already a missing attribute that is returned by the API when the page doesn't exist (whether it has never existed or has been deleted). That seems to be the correct information to rely on. Example : http://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&prop=revisions|info&act

[Mediawiki-api] API Internal Error since a few hours

2010-07-28 Thread Nicolas Vervelle
Hi, A few hours ago, the following kind of API requests is producing an API internal error. http://en.wikipedia.org/w/api.php?gbllimit=max&gbltitle=American&prop=info&action=query&generator=backlinks&format=xml resulting in If you remove the "gbllimit=max" parameter or replace it with a fixed v

[Mediawiki-api] Really slow API queries

2010-08-16 Thread Nicolas Vervelle
Hi, API queries seem to take a very long time to complete (dozen of seconds), even basic ones. This happened in the last hour so. Nico ___ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawik

Re: [Mediawiki-api] Really slow API queries

2010-08-16 Thread Nicolas Vervelle
No, it seems to be back to normal. Thanks On Mon, Aug 16, 2010 at 9:24 PM, Bryan Tong Minh wrote: > On Mon, Aug 16, 2010 at 8:35 PM, Nicolas Vervelle > wrote: > > Hi, > > > > API queries seem to take a very long time to complete (dozen of seconds), > > even basic

[Mediawiki-api] Status 504 when trying to login ?

2010-09-16 Thread Nicolas Vervelle
Hi, Has there been any change in the API very recently (login request) ? My tool, WikiCleaner [1], stopped working in the last hours : when trying to login, a status 504 (Gateway timeout) is now returned. Thanks for any help Nico [1] http://en.wikipedia.org/wiki/User:NicoV/Wikipedia_Cleaner/Docu

Re: [Mediawiki-api] Retrieving a thumbnail of an image file

2010-10-18 Thread Nicolas Vervelle
Hi, You can try imageinfo query with iiprop=url and iiurlwidth / iiurlheight. It seems to return and URL for a picture with the required size. Nico On Mon, Oct 18, 2010 at 4:04 PM, Gabriel Sandor wrote: > Hi everyone, > > Is it possible to retrieve via the Wikipedia API (or index.php) a thumbna

[Mediawiki-api] API bug with page titles with & in them ?

2010-12-07 Thread Nicolas Vervelle
Hi, I made a few attempts but didn't success to use the API with page titles containing a & in them. I tried replacing it with %26 in the request but it seems to work only for some requests... For example, the following request seems to work: http://en.wikipedia.org/w/api.php?action=query&titles=

Re: [Mediawiki-api] API bug with page titles with & in them ?

2010-12-07 Thread Nicolas Vervelle
Oups ! Thanks, I must be tired, I was testing things in both EN and FR and it seems I mixed up the windows. Sorry for the stupid question :p Nico On Tue, Dec 7, 2010 at 9:02 PM, Roman Sokhan aka AS wrote: > Why FR.wikipedia in second link?) > > 2010/12/7 Nicolas Vervelle > >

[Mediawiki-api] Problem with "embeddedin" and query continue ?

2011-01-05 Thread Nicolas Vervelle
Hi, I am using the API to retrieve a list of pages where a template is embedded. It was working correctly last week but now I have a problem with the query continue : - The first request works ok (with eititle parameter) : http://fr.wikipedia.org/w/api.php?einamespace=1&eilimit=max&action=

Re: [Mediawiki-api] Problem with "embeddedin" and query continue ?

2011-01-05 Thread Nicolas Vervelle
2011 at 9:27 PM, Nicolas Vervelle > wrote: > > > >> The continue request reports an error eiinvalidtitle > >> : > http://fr.wikipedia.org/w/api.php?einamespace=1&eilimit=max&action=query&list=embeddedin&blcontinue=10|Avertissement_Homonymie|5193666

[Mediawiki-api] rvnosuchsection for section 0 of an empty page

2011-01-07 Thread Nicolas Vervelle
Hi, Is it normal to get an error "rvnosuchsection" when requesting section 0 of an empty page ? For example : - Error for section 0 : http://fr.wikipedia.org/w/api.php?intoken=edit&rvprop=content|ids|timestamp&prop=revisions|info&action=query&titles=Discussion:Corbeille%20d'or&rvsection=0

Re: [Mediawiki-api] rvnosuchsection for section 0 of an empty page

2011-01-07 Thread Nicolas Vervelle
On Fri, Jan 7, 2011 at 8:45 PM, Roan Kattouw wrote: > 2011/1/7 Nicolas Vervelle : > > Hi, > > Is it normal to get an error "rvnosuchsection" when requesting section 0 > of > > an empty page ? > That sounds like a bug. Could you file it in Bugzilla? >

Re: [Mediawiki-api] question about api-login

2011-07-27 Thread Nicolas Vervelle
Hi, I have developped a tool in Java for editing wikipedia pages. The source code is available on sourceforge (project wikicleaner ) Implementation is done in MediaWikiAPI class

[Mediawiki-api] Namespace added to XML answer ?

2011-10-05 Thread Nicolas Vervelle
Hi, Is it normal that a namespace has been added to the XML answer of the API with MW 1.18 ? I was quite busy lately, so I may have missed the announcement about this. It means that answers from MW 1.18 are not compatible with answers from previous versions. How can we keep our tools working with

Re: [Mediawiki-api] Namespace added to XML answer ?

2011-10-06 Thread Nicolas Vervelle
On Thu, Oct 6, 2011 at 12:57 PM, Roan Kattouw wrote: > On Thu, Oct 6, 2011 at 1:11 AM, Nicolas Vervelle > wrote: > > Hi, > > Is it normal that a namespace has been added to the XML answer of the API > > with MW 1.18 ? > Someone requested this on Bugzilla and I implem

Re: [Mediawiki-api] [Mediawiki-api-announce] API XML output now has a namespace

2011-10-06 Thread Nicolas Vervelle
Hi Roan, Thanks for the infos. As I pointed out in an other thread, it's completely breaking my own tool. XPath expressions with or without default namespaces are completely different, and I don't find a way to deal properly with both 1.17 and 1.18 API. Googling for "XPath default namespace" retu

Re: [Mediawiki-api] Namespace added to XML answer ?

2011-10-06 Thread Nicolas Vervelle
On Thu, Oct 6, 2011 at 3:57 PM, Roan Kattouw wrote: > On Thu, Oct 6, 2011 at 3:52 PM, Nicolas Vervelle > wrote: > > Hi, thanks for answers. > > Well, I'm using XPath in Java to find informations in the XML answer. > > Unless I missed something, I think I have t

Re: [Mediawiki-api] [Mediawiki-api-announce] API XML output now has a namespace

2011-10-06 Thread Nicolas Vervelle
On Thu, Oct 6, 2011 at 10:14 PM, Bryan Tong Minh wrote: > On Thu, Oct 6, 2011 at 1:47 PM, Roan Kattouw > wrote: > > Per https://bugzilla.wikimedia.org/show_bug.cgi?id=24781 , the XML > > output returned by the API has a namespace since 1.18. > > > Per the discussion on the bug, this list, and els

Re: [Mediawiki-api] Request for Wikipedia API Format.

2012-04-26 Thread Nicolas Vervelle
Hi, To have examples of responses from API, you just have to look at the documentation and for each command you have URL examples that show you the answer if you click on it. The response is then displayed directly in your browser. Nico On Thu, Apr 26, 2012 at 2:18 PM, Krishna Kranth wrote: > D

Re: [Mediawiki-api] Request for Wikipedia API Format.

2012-04-27 Thread Nicolas Vervelle
Hi, If you want to use the API, you can check http://en.wikipedia.org/wiki/Special:ApiSandbox which lets you try requests and see the results. Nico On Fri, Apr 27, 2012 at 12:38 PM, Krishna Kranth wrote: > Thanks for the link provided. I tried my best to understand how to extract > data from Wi

Re: [Mediawiki-api] Request for Wikipedia API Format.

2012-05-09 Thread Nicolas Vervelle
Hi, You will probably have to code a few things to get that information. I would suggest : - Use the API to retrieve the content of section 0 of the page (all the wikitext before the first title) - Develop some code to parse this wikitext : retrieve the value of one parameter (example

[Mediawiki-api] Problem with encoding in API answer when many parameters ?

2012-05-14 Thread Nicolas Vervelle
Hi, Very recently (saturday ?) my application, WPCleaner, started to behave strangely (report on enwiki

Re: [Mediawiki-api] Problem with encoding in API answer when many parameters ?

2012-05-14 Thread Nicolas Vervelle
Hi, I have opened bug 36839<https://bugzilla.wikimedia.org/show_bug.cgi?id=36839>for this problem. Nico On Mon, May 14, 2012 at 5:33 PM, Nicolas Vervelle wrote: > Hi, > > Very recently (saturday ?) my application, > WPCleaner<http://en.wikipedia.org/wiki/User:Ni

Re: [Mediawiki-api] Potential API rewrite

2012-11-08 Thread Nicolas Vervelle
Hi, Same response from me, I don't really understand this need for a new api. The current one is working correctly (at least for me), has enough documentation to let developers find their way for using it, ... I'm currently using a lot of functions from the current API for WPCleaner [1]. I've alr

Re: [Mediawiki-api] API versionning strategy

2012-12-20 Thread Nicolas Vervelle
Hi Yuri, I would rather be in favor of a global version number for the API, but with a few modifications. All version numbers should be kept in a single file, independently of the modules. The information in it is structured : a version number (which is used only by clients), a version tag (which

Re: [Mediawiki-api] API versionning strategy

2012-12-21 Thread Nicolas Vervelle
Hi again, By tag, I meant something expressive that modules should use instead of a raw version number. Something like the "breakingChangeAVersion" constant in your example. I'm not expert in PHP, so I don't know how you would do this. Maybe an array of objects, each object having a version numbe

[Mediawiki-api] Using the API on WikiData ?

2013-04-16 Thread Nicolas Vervelle
Hi, Is it possible to use the API on WikiData, for example to remove or update some interwiki links ? How do you do that ? I'd like to create a few bot tools for deleting / renaming categories, and I'd need to update the interwiki on WikiData ? Thanks Nico ___

Re: [Mediawiki-api] Using the API on WikiData ?

2013-04-16 Thread Nicolas Vervelle
Legoktm > http://enwp.org/User:Legoktm > > > On Tue, Apr 16, 2013 at 3:36 AM, Nicolas Vervelle wrote: > >> Hi, >> >> Is it possible to use the API on WikiData, for example to remove or >> update some interwiki links ? >> How do you do that ? >> >

[Mediawiki-api] List all disambiguation pages

2013-07-10 Thread Nicolas Vervelle
Hi, With the new extension, Disambiguator [1], I was wondering how to retrieve the list of all disambiguation pages in a wiki. Is there a way to retrieve the list of pages having the disambiguation property set ? Nico [1] http://lists.wikimedia.org/pipermail/wikitech-l/2013-July/070277.html

Re: [Mediawiki-api] List all disambiguation pages

2013-07-10 Thread Nicolas Vervelle
Thanks, This function (pageswithprop) is not listed in https://www.mediawiki.org/wiki/API:Lists that's why I didn't find it when I was looking. Nico On Wed, Jul 10, 2013 at 3:19 PM, Brad Jorsch (Anomie) wrote: > On Wed, Jul 10, 2013 at 6:54 AM, Nicolas Vervelle > wrote: >

[Mediawiki-api] Add tags when saving an edit ?

2013-08-16 Thread Nicolas Vervelle
Hi, Abuse Filter extension, Visual Editor, ... are able to create tags when edits are saved. Is it possible to do the same kind of things when using the API to edit a page ? I'd like to be able to add tags when I save a page using WPCleaner [1] for several purposes: * marking the edit as being do

[Mediawiki-api] assertuserfailed : something changed ?

2014-03-05 Thread Nicolas Vervelle
Hi, Yesterday, a user reported having problem with my tool, WPCleaner, getting error messages "assertuserfailed - Assertion that the user is logged in failed" when trying to save pages. I also got them a few minutes ago, restarted the tool, and the problem was gone. Has there been any modificatio

Re: [Mediawiki-api] assertuserfailed : something changed ?

2014-03-05 Thread Nicolas Vervelle
I checkForError WARNING: Error reported: assertuserfailed - Assertion that the user is logged in failed POST https://fr.wikipedia.org/w/api.php?summary=[[WP:WPC|WPCleaner]] v1.31 - Balise mal fermée - Orthographe et typographie ([[P:CS|Correction syntaxique]])&watchlist=nochange&title=Laine de verre&text={{à sourcer|date=nove

[Mediawiki-api] Problem using login API on Waze wiki

2014-07-11 Thread Nicolas Vervelle
(also posted on Mediawiki.org on API talk:Login [1]) Hi, My application, WPCleaner [2] works fine on Wikimedia wikis (Wikipedia, Wiktionary, ...), but my attempts to make it work on Waze wiki [3] have failed for now. I don't understand why login doesn't work on Waze wiki. Would someone have an id

Re: [Mediawiki-api] Problem using login API on Waze wiki

2014-07-14 Thread Nicolas Vervelle
Thanks for the answer, I tried using a client in bash (modified from [1] to exit after getting the edit token), and it seems to work : I do get an edit token after logging in. I then modified the bash example to have more information on what is sent/received (--trace, ...), and I noticed than cur

[Mediawiki-api] (no subject)

2014-10-09 Thread Nicolas Vervelle
Hi, A user reported problems with my tool WPCleaner since a few hours, but my tool hasn't changed at all in a few weeks. It seems there's a problem with an API request for list=backlinks. For example, the request below returns now an internal API error, but it was working correctly before. Requ

[Mediawiki-api] Internal error in ApiFormatXml::recXmlPrint() has integer keys without _element value...

2014-10-10 Thread Nicolas Vervelle
(better with a subject) Hi, A user reported problems with my tool WPCleaner since a few hours, but my tool hasn't changed at all in a few weeks. It seems there's a problem with an API request for list=backlinks. For example, the request below returns now an internal API error, but it was workin

[Mediawiki-api] Documentation for action=edit incomplete

2015-04-06 Thread Nicolas Vervelle
Hi, it seems that documentation about action=edit doesn't cover all possible results. I just found that when I tried to save a page which contains an URL to a blacklisted site (when trying to remove the nowiki tags around an URL in an article on frwiki

Re: [Mediawiki-api] Documentation for action=edit incomplete

2015-04-06 Thread Nicolas Vervelle
On Mon, Apr 6, 2015 at 10:56 PM, Brad Jorsch (Anomie) wrote: > On Mon, Apr 6, 2015 at 4:47 PM, Nicolas Vervelle > wrote: > >> it seems that documentation about action=edit >> <https://www.mediawiki.org/wiki/API:Edit> doesn't cover all possible >> results.

[Mediawiki-api] Information about MagicWords

2015-06-15 Thread Nicolas Vervelle
Hi, The meta query siteinfo allows to retrieve a list of magic words with basic information about them (aliases) [1]. Is there any way to retrieve more information about them, especially how they are supposed to be used: which ones should be used with {{#...}}, which ones are image parameters, ...

Re: [Mediawiki-api] Information about MagicWords

2015-06-15 Thread Nicolas Vervelle
On Mon, Jun 15, 2015 at 9:37 PM, Brad Jorsch (Anomie) wrote: > On Mon, Jun 15, 2015 at 3:26 PM, Nicolas Vervelle > wrote: > >> which ones should be used with {{#...}}, >> > > That's not actually a property of the magic word, it's a property of the > fu

[Mediawiki-api] List all URL for a given wiki ?

2015-08-08 Thread Nicolas Vervelle
Hi, Is there a way through the API to list all possible URL that can be used to link to an article ? For example, a siteinfo request for enwiki[1] gives a few possible URL: - with server and articlepath, you have URL like http://en.wikipedia.org/wiki/$1 - with server and script, you hav

[Mediawiki-api] How to expand only {{subst:}} and {{safesubst:}}

2015-09-19 Thread Nicolas Vervelle
Hi, Is it possible through the API to give it some wikitext and get in return the same wikitext where {{subst:}} and {{safesubst:}} have been replaced, as they would be when saving an edit ? In WPCleaner , I want to be able to insert things like

Re: [Mediawiki-api] How to expand only {{subst:}} and {{safesubst:}}

2015-09-19 Thread Nicolas Vervelle
PM, billinghurst wrote: > Why not just make a tag ... > > {{subst:#tag:ref|{{safesubst:CURRENTMONTHNAME OR > {{#tag:ref|{{safesubst:CURRENTMONTHNAME > > Regards, Billinghurst > > >1. How to expand only {{subst:}} and {{safesubst:}}

Re: [Mediawiki-api] How to expand only {{subst:}} and {{safesubst:}}

2015-09-19 Thread Nicolas Vervelle
On Sat, Sep 19, 2015 at 4:41 PM, Brad Jorsch (Anomie) wrote: > On Sat, Sep 19, 2015 at 7:09 AM, Nicolas Vervelle > wrote: > >> Is it possible through the API to give it some wikitext and get in return >> the same wikitext where {{subst:}} and {{safesubst:}} have been repla

Re: [Mediawiki-api] How to expand only {{subst:}} and {{safesubst:}}

2015-09-20 Thread Nicolas Vervelle
On Sun, Sep 20, 2015 at 1:50 PM, Brad Jorsch (Anomie) wrote: > On Sat, Sep 19, 2015 at 1:37 PM, Nicolas Vervelle > wrote: > >> sometimes, the text that I give to the API ends with a new line, but in >> the result that new line is removed. >> Is it normal ?

[Mediawiki-api] Backlinks behaviour with redirects having also content

2016-05-28 Thread Nicolas Vervelle
Hi, I find that the result of list=backlinks for page XXX is odd when one of the backlinks is a redirect on a different page than XXX, but has also contents with a link to XXX. See for example backlinks to en:Spin-off https://en.wikipedia.org/w/api.php?bltitle=Spin-off&continue=&action=query&blre

Re: [Mediawiki-api] Backlinks behaviour with redirects having also content

2016-05-30 Thread Nicolas Vervelle
On Sun, May 29, 2016 at 3:12 PM, Brad Jorsch (Anomie) wrote: > On Sat, May 28, 2016 at 8:42 AM, Nicolas Vervelle > wrote: > >> I find that the result of list=backlinks for page XXX is odd when one of >> the backlinks is a redirect on a different page than XXX, but has al

[Mediawiki-api] Retrieving the maximum allowed size for an article ?

2016-06-24 Thread Nicolas Vervelle
Hi, Is it possible to know through the API what is the maximum allowed size for an article on a given wiki ? One of the task of my bot is to update maintenance pages with a list of pages containing some types of errors, and sometimes the produced list is bigger than the maximum allowed size for an

Re: [Mediawiki-api] Retrieving the maximum allowed size for an article ?

2016-06-25 Thread Nicolas Vervelle
Thanks Brad for the answer. I've created a task in phabricator, T138669, https://phabricator.wikimedia.org/T138669 Nico On Fri, Jun 24, 2016 at 6:41 PM, Brad Jorsch (Anomie) wrote: > On Fri, Jun 24, 2016 at 11:58 AM, Nicolas Vervelle > wrote: > >> Is it possible to know

[Mediawiki-api] Action login doesn't return a lgtoken anymore

2016-10-17 Thread Nicolas Vervelle
Hi, I haven't followed the latest modifications on action login, but users of WPCleaner have been complaining for a few days that they couldn't do any modifications through WPCleaner, getting an error message saying that they must be logged in to update pages. I was away for few days, so I didn't

Re: [Mediawiki-api] Action login doesn't return a lgtoken anymore

2016-10-18 Thread Nicolas Vervelle
On Tue, Oct 18, 2016 at 1:09 PM, Dennis Roczek wrote: > See deprecation message at: > https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2016-August > /000115.html > > Thanks for the reply, but I don't see anything related to my problem in the post... I do not pass parameters in the POS

Re: [Mediawiki-api] Action login doesn't return a lgtoken anymore

2016-10-18 Thread Nicolas Vervelle
PM, Gergo Tisza wrote: > On Mon, Oct 17, 2016 at 11:38 PM, Nicolas Vervelle > wrote: > >> I haven't followed the latest modifications on action login, but users of >> WPCleaner have been complaining for a few days that they couldn't do any >> modifications thr

[Mediawiki-api] tpt-target-page : how to anticipate it for API:Edit ?

2020-06-07 Thread Nicolas Vervelle
Hello, I'm trying to add Meta as a wiki in my tool, WPCleaner. Meta has differences with the usual languages wikis, like the fact that a page can have translations. Such translations are handled by Extension:Translate, which prevents updating the translated pages through API:Edit (getting error tp

Re: [Mediawiki-api] tpt-target-page : how to anticipate it for API:Edit ?

2020-06-09 Thread Nicolas Vervelle
Thanks Bartosz ! That works for me. Nico On Mon, Jun 8, 2020 at 5:37 PM Bartosz Dziewoński wrote: > On 2020-06-07 15:30, Nicolas Vervelle wrote: > > Hello, > > > > I'm trying to add Meta as a wiki in my tool, WPCleaner. > > Meta has differences with the usua

[Mediawiki-api] API:Edit How does "recreate" parameter works ?

2020-12-19 Thread Nicolas Vervelle
Hi, I've posted this also on the API:Edit talk page https://www.mediawiki.org/wiki/API_talk:Edit#How_does_%22recreate%22_parameter_works_%3F Apparently, without this "recreate" parameter, an article can be recreated even if it was deleted since the retrieval of the basetimestamp. Is this an expe