User:Ganeshbot/CSVLoader

From Wikipedia, the free encyclopedia

Shortcut:
WP:CSV

CSV Loader is a AWB plug-in that allows for creating/updating articles based on the CSV data files. Please test your changes in sandbox before running the plugin on the articlespace. It can be used to create new articles (for example, Towns and cities) or add text to existing articles (for example, add infoboxes where missing).

Contents

[edit] Download

  • Current version: 1.0.0.1
  • Download link (may be packaged with AWB at a later time)

[edit] Projects that used this plugin

Please list any projects that used this plugin here.

  • New project

[edit] Using AWB to create articles from CSV data files

  1. Create a CSV file. The first column must be the article name. Don't specify the column headers. You will do that later. Don't specify any wikilinks.
  2. Copy CSVLoader.dll to the AWB directory.
  3. Log in to AWB
  4. Choose the option "text file" in the box "Make from".
  5. Click "make list" and select the input file.
  6. Select "CSV Loader plugin" from the Plugins menu.
  7. In the CSV loader settings box,
    • select whether to skip if no changes are made (default is "checked")
    • enter the column headers (enclose them with ##, example: ##city##,##district##,##state##,##country##)
    • select whether to append, prepend or replace the new text.
    • enter the new text (use the column headers where applicable, example: ##city## is a city in [[##district## district]] in the state of [[##state##]] in [[##country##]]).
    • click OK
    • Plugin will now replace all the rows in the article list with the article names.
  8. To create new articles only, enable "skip existing pages" in the skip tab.
  9. Enter a edit summary
  10. CSV Loader settings will be saved when using Save Settings on AWB. This will allow for seperate XML settings file for each type of load.
  11. De-select "CSV Loader plugin" from the Plugins menu once all the articles are loaded.

[edit] Example

[edit] Source

Here is the Plugin source-code. Please suggest any improvements.