Trợ giúp về API MediaWiki

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

list=gadgets (ga)

(main | query | gadgets)
  • Mô đun này cần quyền đọc.
  • Source: Gadgets
  • License: GPL-2.0+

Cho ra danh sách các tiện ích được sử dụng trên wiki này.

Các tham số:
gaprop

What gadget information to get:

id
Internal gadget ID.
metadata
The gadget metadata.
desc
Gadget description transformed into HTML (can be slow, use only if really needed).
Các giá trị (phân tách bằng |): id, metadata, desc
Mặc định: id|metadata
gacategories

Gadgets from what categories to retrieve.

Phân tách các giá trị bằng |. Maximum number of values is 50 (500 for bots).
gaids

ID của các tiện ích để lấy.

Phân tách các giá trị bằng |. Maximum number of values is 50 (500 for bots).
gaallowedonly

Chỉ liệt kê các tiện ích mà người dùng hiện tại có phép sử dụng.

Type: boolean (details)
gaenabledonly

Chỉ liệt kê các tiện ích được kích hoạt bởi người dùng hiện tại.

Type: boolean (details)
Các ví dụ:
Get a list of gadgets along with their descriptions
api.php?action=query&list=gadgets&gaprop=id|desc
Get a list of gadgets with all possible properties
api.php?action=query&list=gadgets&gaprop=id|metadata|desc
Lấy danh sách các tiện ích thuộc thể loại “foo”
api.php?action=query&list=gadgets&gacategories=foo
Lấy thông tin về các tiện ích “foo” và “bar”
api.php?action=query&list=gadgets&gaids=foo|bar&gaprop=id|desc|metadata
Lấy danh sách các tiện ích được kích hoạt bởi người dùng hiện tại
api.php?action=query&list=gadgets&gaenabledonly