Help:How to Convert a Microsoft Office Document into Wiki FormatEdit This Page

From FamilySearch Wiki

Revision as of 23:43, 5 February 2013 by Averyld (Talk | contribs)
Help-content.png This help article will guide you as you edit in the Wiki. See Contributor Help for more help articles.



Some contributors wish to import information from existing documents or spreadsheets. This is especially helpful when trying to import tables, or keep current formatting from pre-existing documents or spreadsheets. The process is time-intensive and advanced. Before following these steps, consider if it may take less time to re-create a table than to import an existing one. 

Method 1: For Word 2007

Microsoft released an add-in that allows you to save your Microsoft Office Word 2007 or later documents straight into MediaWiki.

  1. Download the "Microsoft Office Word Add-in For MediaWiki" from Microsoft Download Center, and install it.
  2. Save the document as "MediaWiki (*.txt)" file type.
  3. Copy the text from the (*.txt) file into your Wiki page

This Microsoft add-in does not handle images and throws an error

Method 2: For any version of Word

  1. Open your document in Word, and "save as" an HTML file.
  2. Open the HTML file in a text editor and copy the HTML source code to the clipboard.
  3. Paste the HTML source into the large text box labeled "Raw HTML" on the html to wiki page.
  4. Click the "Convert HTML to wiki markup" button.
  5. Select the text in the "MediaWiki markup" text box and copy it to the clipboard.
  6. Paste the text to a Wikipedia article.

Method 3: For versions of Word before 2007

  1. (On your computer:) Download and install Open Office. This is free, but usually takes a few minutes (depending on the speed of your Internet connection). The latest version of Open Office does not export wikitext, so you need to download version 2.4, for example, which you can find in several websites, including this one: www.brothersoft.com/d.php
  2. Once Open Office is installed on your computer, open the following Open Office program by clicking on your Start button, then Programs/All Programs, and click on OpenOffice at the bottom of the list of the programs:
    • to import a Microsoft Office document or HTML file, open Open Office Writer
  3. Once the program is open (Writer for Word documents or HTML files), open your document in the program by clicking File, then Open, and locate the the document you want to copy text from on your computer or storage device.
  4. Once the document is open in the Open Office program, click the File menu, and then click Export.
  5. The "Export" window will appear. First type a name for the file in the export window. Next, in the "File Format" dropdown, select MediaWiki.
  6. At the top of the "Export" window, choose a folder in which you want to save the file, and click Save. Remember where you saved the file. You may want to write down the location you saved the file.
  7. A text document (.txt) will be created in the location you specified in step 6. Locate the document you just created. Open that document by double clicking on it. It will open in NotePad or another text editor.
  8. (Online at Wiki.FamilySearch.org:) Open the page in which you wish to import the document  or create a new page, and open the edit box by clicking on the Edit option for that page or article. This will open the editing window. At the top of the editing window is a tan colored bar containing several icons (see below):Image:Editor_Toolbar.png
  9. Click on the Wikitext button on the editor toolbar, in the lefthand corner of the toolbar (see below): [Note: You do not need to do this if you have the rich text editor disabled in your preferences]. Image:Editor_ToolbarWT.png 
  10. (On your computer:) Select all of the contents in the text document by holding down the Ctrl key while pressing the A key once. Copy the highlighted text by holding down the Ctrl key while pressing the C key once.
  11. (Online at FamilySearch.org:) Paste the copied text into the wiki authoring window in the location you want the text or table to appear by placing your cursor in the appropriate location in the body of the text, and left clicking with your mouse to indicate where the text or table should appear.
  12. While holding down the Ctrl button on the keyboard, press the V key on the keyboard. (See the "Special Instructions" section below for additional help regarding tables.)
  13. After pasting the text into the editing window, scroll down to the bottom of the screen, and click Save page. The formatted text and/or tables will appear on the Wiki page.


Special Instructions

To format a table after pasting the text:

  1. Click edit to edit the page.
  2. Click the Wikitext button in the lefthand corner of the editor toolbar.
  3. Search the document for each occurance of this line: {| class="prettytable"
    The line will appear once for each table that is in the document. This will widen the table and add a border.
  4. Change the line to read as follows: {| width="75%" border="1"
    [Note: You can change the percentage value for "width" to make your table wider or narrower.]

Help-content.png Questions?
Visit the Wiki Contributor Help Forum to receive help with contributing to the Wiki.