[Mediawiki-api] Getting parsed pages without edit links

Bryan Tong Minh bryan.tongminh at gmail.com
Wed Jul 30 18:46:22 UTC 2008


On Wed, Jul 30, 2008 at 3:30 PM, Simon Lehmann <simon.lehmann at gmx.de> wrote:
> Hello list,
>
> I am currently developing a graphical browser for exploring and searching Wikipedia (or any MediaWiki based wiki for that matter). Now I am wondering if it is somehow possible to get the parsed content of an article without edit links at section headings (or whereever they might show up).
>
> I have searched the API documentation and found nothing so far.
>
> Regards,
>
> Simon Lehmann
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>

Try adding __NOEDITSECTION__ and transclusion:

<http://en.wikipedia.org/w/api.php?action=parse&text=__NOEDITSECTION__%10{{:New%20York}}&title=New%20York>

It may now work properly with stuff that uses <noinclude>/<includeonly>.

Bryan



More information about the Mediawiki-api mailing list