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

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

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

action=compare

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

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

A revision number, a page title, a page ID, text, or a relative reference for both "from" and "to" must be passed.

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

First title to compare.

fromid

First page ID to compare.

Type: integer
fromrev

First revision to compare.

Type: integer
fromslots

Override content of the revision specified by fromtitle, fromid or fromrev.

This parameter specifies the slots that are to be modified. Use fromtext-{slot}, fromcontentmodel-{slot}, and fromcontentformat-{slot} to specify content for each slot.

قدریں (| سے امتیاز کیا گیا ہے یا متبادل): main
fromtext-{slot}

Text of the specified slot. If omitted, the slot is removed from the revision.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
fromsection-{slot}

When fromtext-{slot} is the content of a single section, this is the section identifier. It will be merged into the revision specified by fromtitle, fromid or fromrev as if for a section edit.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
fromcontentformat-{slot}

Content serialization format of fromtext-{slot}.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
ذیل کی قدروں میں سے کوئی ایک: application/json، application/octet-stream، application/unknown، application/x-binary، text/css، text/javascript، text/plain، text/unknown، text/x-wiki، unknown/unknown
fromcontentmodel-{slot}

Content model of fromtext-{slot}. If not supplied, it will be guessed based on the other parameters.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
ذیل کی قدروں میں سے کوئی ایک: GadgetDefinition، JsonSchema، MassMessageListContent، Scribunto، SecurePoll، css، flow-board، javascript، json، sanitized-css، text، unknown، wikitext
frompst

Do a pre-save transform on fromtext-{slot}.

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

Specify fromslots=main and use fromtext-main instead.

fromcontentformat
Deprecated.

Specify fromslots=main and use fromcontentformat-main instead.

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

Specify fromslots=main and use fromcontentmodel-main instead.

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

Only use the specified section of the specified 'from' content.

totitle

Second title to compare.

toid

Second page ID to compare.

Type: integer
torev

Second revision to compare.

Type: integer
torelative

Use a revision relative to the revision determined from fromtitle, fromid or fromrev. All of the other 'to' options will be ignored.

ذیل کی قدروں میں سے کوئی ایک: cur، next، prev
toslots

Override content of the revision specified by totitle, toid or torev.

This parameter specifies the slots that are to be modified. Use totext-{slot}, tocontentmodel-{slot}, and tocontentformat-{slot} to specify content for each slot.

قدریں (| سے امتیاز کیا گیا ہے یا متبادل): main
totext-{slot}

Text of the specified slot. If omitted, the slot is removed from the revision.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
tosection-{slot}

When totext-{slot} is the content of a single section, this is the section identifier. It will be merged into the revision specified by totitle, toid or torev as if for a section edit.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
tocontentformat-{slot}

Content serialization format of totext-{slot}.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
ذیل کی قدروں میں سے کوئی ایک: application/json، application/octet-stream، application/unknown، application/x-binary، text/css، text/javascript، text/plain، text/unknown، text/x-wiki، unknown/unknown
tocontentmodel-{slot}

Content model of totext-{slot}. If not supplied, it will be guessed based on the other parameters.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
ذیل کی قدروں میں سے کوئی ایک: GadgetDefinition، JsonSchema، MassMessageListContent، Scribunto، SecurePoll، css، flow-board، javascript، json، sanitized-css، text، unknown، wikitext
topst

Do a pre-save transform on totext.

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

Specify toslots=main and use totext-main instead.

tocontentformat
Deprecated.

Specify toslots=main and use tocontentformat-main instead.

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

Specify toslots=main and use tocontentmodel-main instead.

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

Only use the specified section of the specified 'to' content.

prop

Which pieces of information to get.

diff
The diff HTML.
diffsize
The size of the diff HTML, in bytes.
rel
The revision IDs of the revision previous to 'from' and after 'to', if any.
ids
The page and revision IDs of the 'from' and 'to' revisions.
title
The page titles of the 'from' and 'to' revisions.
user
The username and ID of the 'from' and 'to' revisions. If the user has been revision deleted, a fromuserhidden or touserhidden property will be returned.
comment
The comment on the 'from' and 'to' revisions. If the comment has been revision deleted, a fromcommenthidden or tocommenthidden property will be returned.
parsedcomment
The parsed comment on the 'from' and 'to' revisions. If the comment has been revision deleted, a fromcommenthidden or tocommenthidden property will be returned.
size
The size of the 'from' and 'to' revisions.
timestamp
The timestamp of the 'from' and 'to' revisions.
قدریں (| سے امتیاز کیا گیا ہے یا متبادل): comment، diff، diffsize، ids، parsedcomment، rel، size، timestamp، title، user
طے شدہ: diff|ids|title
slots

Return individual diffs for these slots, rather than one combined diff for all slots.

قدریں (| سے امتیاز کیا گیا ہے یا متبادل): main
To specify all values, use *.
difftype

Return the comparison formatted as inline HTML.

ذیل کی قدروں میں سے کوئی ایک: inline، table، unified
طے شدہ: table