رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=globalblock
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو اختیارات تحریر درکار ہیں۔
- یہ ماڈیول فقط POST کی درخواستیں قبول کرتا ہے۔
- ماخذ: GlobalBlocking
- اجازت نامہ: GPL-2.0-or-later
عالمی سطح پر صارف پر پابندی عائد کرتا یا پابندی ختم کرتا ہے۔
- target
The target IP address or username.
- یہ پیرامیٹر لازمی ہے۔
- طرز: صارف، بذریعہ آئی پی اور IP range
- expiry
If specified, will block or reblock the user. Determines how long the block will last for, e.g. "5 months" or "2 weeks". If set to "infinite" or "indefinite" the block will never expire.
- Type: expiry (details)
- unblock
If specified, will unblock the user.
- طرز: بولین (تفصیلات)
- reason
The reason for blocking/unblocking.
- یہ پیرامیٹر لازمی ہے۔
- anononly
Specify this if the block should only affect logged-out users globally.
- طرز: بولین (تفصیلات)
- modify
Specify this if the existing block on the target should be modified
- طرز: بولین (تفصیلات)
- alsolocal
Block the user locally as well
- طرز: بولین (تفصیلات)
- localblockstalk
Revoke talk page access locally
- طرز: بولین (تفصیلات)
- localblocksemail
Revoke email access locally
- طرز: بولین (تفصیلات)
- localanononly
Specify this if the block should only affect logged-out users locally.
- طرز: بولین (تفصیلات)
- token
A "csrf" token retrieved from action=query&meta=tokens
- یہ پیرامیٹر لازمی ہے۔
- Block 192.0.2.1 indefinitely with reason "Cross-wiki abuse"
- api.php?action=globalblock&target=192.0.2.1&expiry=indefinite&reason=Cross-wiki%20abuse&token=123ABC [تختۂ مشق میں کھولیں]