protected function getExamplesMessages() {
return [
- 'action=login&lgname=user&lgpassword=password'
- => 'apihelp-login-example-gettoken',
'action=login&lgname=user&lgpassword=password&lgtoken=123ABC'
=> 'apihelp-login-example-login',
];
"apihelp-login-param-password": "Password.",
"apihelp-login-param-domain": "Domain (optional).",
"apihelp-login-param-token": "Login token obtained in first request.",
- "apihelp-login-example-gettoken": "Retrieve a login token.",
"apihelp-login-example-login": "Log in.",
"apihelp-logout-summary": "Log out and clear session data.",
"apihelp-login-param-password": "{{doc-apihelp-param|login|password}}\n{{Identical|Password}}",
"apihelp-login-param-domain": "{{doc-apihelp-param|login|domain}}",
"apihelp-login-param-token": "{{doc-apihelp-param|login|token}}",
- "apihelp-login-example-gettoken": "{{doc-apihelp-example|login}}",
"apihelp-login-example-login": "{{doc-apihelp-example|login}}\n{{Identical|Log in}}",
"apihelp-logout-summary": "{{doc-apihelp-summary|logout}}",
"apihelp-logout-example-logout": "{{doc-apihelp-example|logout}}",