convert wikipedia tables to csv and back for editing in Excel/LibreOffice
Wiki2csv is a command line tool to convert a file containing a table in wikipedia’s wikitable syntax to comma separated value syntax and the other way around. It was designed to allow editing of large wikipedia tables using the easier interface of common spreadsheet programs such as Microsoft Excel or LibreOffice. Therefore it tries to preserve as much of the layout and formatting directives from the wikitable as possible, and it tries to be fully round trippable.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.