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

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

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

action=edit

(main | edit)
  • اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
  • اس ماڈیول کو اختیارات تحریر درکار ہیں۔
  • یہ ماڈیول فقط POST کی درخواستیں قبول کرتا ہے۔
  • ماخذ: MediaWiki
  • اجازت نامہ: GPL-2.0-or-later

صفحات کو تخلیق یا ان میں ترمیم کرتا ہے۔

مخصوص پیرامیٹر:
دیگر عمومی پیرامیٹر دستیاب ہیں۔
title

Title of the page to edit. Cannot be used together with pageid.

pageid

Page ID of the page to edit. Cannot be used together with title.

Type: integer
section

Section identifier. 0 for the top section, new for a new section. Often a positive integer, but can also be non-numeric.

sectiontitle

The title for a new section when using section=new.

text

Page content.

summary

Edit summary.

When this parameter is not provided or empty, an edit summary may be generated automatically.

When using section=new and sectiontitle is not provided, the value of this parameter is used for the section title instead, and an edit summary is generated automatically.

tags

Change tags to apply to the revision.

قدریں (| سے امتیاز کیا گیا ہے یا متبادل): Peshkar، RenameCategory، quick linker، repeated xwiki CoI abuse، twinkle، اضافہ القاب، القاب، تخلیق مختصر مضمون(AF)، جائزہ لیے جانے کے قابل ترامیم، غیر اردو شراکتیں
minor

Mark this edit as a minor edit.

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

Do not mark this edit as a minor edit even if the "ہمیشہ میری تمام ترامیم کو معمولی ترمیم کے طور پر نشان زد کریں" user preference is set.

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

Mark this edit as a bot edit.

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

ID of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions. Self-conflicts cause the edit to fail unless basetimestamp is set.

Type: integer
basetimestamp

Timestamp of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions&rvprop=timestamp. Self-conflicts are ignored.

Type: timestamp (allowed formats)
starttimestamp

Timestamp when the editing process began, used to detect edit conflicts. An appropriate value may be obtained using curtimestamp when beginning the edit process (e.g. when loading the page content to edit).

Type: timestamp (allowed formats)
recreate

Override any errors about the page having been deleted in the meantime.

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

Don't edit the page if it exists already.

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

Throw an error if the page doesn't exist.

طرز: بولین (تفصیلات)
watch
Deprecated.

Add the page to the current user's watchlist.

طرز: بولین (تفصیلات)
unwatch
Deprecated.

Remove the page from the current user's watchlist.

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

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

ذیل کی قدروں میں سے کوئی ایک: nochange، preferences، unwatch، watch
طے شدہ: preferences
watchlistexpiry

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

Type: expiry (details)
md5

The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.

prependtext

Add this text to the beginning of the page or section. Overrides text.

appendtext

Add this text to the end of the page or section. Overrides text.

Use section=new to append a new section, rather than this parameter.

undo

Undo this revision. Overrides text, prependtext and appendtext.

Type: integer
The value must be no less than 0.
undoafter

Undo all revisions from undo to this one. If not set, just undo one revision.

Type: integer
The value must be no less than 0.
redirect

Automatically resolve redirects.

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

Content serialization format used for the input text.

ذیل کی قدروں میں سے کوئی ایک: application/json، application/octet-stream، application/unknown، application/x-binary، text/css، text/javascript، text/plain، text/unknown، text/x-wiki، unknown/unknown
contentmodel

Content model of the new content.

ذیل کی قدروں میں سے کوئی ایک: GadgetDefinition، JsonSchema، MassMessageListContent، Scribunto، SecurePoll، css، flow-board، javascript، json، sanitized-css، text، unknown، wikitext
token

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

The token should always be sent as the last parameter, or at least after the text parameter.

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

Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.

Type: page title
Accepts non-existent pages.
returntoquery

URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.

طے شدہ: (خالی)
returntoanchor

URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.

طے شدہ: (خالی)
captchaword

کیپچا کا جواب دیں

captchaid

CAPTCHA ID from previous request