forked from MediaWiki-Bot/MediaWiki-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Editing pages
Mike.lifeguard edited this page Aug 13, 2011
·
1 revision
my $text = $bot->get_text('My page');
$text .= "\n\n* More text\n";
$bot->edit({
page => 'My page',
text => $text,
summary => 'Adding new content',
section => 'new',
});Submits an edit, overwriting whatever was there before. Use get_text() to get the text first if you want to modify what's there already. Parameters are passed as a hashref of data: * page is where to put the text
-
textis the text to put -
summaryis the edit summary -
is_minoris whether to mark the edit as minor -
markasbotis whether to mark it as a non-bot edit -
assertadds a specific assertion for this edit only -
sectionedits a single section instead of the whole page (use 'new' to add a new section to the bottom;summarywill be the heading, if provided)
An MD5 hash is sent to guard against data corruption while in transit.