Bantuan API MediaWiki
Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.
Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API
action=jsonconfig
(main | jsonconfig)
- Modul ini memerlukan hak membaca.
- Source: JsonConfig
- License: GPL-2.0-or-later
Allows direct access to JsonConfig subsystem.
Parameter:
Other general parameters are available.
- command
Which sub-action to perform on JsonConfig:
- status
- Shows JsonConfig configuration.
- reset
- Clears configurations from cache. Requires title parameter and jsonconfig-flush right.
- reload
- Reloads and caches configurations from config store. Requires title parameter and jsonconfig-reset right.
- One of the following values: reload, reset, status
- Default: status
- namespace
Namespace number of the title to process.
- Type: integer
- title
Title to process without namespace prefix.
- Asal: (kosong)
- content
For command=reload, use this content instead.
- Asal: (kosong)
Contoh-contoh:
- Show configuration
- api.php?action=jsonconfig&format=json [open in sandbox]
- Reset Data:Brazil/Amazonas.map
- api.php?action=jsonconfig&command=reset&namespace=486&title=Brazil/Amazonas.map&format=json [open in sandbox]
- Reload Data:Brazil/Amazonas.map
- api.php?action=jsonconfig&command=reload&namespace=486&title=Brazil/Amazonas.map&format=json [open in sandbox]