Eclipse Wikipedia Editor/Download a Wikipedia Article

<<Back

Contents


Download Articles

With selecting multiple files and folders in the Navigator View and doing a right mouse click you can download and upload files to a Wikipedia site.

Note: especially the upload function is not working properly for every possible character encoding. We only tested UTF-8 encoded sites so far with the plugin. So you probably will get problems with other encodings like for example ISO-8859-1.

You use the plugin at you own risk

Example: grabbing a wikibooks.org article

  • create a new index.wp file under your projects /wpsrc directory by doing a right mouse click on the /wpsrc directory and selecting menu New->File. In the appearing dialog box type index.wp for the file name and press the Finish button. In the editors area a file named index.wp should be opened now.
  • write a Wiki link definition somewhere in the index.wp editor area, for example write: [[HTML Programming]]
  • do a "right mouse" click on the link and select menu Open Wiki Link
  • a new file with the wpsrc/HTML_Programming.wp filename should open in the editors area.
  • do a "right mouse" click on the new file name in the Navigator View and select menu Wikipedia Download->Refresh Wikipedia from Web

  • in the opening dialog box select WikibooksEN Download
  • and press the Ok button

  • after a while the text should appear in the editor (timeout is set to 30 seconds)
  • you can now modifiy the Wikipedia text locally on your PC
  • press Ctrl+S to save the downloaded text and the browser preview should refresh
  • in the next step you can do a right mouse click in the editor and select the menu Create files for Wiki links
  • a dialog appears there you can select for every Wiki link, if a new corresponding file should be created
  • for every selected Wiki link in your current document a corresponding file will be generated in the Navigator View

Rules for filename generation

Every Wiki name will be transformed into a filename wih the following rules:

  • every space character is replaced by an "_" character (underscore)
  • every ":" character (colon) is replaced by a "/" character (slash)

Automatically generated XML download file

If you download a Wikipedia article the action creates or updates a corresponding *.xml file in the /wikibook/wpbin folder which contains information about:

  • the title of the article
  • the timestamp of the article (important for later updates)
  • the contributor of the article
  • the article's download text

Grabbing a Category

Open the context menu in the editor (right mouse click):

Input box for the category:

Select the wikibooks.org site:

All wiki articles for the category are shown in a selection dialog. You can select which articles should be created as a file: