Extension:UploadCSV

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
UploadCSV
Release status: unmaintained
Implementation User interface
Description Mass creation of articles using data from a csv-file.
Author(s) User:GunterS
Latest version 0.2
MediaWiki 1.10, 1.9, 1.8?
License No license specified
Download Download
Translate the UploadCSV extension if it is available at translatewiki.net
Check usage and version matrix.

What can this extension do?[edit]

This extension allows you to automatically create articles based on a csv-file and a template with variables.

Usage[edit]

Create a spreadsheet file with a header line:

  • One column must be named "pagetitle".
  • Each other column title must represent the exact name of a variable in the template. Columns with titles not represented in the template will be ignored. The variable name is case insensitive.

With the data of each row an article named <column pagetitle> will be created/edited and populated it with the given template name and all variables of the template.

Save the spreadsheet as .csv file. All columns must be separated with a ";".

For now " is not allowed and thus no ; in the text.

In order to access the upload user interface, you will need to navigate in your browser to the special page Special:UploadCSV.

Installation[edit]

Changes to LocalSettings.php:

require_once( "$IP/extensions/UploadCSV/UploadCSV.php" );

See also[edit]

  • Extension:Data Transfer can also be used to import CSV files (each row is also created as a single page with a template).