MediaWiki - CMS |
8.5.1.2 CMS::MediaWiki (Perl Module) |
15.06.2007 |
| ← 8.5.1.1 WWW::Mediawiki::Client | [ up ] - [ A - Z ] - [ top ] | 8.5.2 XML Stuff → |
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/↑
← 8.5.1.1 WWW::Mediawiki::Client
A - Z Index
Top
Disclaimer
8.5.2 XML Stuff →
$Id: Perl-CMS-MediaWiki.html,v 1.88 2007/06/15 11:49:14 webcms Exp $
copyright © 2005-2007 by reto