Extension:WikipediaExtracts

The WikipediaExtracts extension allows you to insert content extracted directly from Wikipedia into any MediaWiki wiki. The content extracted comes in the form of limited wikitext, omitting leading templates, links to files or pages, etc., so it looks great on any wiki.

Tag
To insert the content of any Wikipedia article into any MediaWiki wiki, simply write: Title of the article Or alternatively:  If you omit the title, then the title of the current page will be used for querying Wikipedia.

You can control some aspects of the content you get from Wikipedia by passing parameters to the tag:
 * language - The language of the Wikipedia you query ("en", "es", "de", etc.) The default is the content language of your wiki.
 * chars - The number of characters you get.
 * sentences - The number of sentences you get.
 * intro - Wether or not to get content only before the first section. Any value means true.
 * plaintext - Wether or not to get content as plain text rather than limited HTML. Any value means true.
 * sectionformat - Either "plain", "wiki" or "raw". Default is "wiki".

Most of these parameters are based on the API of the Extension:TextExtracts, check its documentation for more details.

Parser function
The parser function works pretty much like the tag, but it's more limited. To get the content of any Wikipedia article, just write: Again, if you omit the title, the title of the current page will be used.

The parser function only takes one additional parameter, that controls the number of sentences you will get. So for example, if you only want the first sentence of an article, write:

The main reason to use the parser function instead of the tag is because it can be combined with magic words and templates.