Perl - my Modules

1.1 CMS::MediaWiki


02.12.2008
You are here iC Home > Perl > my Modules > Perl Modules > CMS::MediaWiki
1 Perl Modules [  up  ] - [ A - Z ] - [ Search PC ] - [ Top of Modules ] 1.2 My::PGPFindkey

/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/
 
1.1   CMS::MediaWiki
1.2   My::PGPFindkey
1.3   Theodor::Wagner
1.4   Crypt::Lite
 1.4.1  Online Demo
1.5   Website
1.6   RTF




Advanced search tips
1 Perl Modules [  up  ] - [ top of Modules ] - [ top of Perl ] 1.2 My::PGPFindkey



[ home ] - [ search ] - [ feedback ]

copyright by reto - created with mytexi