Hi,
I have one question in concerning the GPL-license in regard to a
web-application using the MediaWiki API for querying XML (and possible other
extensions). I'm unsure if the GPL-license will affect the client program
and would like to ask if anyone would care to comment?
Regards,
Trond Olsen.
Hello.
I am a developer at PediaPress, working for the wiki-to-print project
in collaboration with the Wikimedia Foundation (http://wikimediafoundation.org/wiki/Wikis_Go_Printable
).
By leveraging the MediaWiki API we have reached a point where an
integration to any MediaWiki installation is possible with almost no
configuration. But there's one last problem we couldn't solve,
specificially problems with licenses, that occur in two different
places.
1. Is it possible to programatically get the full text of the license
for the articles of a MediaWiki (ideally in form of an article in the
same MediaWiki installation)?
This information is needed by our project and probably by other
projects that want to respect license issues, too. With api.php?
action=query&meta=siteinfo only the name of the license can be
retrieved. The license name contained in siteinfo has only indirect
relation to the actual license found in the MediaWiki: On
en.wikipedia.org for example, the article "GNU Free Documentation
License" is an article *about* the GFDL, which links to
"Wikipedia:Text of the GNU Free Documentation License" (which itself
has the shortcut "Wikipedia:GFDL"). On de.wikipedia.org, the article
"Wikipedia:Text of the GNU Free Documentation License" does not
exists, but "Wikipedia:GFDL" does.
2. Is it possible to get the licenses (or at least license names) for
images?
The image descriptions (or "comments" from
action=query&prop=imageinfo&iiprop=comment) only include templates
("license boxes") whose names differ from one MediaWiki installation
to the other; needless to say, that not every included template needs
to be used for licensing information. Another problem with
iiprop=comment is, that sometimes not the full description text is
returned.
Thanks and best regards,
Johannes Beigel
hi,
i'm new in mediawiki
now i'm updating some pages of the wiki manually:
1- i have a cron process that generate a text file (html wiki format) from some
data acquisition
2- i open the text file -> select all -> ^C
3- then, i open the wiki article -> edit -> select all -> ^V -> save
i want to write a program (c, python, php, ...), launched by cron, and
makes points 2 & 3 (update the
database with the new data.
i was looking the API manual, i did some test with php, without any
results. would i have some primary example to understand the process
and continue away?
tks in adavance
Hi,
I am creating a program which bulk imports a ton of images to the mediawiki
"images" directory.
I would rather use a mediawiki api call to do this, but it does not seem to
be available.
Does anyone know the schema of the "images" directory. It appears to be
some kind of hash/tree structure in the file system. I just need to know
what the hash function is, so that I can place the image in the right
directory myself.
I will be happy to look through the source code to see how its done as well
- could someone point me to the right src file to look at?
Thanx, in advance!
-George
Hello,
Apologies if this is not the right list - if that is the case, please
point me to the right direction :-)
I'm trying to figure out how to port Indiwiki [1] to a webapp. Indywiki
is a QT-based, wikipedia-specific browser. Essentially it's an
alternative desktop app to navigate wikipedia.
To clarify, by "porting to a webapp" i mean pure HTML+Javascript (or
Ajax if you prefer). My understanding is i can use the Mediawiki API [1]
with JSON as the data format. Does this sound right?
[1] http://indywiki.sourceforge.net/
[2] http://www.mediawiki.org/wiki/API:Data_formats
Thanks,
Manos
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.
<?xml version="1.0" encoding="UTF-8"?>
<api>
<login result="WrongPass" wait="15" details="Please wait 5 seconds
before next log-in attempt" />
</api>
Nico
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…
<error code="internal_api_error_MWException" info="Exception Caught:
Internal error in ApiPageSet::getRedirectTargets: Invalid redirect IDs
were found">
#0 /usr/local/apache/common-local/php-1.5/includes/api/ApiBase.php(659):
wfDebugDieBacktrace('Internal error ...')
#1
/usr/local/apache/common-local/php-1.5/includes/api/ApiPageSet.php(540):
ApiBase::dieDebug('ApiPageSet::get...', 'Invalid redirec...')
#2
/usr/local/apache/common-local/php-1.5/includes/api/ApiPageSet.php(494):
ApiPageSet->getRedirectTargets()
#3
/usr/local/apache/common-local/php-1.5/includes/api/ApiPageSet.php(365):
ApiPageSet->resolvePendingRedirects()
#4
/usr/local/apache/common-local/php-1.5/includes/api/ApiPageSet.php(250):
ApiPageSet->initFromTitles(Array)
#5
/usr/local/apache/common-local/php-1.5/includes/api/ApiQuery.php(197):
ApiPageSet->execute()
#6 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(354):
ApiQuery->execute()
#7 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(222):
ApiMain->executeAction()
#8 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(207):
ApiMain->executeActionWithErrorHandling()
#9 /usr/local/apache/common-local/php-1.5/api.php(77): ApiMain->execute()
#10 /usr/local/apache/common-local/live-1.5/api.php(3):
require('/usr/local/apac...')
#11 {main}
</error>
It was working a few days ago, but now redirects seem to have problems.
Nico
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 new Edit
API.
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 a normal <error> result instead of just
"unknown_action: Unrecognised value for parameter 'action'" ?
Thanks,
Nico