→ /know how/mediawiki reference/perl cms mediawiki
See search.cpan.org/dist/CMS-MediaWiki/lib/CMS/MediaWiki.pm↑
CMS::MediaWiki
Create or update MediaWiki pages. An update of a MediaWiki page can also be reduced to a specific page section.
You may update many pages with the same object handle ($mw in the shown example).
You could change the login name between an update. This might be necessary if you would like to update a public
page *and* a protected page by the WikiSysop user in just one cycle.
SYNOPSIS
use CMS::MediaWiki;
my $rmw = CMS::MediaWiki->new(
host => 'localhost',
path => 'wiki' ,
debug => 0 # 0, 1 or 2
);
DESCRIPTION
my $rc = $rmw->login(
#host => 'localhost' , # optional here, but wins
#path => 'wiki', # optional here, but wins
user => 'Reto' ,
pass => 'yourpass' ,
);
$rc = $rmw->editPage(
title => 'Online_Directory:Computers:Software:Internet:Authoring' ,
section => '' , # 2 means edit second section etc.
# '' means no section (edit the full page)
text => "== foo bar ==\nbar foo\n\n",
summary => "Your Summary" ,
);
See also:
meta.wikimedia.org/wiki/Perl↑
meta.wikimedia.org/wiki/Auto_Login_via_REMOTE_USER↑
meta.pgate.net/cms-mediawiki/↑
|
|
|