The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catmandu::Importer::MWTemplates - extract MediaWiki template data

DESCRIPTION

SYNOPSIS

Command line client catmandu:

    catmandu convert MWTemplates --file example.wiki 
    catmandu convert MWTemplates --site en --page Feminis
    catmandu convert MWTemplates --site de --page Feminism --template Literatur
    

DESCRIPTION

This Catmandu::Importer extracts MediaWiki Templates from wiki pages.

CONFIGURATION

site

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.

page

A wiki page to get data from.

template

A template to extract data for. If not specified, all templates will be extracted with the template name if field TEMPLATE.

tempname

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.

METHODS

See Catmandu::Importer for general importer methods.

SEE ALSO

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 AND LICENSE

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.