עזרה של MediaWiki API
זהו דף תיעוד של API שנוצר באופן אוטומטי.
תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API
list=allcategories (ac)
- יחידה זו דורשת הרשאות קריאה.
- היחידה הזאת יכולה להיות מחולל.
מניין של כל הקטגוריות.
פרמטרים:
- acfrom
הקטגוריה ממנה להתחיל למנות.
- accontinue
כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.
- acto
The category to stop enumerating at.
- acprefix
Search for all category titles that begin with this value.
- acdir
Direction to sort in.
- ערך אחד: ascending, descending
- ברירת מחדל: ascending
- acmin
Only return categories with at least this many members.
- acmax
Only return categories with at most this many members.
- aclimit
How many categories to return.
- המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
- ברירת מחדל: 10
- acprop
Which properties to get:
- size
- Adds number of pages in the category.
- hidden
- Tags categories that are hidden with __HIDDENCAT__.
- ערכים (מופרדים באמצעות "|"): size, hidden
- ברירת מחדל: (ריק)
דוגמאות:
- List categories with information on the number of pages in each.
- api.php?action=query&list=allcategories&acprop=size
- Retrieve info about the category page itself for categories beginning List.
- api.php?action=query&generator=allcategories&gacprefix=List&prop=info