راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=globalpreferences

(main | globalpreferences)
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان تنها درخواست‌های POST را می‌پذیرد.
  • منبع: GlobalPreferences
  • مجوز: GPL-2.0-or-later

تغییر ترجیحات سراسری کاربر کنونی.

تنها ترجیحات ثبت‌شده برای این ویکی را می‌توان به‌صورت محلی تغییر داد.

پارامترها:
Other general parameters are available.
reset

Reset global preferences. Removes all, or, depending on the value of the resetkinds parameter, some types of global preferences and make them not global anymore.

نوع: بولی (جزئیات)
resetkinds

List of types of preferences to reset when the reset option is set.

مقدارهای (جداشده با | یا جایگزین‌های آن): all، registered، registered-checkmatrix، registered-multiselect، special، unused، userjs
پیش‌فرض: all
change

List of changes, formatted name=value (e.g. skin=vector). If no value is given (not even an equals sign), e.g., preferencename|otherpreference|..., the preference will be made non-global. If any value passed contains the pipe character (|), use the alternative multiple-value separator for correct operation.

Separate values with | or alternative.
حداکثر تعداد مقدارها ۵۰ است (۵۰۰ برای متقضایانی که مجوز محدودیت‌های بالاتر را دارند).
optionname

The name of the preference that should be set to the value given by optionvalue.

optionvalue

The value for the preference specified by optionname.

token

یک بلیط «csrf» واکشی‌شده از action=query&meta=tokens

این پارامتر الزامی است.