Assembly line writers

There is little good in processing wiki data - or any other - to eventually lose it. The processed data has to be written somewhere - back to the wiki, or in files, or in databases... The assembly line objects that do write the data are called writers.

If a writer object receives a signal that contains a paramgroup named 'writer', the values of the writer object will be set from the parameters in this paramgroup with equivalent names.

All writers files are situated in subdirectories of the directory line/writers.

$cascade - if true, protect (with the same protections) also the templates transcluded in this page

Also, the page title is supplied by the signal data_title() function.

Writer_Wiki_Purge

purge.php

Purge the page cache

The page title is supplied by the signal data_title() function.

Writer_Wiki_Rollback

rollback.php

Rolls back the last changes to this page, if made by the user given

$summary - a description of the rollback

$user - username whose changes to rollback

$markbot - if true, mark the rollback as made by a bot

Also, the page title is supplied by the signal data_title() function.

Writer_Wiki_Semiprotect

semiprotect.php

Marks a page as semi-protected

$reason - a text that explans, as a comment, the move

$protections - an array with actions as keys and the appropriate minimal access levels (eg. "sysop") to allow for them as values (in this case, 'delete' and 'restore' are "sysop" and all others are "autoconfirmed")

$cascade - if true, protect (with the same protections) also the templates transcluded in this page

Also, the page title is supplied by the signal data_title() function.

Writer_Wiki_Unblock

unblock.php

Unblocks an user

$reason - a text that explans, as a comment, the unblocking

$block_id - the id for the block you want to undo, if not the last (can be obtained through the API / bot query for blocks list)

Also, the username is supplied by the signal data_user() function.

Writer_Wiki_Undelete

undelete.php

Undeletes page revisions (and possibly the entire page);

$reason - a text that explans, as a comment, the undeleting

$timestamps - timestamps for the revisions that must be undeleted

Also, the page title is supplied by the signal data_title() function.

Writer_Wiki_Undo

undo.php

Undoes (removes) a number of page revisions

$summary - a description of the changes

$undo_revid - revision ID to undo

$to_revid - undo back to this revision (but not including it)

$is_bot - if true, will mark this undo as bot-made

$is_minor - if true, will mark this undo as minor

$watch - if true, add the page name to the bot account's watchlist

Also, the page title is supplied by the signal data_title() function.

Writer_Wiki_Unprotect

unprotect.php

Marks a page as unprotected

$reason - a text that explans, as a comment, the move

$protections - an array with actions as keys and the appropriate minimal access levels (eg. "sysop") to allow for them as values (in this case, 'delete' and 'restore' are "sysop", 'edit' is "*" and 'move' and 'rollback' are "autoconfirmed")