-
-
02 Mar 2015 10:17:36 UTC
- Distribution: Catmandu-Importer-MWTemplates
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (4)
- Testers (442 / 24 / 93)
- Kwalitee
Bus factor: 1- 76.19% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (17KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 2 contributors- Jakob Voß
-
Jakob Voss
- Dependencies
- Catmandu
- Furl
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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 fromfile
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. - wikilinks
-
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
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.
Module Install Instructions
To install Catmandu::Importer::MWTemplates, copy and paste the appropriate command in to your terminal.
cpanm Catmandu::Importer::MWTemplates
perl -MCPAN -e shell install Catmandu::Importer::MWTemplates
For more information on module installation, please visit the detailed CPAN module installation guide.