Pomoc MediaWiki API
To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API
action=createaccount
(main | createaccount)
- Ten moduł wymaga praw zapisu.
- Ten moduł akceptuje tylko żądania POST.
Create a new user account.
Parametry:
- name
Nazwa użytkownika
- Ten parametr jest wymagany.
- password
Password (ignored if mailpassword is set).
- domain
Domain for external authentication (optional).
- token
Account creation token obtained in first request.
Email address of user (optional).
- realname
Real name of user (optional).
- mailpassword
If set to any value, a random password will be emailed 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).
- captchaword
Answer to the CAPTCHA
- captchaid
CAPTCHA ID from previous request
Przykłady:
- Create user testuser with password test123.
- api.php?action=createaccount&name=testuser&password=test123
- Create user testmailuser and email a randomly-generated password.
- api.php?action=createaccount&name=testmailuser&mailpassword=true&reason=MyReason