module WEdit:sig
..end
These queries affects the mediawiki database.
val write_page : session ->
?summary:string ->
?minor:minor_flag ->
?watch:watch_flag ->
?bot:bool ->
?create:create_flag ->
page -> string -> edit_status Call.t
summary
: Summary of the edit. Default: emptyminor
: Set the minor flag. Default: `DEFAULT
watch
: Add the page to your watchlist. Default: `DEFAULT
bot
: Set the bot flag. Default: false
create
: Behaviour w.r.t. the existing status. Default: `DEFAULT
val write_title : session ->
?summary:string ->
?minor:minor_flag ->
?watch:watch_flag ->
?bot:bool ->
?create:create_flag ->
Title.t -> string -> edit_status Call.t
WEdit.write_page
but with a title only. Do not check for any conflict.val move_page : session ->
?summary:string ->
?watch:watch_flag ->
?rdr:bool ->
?subpages:bool ->
?talk:bool ->
?ignore_warnings:bool ->
page -> Title.t -> move_result Call.t
summary
: Reason of the move. Default: emptywatch
: Add the page to your watchlist. Default: `DEFAULT
rdr
: Create the redirect. Default: true
subpages
: Also move the subpages. Default: true
talk
: Also move the talk page. Default: true
ignore_warnings
: Ignore any warnings. Default: false
val move_title : session ->
?summary:string ->
?watch:watch_flag ->
?rdr:bool ->
?subpages:bool ->
?talk:bool ->
?ignore_warnings:bool ->
Title.t -> Title.t -> move_result Call.t
WEdit.move_page
but with a title only.val delete_title : session ->
?summary:string ->
?watch:watch_flag -> Title.t -> unit Call.t
summary
: Reason for the deletion. Default: emptywatch
: Add the page to your watchlist. Default: `DEFAULT
val upload_file : session ->
?summary:string ->
?text:string ->
?watch:watch_flag ->
?ignore_warnings:bool -> string -> string -> upload_result Call.t
upload_file s dest file
uploads local file file
to remote file dest
.summary
: Comment to the upload. Default: emptytext
: Text to put on empty description pages. Default: Same as summary
watch
: Add the page to your watchlist. Default: `DEFAULT
ignore_warnings
: Ignore any warnings. Default: false