Hello,
I am writing a Java program to extract the abstract of the wikipedia page
given the title of the wikipedia page. I have done some research and found
out that the abstract with be in rvsection=0
So for example if I want the abstract of 'Eiffel Tower" wiki page then I am
querying using the api in the following way.
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Eiffel…
and parse the XML data which we get and take the wikitext in the tag <rev
xml:space="preserve"> which represents the abstract of the wikipedia page.
But this wiki text also contains the infobox data which I do not need. I
would like to know if there is anyway in which I can remove the infobox data
and get only the wikitext related to the page's abstract Or if there is any
alternative method by which I can get the abstract of the page directly.
Looking forward to your help.
Thanks in Advance
Aditya Uppu
When list=allusers is used with auactiveusers, a property 'recenteditcount'
is returned in the result. In bug 67301[1] it was pointed out that this
property is including various other logged actions, and so should really be
named something like "recentactions".
Gerrit change 130093,[2] merged today, adds the "recentactions" result
property. "recenteditcount" is also returned for backwards compatability,
but will be removed at some point during the MediaWiki 1.25 development
cycle.
Any clients using this property should be updated to use the new property
name. The new property will be available on WMF wikis with 1.24wmf12, see
https://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule.
[1]: https://bugzilla.wikimedia.org/show_bug.cgi?id=67301
[2]: https://gerrit.wikimedia.org/r/#/c/130093/
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
Hi,
I'm using two step approach to retrieve "see also" section links from
articles by retrieving sections and using the section index for links
action.
Today I noticed that for the article "Synchronous programming language"
this gives unexpected results.
The page
https://en.wikipedia.org/w/api.php?action=parse&prop=sections&page=Synchron…
returns
... <s toclevel="1" level="2" line="See also" number="4" index="4" .....
and the following query
https://en.wikipedia.org/w/api.php?action=parse&prop=links&page=Synchronous…
gives a long list of links very different to the actual correct list shown
in the wikipedia article. Other usage of the same algorithm with other
articles works correctly.
Is this a bug?
Thanks
Max
Hi,
I am not sure if this is right place to post this question. It's about link
target black. I insert a hyper link in the wikicode. When people click it,
I want it to be popped out in another new window. Anyone knows how it could
work out? Thanks!
Here is how the wikicode looks like now:
[https://website.. hyper_link]
Hi there,
I am new to the media wiki. Any help on this below query is highly
appreciated.
Query:
I have created a media wiki server and update a section of one particular
page (a table of values) dynamically.
I am planning to do this using rest APIs referring to
https://www.mediawiki.org/wiki/API:Tutorial
What is the flow I should follow to edit a page? Should I use APIs to login
first and then get the csrf token using another rest API and then finally
update the page.
What is the exact sequence??
Thanks in advance