Manual:Pywikibot/table2wiki.py

From MediaWiki.org
Jump to: navigation, search
Language: English  • polski
Wikimedia-logo-meta.png

This page was moved from MetaWiki.
It probably requires cleanup – please feel free to help out. In addition, some links on the page may be red; respective pages might be found at Meta. Remove this template once cleanup is complete.

Bug blank.svg
Wikimedia Git repository has this file:

Table2wiki.py is part of the Pywikipedia bot framework.

Converts HTML-tables to MediaWiki's language.

Examples[edit | edit source]

Example of the simplest syntax:

table2wiki.py "article name"

In this example, only 1 article is changed.

The process can also take place automatically, to do this a xml dump is needed:

table2wiki.py -xml:20050406_cur_table.xml -lang:en 

-xml = name of the xml dump.

Note: Every change needs to be checked. This bot can make mistakes.