رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=globalblocks (bg)
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- ماخذ: GlobalBlocking
- اجازت نامہ: GPL-2.0-or-later
List all globally blocked IP addresses.
مخصوص پیرامیٹر:
دیگر عمومی پیرامیٹر دستیاب ہیں۔
- bgstart
The timestamp to start enumerating from.
- Type: timestamp (allowed formats)
- bgend
The timestamp to stop enumerating at.
- Type: timestamp (allowed formats)
- bgdir
In which direction to enumerate:
- ذیل کی قدروں میں سے کوئی ایک: newer، older
- طے شدہ: older
- bgids
Pipe-separated list of block IDs to list.
- Type: list of integers
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- bgaddresses
Pipe-separated list of IP addresses to search for.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- bgip
Get all blocks applying to this IP address or CIDR range, including range blocks. Cannot be used together with bgaddresses. CIDR ranges broader than /16 are not accepted.
- bglimit
The maximum amount of blocks to list.
- طرز: عدد صحیح یا max
- The value must be between 1 and 500.
- طے شدہ: 10
- bgprop
Which properties to get.
- قدریں (| سے امتیاز کیا گیا ہے یا متبادل): address، by، expiry، id، range، reason، timestamp
- طے شدہ: id|address|by|timestamp|expiry|reason
مثالیں
- List all global blocks
- api.php?action=query&list=globalblocks [تختۂ مشق میں کھولیں]
- List global blocks applying to IP address 192.0.2.18
- api.php?action=query&list=globalblocks&bgip=192.0.2.18 [تختۂ مشق میں کھولیں]