X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiDelete.php;h=d8b57182c46e84308cbc633a102a51dd5534a3bc;hb=87070fc6743bfe5da7b49f07561fc1e0b03897c4;hp=abca82454559a84efa1efa0673eccf065d11e440;hpb=be8170b5f32dd5d9567cbda2a54ceb8437fe74bf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index abca824545..d8b57182c4 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -210,35 +210,16 @@ class ApiDelete extends ApiBase { ); } - public function getParamDescription() { - $p = $this->getModulePrefix(); - - return array( - 'title' => "Title of the page you want to delete. Cannot be used together with {$p}pageid", - 'pageid' => "Page ID of the page you want to delete. Cannot be used together with {$p}title", - 'reason' - => 'Reason for the deletion. If not set, an automatically generated reason will be used', - 'watch' => 'Add the page to your watchlist', - 'watchlist' => 'Unconditionally add or remove the page from your ' . - 'watchlist, use preferences or do not change watch', - 'unwatch' => 'Remove the page from your watchlist', - 'oldimage' => 'The name of the old image to delete as provided by iiprop=archivename' - ); - } - - public function getDescription() { - return 'Delete a page.'; - } - public function needsToken() { return 'csrf'; } - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=delete&title=Main%20Page&token=123ABC' => 'Delete the Main Page', - 'api.php?action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move' - => 'Delete the Main Page with the reason "Preparing for move"', + 'action=delete&title=Main%20Page&token=123ABC' + => 'apihelp-delete-example-simple', + 'action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move' + => 'apihelp-delete-example-reason', ); }