Catmandu::Importer::MWTemplates - extract MediaWiki template data
Command line client catmandu:
catmandu
catmandu convert MWTemplates --file example.wiki catmandu convert MWTemplates --site en --page Feminis catmandu convert MWTemplates --site de --page Feminism --template Literatur
This Catmandu::Importer extracts MediaWiki Templates from wiki pages.
The MediaWiki site to get data from. This must either be a base URL such as http://en.wikipedia.org/ or a Wikipedia name tag, such as en. If no site is specified, the input is read from file or standard input as wiki markup.
en
file
A wiki page to get data from.
A template to extract data for. If not specified, all templates will be extracted with the template name if field TEMPLATE.
TEMPLATE
The field to store template name in. Set to TEMPLATE by default.
Keep wikilinks if set to 1 (default). If disabled (0), links will be transformed to plain text. If set to 0, links will be transformed to their link target.
See Catmandu::Importer for general importer methods.
Catmandu::Wikidata
The core parsing method is based on a script originally created by Erich Zachte: http://meta.wikimedia.org/wiki/User:LA2/Extraktor
Copyright Jakob Voss, 2015-
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catmandu::Importer::MWTemplates, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::Importer::MWTemplates
CPAN shell
perl -MCPAN -e shell install Catmandu::Importer::MWTemplates
For more information on module installation, please visit the detailed CPAN module installation guide.