The general issue of inline warnings & the need for a saner warning
mechanism is discussed at
https://phabricator.wikimedia.org/T141970. It
seems likely that some code in the infobox you are referencing looks at the
REVISION* value, and emits the inline warning if no revision is set.
The easiest way to get rid of the warning would be to heed the warning's
advice about the unknown "ethnicity" parameter.
On Wed, Jul 26, 2017 at 8:41 AM, Kenan Erdogan <Kenan.Erdogan(a)gesis.org>
wrote:
Hi,
I am using Wikipedia api
<https://www.mediawiki.org/wiki/API:Parsing_wikitext#parse> to convert
wiki text into html.
Everything works fine except that in the output there are also warning
messages which are normally seen in preview mode. To exclude them, I set
'preview' parameter to False in the query but warning messages are still in
the html output.
Here is an exmaple query:
https://en.wikipedia.org/w/
api.php?action=parse&format=json&preview=False&text=[[foo]
]+{{Infobox%20writer%20|%20name%20%20%20%20%20%20%20%
20%20=%20Test|%20ethnicity%20%20%20%20=%20[[test]]}}
Is there any idea how to get html output without preview warning messages.
Thanks a lot,
Kenan
--
GESIS - Leibniz Institute for the Social Sciences
Computational Social Science (CSS)
Team Social Analytics and Services
M.Sc. Kenan Erdogan
Unter Sachsenhausen 6-8, 50667 Cologne, Germany
Tel: + 49 (0) 221-47694-211 <+49%20221%2047694211>
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
--
Gabriel Wicke
Principal Engineer, Wikimedia Foundation