Manual:Importing Wikipedia infoboxes tutorial
From MediaWiki.org
| This page is currently a draft. Material may not yet be complete, information may presently be omitted, and certain parts of the content may be subject to radical, rapid alteration. More information pertaining to this may be available on the talk page. |
|
|
Note: This tutorial is not for novice users. Importing templates into your third-party wiki from Wikipedia is often times a lengthy and challenging process. Some of Wikipedia's templates require multiple layers of underlying "support" or "utility" templates. You may have to repeat the export/import process several times. |
| Users | System Administrators | Developers |
This tutorial outlines steps to import infoboxes used by Wikipedia.
Contents |
[edit] Prerequisites
Before using this tutorial, you should familiarize yourself with the MediaWiki features it will be utilizing:
- meta:Help:Export
- meta:Help:Import
- Help:Editing pages
- Help:Templates
- Manual:Using content from Wikipedia
- Wikipedia infoboxes
- Designing infoboxes
You must also have these extensions installed, setup and working:
[edit] Steps
[edit] Step 1: Determine info boxes needed
- Find all infoboxes used on Wikipedia at w:Category:Infobox templates
- If there's an info box being used in a Wikipedia article you'd like to import:
- Visit the page's edit screen
- Scroll to the bottom and find the appropriate page name for the infobox template you'd like to import
[edit] Step 2: Export Wikipedia templates
- Go to Wikipedia's Special:Export page and enter the full page names of the infobox templates from step 1.
- For your first infobox to work, you'll also need to include the master infobox template,
Template:Infobox - Be sure to check the Include templates checkbox to include other necessary templates
- Most templates put their documentation in a subpage, so you may want to include
/docsubpage for each template you're importing- Example: for
Template:Infoboxyou should also downloadTemplate:Infobox/doc
- Example: for
[edit] Step 3: Import infobox templates
- Go to your wiki's Special:Import page and select the file you created from the export in step 2.
[edit] Step 4: De-Wikipediaify
- You may want to review all of the files that you just imported for references to Wikipedia pages.
- You can certainly leave them in place - and are encouraged to update them as links to the appropriate Wikipedia article (possibly using interwiki links)
- Pay special attention to categories, which may be buried in the template's code, and may include reference to Wikipedia
- Again, you can leave them, but you may wish to update them to your wiki's name or categorization policy
[edit] Step 5: Additional templates needed
- Once your import is complete, you should check the template on your wiki to see if it functions correctly
- A helpful step is to once again refer to the edit page's templates list
[edit] Step 6: Enjoy success
That's it! Enjoy your infoboxes!