Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=removeavatar

(main | removeavatar)
  • Ten moduł wymaga praw odczytu.
  • Ten moduł wymaga praw zapisu.
  • Ten moduł akceptuje tylko żądania POST.
  • Źródło: SocialProfile
  • Licencja: nieznana

Remove an avatar, either yours or if you're privileged, also that of another user.

Parametry:
Other general parameters are available.
user

Name of the user whose avatar to remove.

Ten parametr jest wymagany.
Typ: użytkownik, podany jako: nazwa użytkownika
reason

Optional reason as to why you're removing someone else's avatar.

token

Token „csrf” pobrany z action=query&meta=tokens

Ten parametr jest wymagany.
Przykłady:
Remove the avatar of the user named "Ashley"
api.php?action=removeavatar&user=Ashley&token=123ABC [otwórz w brudnopisie]
Remove the avatar of the user named "Elektra" with "Blatant copyvio" as the deletion reason
api.php?action=removeavatar&user=Elektra&token=123ABC&reason=Blatant copyvio [otwórz w brudnopisie]