From 2cee7ebc042e81c857fe4b38c565b11fddb88529 Mon Sep 17 00:00:00 2001 From: Tyler Anthony Romeo Date: Wed, 13 Feb 2013 17:42:09 -0500 Subject: [PATCH] (bug 44943) Cleanup of API:Account creation documentation. Improved documentation for the parameters for action=createaccount and fixed the help link so it is valid. Change-Id: I8123aed59077d2cb7446df43fefbb6632dc608d7 --- includes/api/ApiCreateAccount.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/api/ApiCreateAccount.php b/includes/api/ApiCreateAccount.php index 8c49c17c58..b6c6210d7c 100644 --- a/includes/api/ApiCreateAccount.php +++ b/includes/api/ApiCreateAccount.php @@ -189,15 +189,15 @@ class ApiCreateAccount extends ApiBase { public function getParamDescription() { $p = $this->getModulePrefix(); return array( - 'name' => 'User Name', + 'name' => 'Username', 'password' => "Password (ignored if {$p}mailpassword is set)", - 'domain' => 'Domain (optional)', + 'domain' => 'Domain for external authentication (optional)', 'token' => 'Account creation token obtained in first request', - 'email' => 'Email address of user', - 'realname' => 'Real Name of user', - 'mailpassword' => 'Whether to generate and mail a random password to the user', - 'reason' => "Optional reason for creating the account (used when {$p}mailpassword is set)", - 'language' => 'Language code to set for the user.' + 'email' => 'E-mail address of user (optional)', + 'realname' => 'Real name of user (optional)', + 'mailpassword' => 'If set to any value, a random password will be e-mailed to the user', + 'reason' => 'Optional reason for creating the account to be put in the logs', + 'language' => 'Language code to set as default for the user (optional, defaults to content language)' ); } @@ -264,6 +264,6 @@ class ApiCreateAccount extends ApiBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Account creation'; + return 'https://www.mediawiki.org/wiki/API:Account_creation'; } } -- 2.20.1