Manual:Using content from Wikipedia

Wikipedia, a Wikimedia project, uses a large number of extensions, a very up-to-date copy of the MediaWiki software, and a number of hacks and add-ons that make duplicating its layout and content output rather difficult.

However, there are some common issues that come up frequently enough to warrant a manual page on how to steal content from Wikipedia.

Template theft
There are a few likely issues if you have copied templates from Wikipedia and they do not seem to be working as expected.

{ {#if: ...
If you have copied templates directly from Wikipedia and you see output like and  it means that you do not have the ParserFunctions extension installed.

Odd colors and floating
Wikipedia uses site-wide CSS pages for things such as class="infobox". They are located at w:MediaWiki:Common.css and w:MediaWiki:Monobook.css. The latter is obviously only necessary if you're using MediaWiki's default skin, Monobook.

Show/hide links
The show / hide links are controlled using site-wide JavaScript. The relevant page is w:MediaWiki:Common.js.

HTMLTidy
Wikimedia wikis (like Wikipedia) use an program called HTMLTidy that cleans up markup and validates it. If a template you have lifted from Wikipedia contains code that uses both wiki markup and HTML, you'll need to enable HTMLTidy in order for it to work. See also: Manual:$wgUseTidy.

Template dependencies
At times, templates will call sub-templates or other templates on a wiki. If you click the edit tab and look at the bottom of the page below the edit text area, new versions of MediaWiki will list other templates called by the current template. These may need to be copied over as well for the template to work. Documentation subpages (Template:Foobar/doc) are generally not needed, though they can be helpful for more complex templates.

Generic duplication
Wikimedia's configuration files are available at http://noc.wikimedia.org/conf/

The extensions currently enabled on a specific project are located at Special:Version (e.g., http://en.wikipedia.org/wiki/Special:Version).

Wikimedia wikis use short URLs. More information regarding those is available at Manual:Short URL.