Hello. I would like to learn if this possible
For example lets say the article gelmek
here the link https://en.wiktionary.org/wiki/gelmek
On that page it has conjugations
When we click edit, we see that it has the following template/module
{{tr-conj|gel|e|gelir|i|d}}
So can i parse this?
Like i provide the page id and this template to get the parsed results via api?
Or any other way?
e.g. https://en.wiktionary.org/w/api.php?action=query&titles=gelmek&parse...
If you're looking to convert that to HTML, then yes, there is the action=parse API. For example: https://en.wiktionary.org/wiki/Special:ApiSandbox#action=parse&format=js...
If you want to turn that into machine-readable data, or to extract the conjugations from other pages, then there is probably no way to do it, other than implementing it on your own.
I have found this. Is this the best I can get?
https://en.wiktionary.org/w/api.php?action=parse&format=xml&text=%7B...
On Fri, Jan 31, 2020 at 10:45 AM Bartosz Dziewoński matma.rex@gmail.com wrote:
If you're looking to convert that to HTML, then yes, there is the action=parse API. For example:
https://en.wiktionary.org/wiki/Special:ApiSandbox#action=parse&format=js...
If you want to turn that into machine-readable data, or to extract the conjugations from other pages, then there is probably no way to do it, other than implementing it on your own.
-- Bartosz Dziewoński
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org