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=allcategories (ac)

(main | query | allcategories)
  • Mô đun này cần quyền đọc.
  • This module can be used as a generator.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Liệt kê tất cả các thể loại.

Các tham số:
acfrom

Chọn thể loại để bắt đầu đếm.

accontinue

When more results are available, use this to continue.

acto

Chọn thể loại để dừng đếm.

acprefix

Search for all category titles that begin with this value.

acdir

Hướng xếp loại.

Một trong các giá trị: ascending, descending
Mặc định: ascending
acmin

Only return categories with at least this many members.

Type: integer
acmax

Only return categories with at most this many members.

Type: integer
aclimit

Có bao nhiêu thể loại được trả về.

Không cho phép hơn 500 (5.000 đối với các bot).
Type: integer or max
Mặc định: 10
acprop

Which properties to get:

size
Adds number of pages in the category.
hidden
Tags categories that are hidden with __HIDDENCAT__.
Các giá trị (phân tách bằng |): size, hidden
Mặc định: (trống)
Các ví dụ:
List categories with information on the number of pages in each.
api.php?action=query&list=allcategories&acprop=size [open in sandbox]
Retrieve info about the category page itself for categories beginning List.
api.php?action=query&generator=allcategories&gacprefix=List&prop=info [open in sandbox]