Помош со Извршникот на МедијаВики

Ова е самосоздадена документациска страница за извршникот на МедијаВики.

Документација и примери: https://www.mediawiki.org/wiki/API

action=compare

(main | compare)
  • За овој модул се потребни права на читање.
  • Извор: MediaWiki
  • Лиценца: GPL-2.0-or-later

Добивање на разлика помеѓу две страници.

Мора да се даде бројот на преработката, насловот на страницата или пак нејзина назнака за „од“ и за „на“.

Параметри:
fromtitle

Прв наслов за споредба.

fromid

Прва назнака на страница за споредба.

Вид: цел број
fromrev

Прва преработка за споредба.

Вид: цел број
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, css, javascript, json, text, unknown, wikitext
frompst

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

Type: boolean (details)
fromtext
Застарен.

Specify fromslots=main and use fromtext-main instead.

fromcontentformat
Застарен.

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
Застарен.

Specify fromslots=main and use fromcontentmodel-main instead.

Една од следниве вредности: GadgetDefinition, css, javascript, json, text, unknown, wikitext
fromsection
Застарен.

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

totitle

Втор наслов за споредба.

toid

Втора назнака на страница за споредба.

Вид: цел број
torev

Бтора преработка за споредба.

Вид: цел број
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, css, javascript, json, text, unknown, wikitext
topst

Направи преобразување пред зачувување на totext.

Type: boolean (details)
totext
Застарен.

Specify toslots=main and use totext-main instead.

tocontentformat
Застарен.

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
Застарен.

Specify toslots=main and use tocontentmodel-main instead.

Една од следниве вредности: GadgetDefinition, css, javascript, json, text, unknown, wikitext
tosection
Застарен.

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

prop

Which pieces of information to get.

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
(нема опис)
Вредности (одделете ги со | или алтернатива): 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 *.
Пример:
Дај разлика помеѓу преработките 1 и 2
api.php?action=compare&fromrev=1&torev=2 [open in sandbox]