رہنمائے میڈیاویکی اےپی‌آئی

ذیل میں میڈیاویکی اےپی‌آئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔

دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=block

(main | 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, including temporary account edits).

طرز: بولین (تفصیلات)
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.

طرز: بولین (تفصیلات)
watchlistexpiry

Watchlist expiry timestamp. Omit this parameter entirely to leave the current expiry unchanged.

Type: expiry (details)
tags

Change tags to apply to the entry in the block log.

قدریں (| سے امتیاز کیا گیا ہے یا متبادل): Peshkar، RenameCategory، quick linker، repeated xwiki CoI abuse، twinkle، اضافہ القاب، القاب، تخلیق مختصر مضمون(AF)، جائزہ لیے جانے کے قابل ترامیم، غیر اردو شراکتیں
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، 100، 101، 102، 103، 118، 119، 710، 711، 828، 829، 2600
To specify all values, use *.
actionrestrictions

List of actions to block the user from performing. Only applies when partial is set to true.

قدریں (| سے امتیاز کیا گیا ہے یا متبادل): create، move، thanks، upload
token

A "csrf" token retrieved from action=query&meta=tokens

یہ پیرامیٹر لازمی ہے۔