MediaWiki API súgó
Ez egy automatikusan generált MediaWiki-API-dokumentációs lap.
Dokumentáció és példák: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=globalpreferences
- Ez a modul olvasási jogot igényel.
- Ez a modul írási jogot igényel.
- Ez a modul csak POST kéréseket fogad el.
- Forrás: GlobalPreferences
- Licenc: GPL-2.0-or-later
Change global preferences of the current user.
Only preferences registered for the current wiki can be changed locally.
- 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.- Típus: logikai (részletek)
- resetkinds
List of types of preferences to reset when the reset option is set.
- Értékek (elválasztó: | vagy más): all, registered, registered-checkmatrix, registered-multiselect, special, unused, userjs
- Alapértelmezett: 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.
- Az értékékeket a | karakterrel vagy az alternatív elválasztóval válaszd el.
- Az értékek maximális száma 50. (500 magasabb korláttal rendelkező ügyfelek számára).
- 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
Egy „csrf” token, az action=query&meta=tokens kéréssel lekérve
- Ez a paraméter kötelező.
- Make a single preference non-global.
- api.php?action=globalpreferences&change=skin=&token=123ABC [megnyitás a homokozóban]
- Make all preferences non-global.
- api.php?action=globalpreferences&reset=&token=123ABC [megnyitás a homokozóban]
- Change skin and hideminor preferences.
- api.php?action=globalpreferences&change=skin=vector|hideminor=1&token=123ABC [megnyitás a homokozóban]