رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=block
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو اختیارات تحریر درکار ہیں۔
- یہ ماڈیول فقط POST کی درخواستیں قبول کرتا ہے۔
- ماخذ: MediaWiki
- اجازت نامہ: GPL-2.0-or-later
صارف پر پابندی عائد کرتا ہے۔
- user
User to block.
- طرز: صارف، بذریعہ صارف نام، آئی پی، IP range اور صارف کا شناختی نمبر (مثلاً "#12345")
- userid
- Deprecated.
Specify user=#ID instead.
- Type: integer
- expiry
Expiry time. May be relative (e.g. 5 months or 2 weeks) or absolute (e.g. 2014-09-18T12:34:56Z). If set to infinite, indefinite, or never, the block will never expire.
- طے شدہ: never
- reason
Reason for block.
- طے شدہ: (خالی)
- anononly
Block anonymous users only (i.e. disable anonymous edits for this IP address).
- طرز: بولین (تفصیلات)
- nocreate
Prevent account creation.
- طرز: بولین (تفصیلات)
- autoblock
Automatically block the last used IP address, and any subsequent IP addresses they try to login from.
- طرز: بولین (تفصیلات)
- noemail
Prevent user from sending email through the wiki. (Requires the
blockemail
right).- طرز: بولین (تفصیلات)
- hidename
Hide the username from the block log. (Requires the
hideuser
right).- طرز: بولین (تفصیلات)
- allowusertalk
Allow the user to edit their own talk page (depends on $wgBlockAllowsUTEdit).
- طرز: بولین (تفصیلات)
- reblock
If the user is already blocked, overwrite the existing block.
- طرز: بولین (تفصیلات)
- watchuser
Watch the user's or IP address's user and talk pages.
- طرز: بولین (تفصیلات)
- tags
Change tags to apply to the entry in the block log.
- قدریں (| سے امتیاز کیا گیا ہے یا متبادل):
- partial
Block user from specific pages or namespaces rather than the entire site.
- طرز: بولین (تفصیلات)
- pagerestrictions
List of titles to block the user from editing. Only applies when partial is set to true.
- Type: page title
- Separate values with | or alternative.
- Maximum number of values is 10.
- Only accepts pages that exist.
- namespacerestrictions
List of namespace IDs to block the user from editing. Only applies when partial is set to true.
- قدریں (| سے امتیاز کیا گیا ہے یا متبادل): 0، 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 11، 12، 13، 14، 15، 106، 107
- To specify all values, use *.
- token
A "csrf" token retrieved from action=query&meta=tokens
- یہ پیرامیٹر لازمی ہے۔
- Block IP address 192.0.2.5 for three days with a reason.
- api.php?action=block&user=192.0.2.5&expiry=3%20days&reason=First%20strike&token=123ABC [تختۂ مشق میں کھولیں]
- Block user Vandal indefinitely with a reason, and prevent new account creation and email sending.
- api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail=&token=123ABC [تختۂ مشق میں کھولیں]