Word2mediawiki

From ChekMate Security Group

Contents

MS Word to MediaWiki Instructions

Prepare to Export from Word

  1. Download the file Word2MediaWiki.bas
  2. Open your document in Microsoft Word.
  3. On the menu bar, select "Tools File → Macro File → Visual Basic Editor."
  4. In Visual Basic Editor, select "File File → Import." Choose "Word2MediaWiki.bas."

Prepare to Import

  1. Open a browser and go to the WebCT page for the course. Click the link for Chempedia.
  2. In the upper right corner, click "Create an account or log in."
  3. Select a username and password and log in.

Export from Word

  1. Switch back to Microsoft Word.
  2. On the menu bar, select "Tools File → Macro File → Macros…"
  3. In the "Macro name" list choose "Word2MediaWiki" and press "Run."

Import to MediaWiki

  1. Switch back to your browser window.
  2. Place the cursor inside the edit box and select "Edit File → Paste" from the browser menu bar. (Your content will automatically be copied to the clipboard.)
  3. Click "Save Page."

Create Image Files for your Figures

  1. Switch back to Microsoft Word.
  2. Select "File File → Save As…"
  3. Select "Web Page (*.htm, *.html)." This creates a folder of files.
  4. Open the folder of files and notice that figures from your Word document are image files.

Upload the Image Files

  1. Switch back to your browser. Click on "Upload File" from the left "toolbox" menu on Chempedia.
  2. Click the "Browse…" button and locate an image file from your Word-as-web-page folder.
  3. Change the name of the file to "<article_title>_<n>.gif" for example "fireworks_3.gif" if this is the 3rd figure in the fireworks article.
  4. Write this new filename down on a piece of scratch paper.
  5. Enter any caption text in the "Description" box.
  6. Click save.
  7. Repeat step 1-6 for each figure in your article.

Include the Image Files in your Article

  1. Click on "Main Page" from the left "navigation" menu on MediaWiki.
  2. Again find the title for your article and click the link.
  3. Press the "Edit" tab on the page for your article.
  4. Place the cursor in the text where you’d like your figure to be inserted.
  5. Type "[[Image:<article_title>_<n>.gif|right|thumb|<caption>]]" to indicate your figure file, for example
    [[Image:fireworks_3.gif|right|thumb|Fireworks exploding over Washington, DC]]
  6. Repeat step 31 for each figure in your article.
  7. Click "Save Page."