wikitrans1
Mediawiki markup translator
Usage
wikitrans [OPTIONS]
ARG
Overview
wikitrans translates MediaWiki documents markup to various other formats. If ARG looks like a URL, the wiki text to be converted will be downloaded from that URL.
Otherwise, if --base-url is given, ARG is treated as the name of the page to get from the WikiMedia istallation at that URL.
Otherwise, ARG is name of the file to read wiki material from.
Options
-
--version -
Show program version number and exit.
-
-h, --help -
Show a short usage summary and exit.
-
-v, --verbose -
verbose operation
-
-I ITYPE, --input-type=ITYPE -
set input document type ("default" or "wiktionary")
-
-t OTYPE, --to=OTYPE, --type=OTYPE -
set output document type ("html" (default), "texi", "text", or "dump")
-
-l LANG, --lang=LANG -
set input document language
-
-o KW=VAL, --option=KW=VAL -
set keyword option for the parser class constructor
-
-d DEBUG, --debug=DEBUG -
set debug level (0..100)
-
-D, --dump -
dump parse tree and exit; similar to
--type=dump
-
-b URL, --base-url=URL -
set base url
Note: when using
--base-urlor passing URL as an argument (2nd and 3rd use cases above), if the URL is in 'wikipedia.org' or 'wiktionary.org' domain, the options--input-type, and--langare set automatically.
Examples
wikitrans text.wiki
wikitrans --base-url http://en.wiktionary.org door
wikitrans https://en.wiktionary.org/wiki/Special:Export/door
Releases
Unchanged in 4 releases since Debian 10 (Buster).