עזרה של MediaWiki API

זהו דף תיעוד של API שנוצר באופן אוטומטי.

תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API

list=blocks (bk)

(main | query | blocks)
  • יחידה זו דורשת הרשאות קריאה.

List all blocked users and IP addresses.

פרמטרים:
bkstart

The timestamp to start enumerating from.

bkend

The timestamp to stop enumerating at.

bkdir

באיזה כיוון למספר:

newer
לרשום את הישנים ביותר בהתחלה. לתשומת לבך: bkstart חייב להיות לפני bkend.
older
לרשום את החדשים ביותר בהתחלה (בררת מחדל). לתשומת לבך: bkstart חייב להיות אחרי bkend.
ערך אחד: newer, older
ברירת מחדל: older
bkids

List of block IDs to list (optional).

הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
bkusers

List of users to search for (optional).

הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
bkip

Get all blocks applying to this IP or CIDR range, including range blocks. Cannot be used together with bkusers. CIDR ranges broader than IPv4/16 or IPv6/19 are not accepted.

bklimit

The maximum number of blocks to list.

המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
ברירת מחדל: 10
bkprop

Which properties to get:

id
Adds the ID of the block.
user
Adds the username of the blocked user.
userid
Adds the user ID of the blocked user.
by
Adds the username of the blocking user.
byid
Adds the user ID of the blocking user.
timestamp
Adds the timestamp of when the block was given.
expiry
Adds the timestamp of when the block expires.
reason
Adds the reason given for the block.
range
Adds the range of IP addresses affected by the block.
flags
Tags the ban with (autoblock, anononly, etc.).
ערכים (מופרדים באמצעות "|"): id, user, userid, by, byid, timestamp, expiry, reason, range, flags
ברירת מחדל: id|user|by|timestamp|expiry|reason|flags
bkshow

Show only items that meet these criteria. For example, to see only indefinite blocks on IP addresses, set bkshow=ip|!temp.

ערכים (מופרדים באמצעות "|"): account, !account, temp, !temp, ip, !ip, range, !range
bkcontinue

כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.

דוגמאות:
List blocks.
api.php?action=query&list=blocks
List blocks of users Alice and Bob.
api.php?action=query&list=blocks&bkusers=Alice|Bob