Wiki::Toolkit::Formatter::Mediawiki::Link - Link object returned by Wiki::Toolkit::Formatter::Mediawiki's find_internal_links method.
This package implements a link object for the Wiki::Toolkit::Formatter::Mediawiki which stores a link 'name' and its 'type' be it page, external, or a template link. If both 'name' and 'type' are not provided, the method returns undef.
use Wiki::Toolkit use Wiki::Toolkit::Store::Mediawiki; use Wiki::Toolkit::Formatter::Mediawiki; my $store = Wiki::Toolkit::Store::Mediawiki->new ( ... ); # See below for parameter details. my $formatter = Wiki::Toolkit::Formatter::Mediawiki->new (%config, store => $store); my $wiki = Wiki::Toolkit->new (store => $store, formatter => $formatter); my $content = $config{wiki}->retrieve_node ($node); my @links_to = $config{formatter}->find_internal_links ($content); foreach my $link (@links_to){ print $link . "\n" unless $link->{type} eq 'EXTERNAL'; }
Derek R. Price, <derek at ximbiot.com>
<derek at ximbiot.com>
Please report any bugs or feature requests to bug-cgi-wiki-formatter-mediawiki-link at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Wiki-Toolkit-Formatter-Mediawiki-Link. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cgi-wiki-formatter-mediawiki-link at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Wiki::Toolkit::Formatter::Mediawiki::Link
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Wiki-Toolkit-Formatter-Mediawiki-Link
CPAN Ratings
http://cpanratings.perl.org/d/Wiki-Toolkit-Formatter-Mediawiki-Link
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Wiki-Toolkit-Formatter-Mediawiki-Link
Search CPAN
http://search.cpan.org/dist/Wiki-Toolkit-Formatter-Mediawiki-Link
My thanks go to Kake Pugh, for providing the well written Wiki::Toolkit and Wiki::Toolkit::Kwiki modules, which got me started on this.
Copyright 2008 Ximbiot LLC., all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Wiki::Toolkit::Formatter::Mediawiki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wiki::Toolkit::Formatter::Mediawiki
CPAN shell
perl -MCPAN -e shell install Wiki::Toolkit::Formatter::Mediawiki
For more information on module installation, please visit the detailed CPAN module installation guide.