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

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

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

action=compare

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

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

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

Параметри:
fromtitle

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

fromid

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

Тип: цел број
fromrev

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

Тип: цел број
fromtext

Use this text instead of the content of the revision specified by fromtitle, fromid or fromrev.

frompst

Do a pre-save transform on fromtext.

Тип: булов (подробно)
fromcontentformat

Content serialization format of fromtext.

Една вредност: text/x-wiki, text/javascript, application/json, text/css, text/plain
fromcontentmodel

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

Една вредност: wikitext, javascript, json, css, text
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.

Една вредност: prev, next, cur
totext

Use this text instead of the content of the revision specified by totitle, toid or torev.

topst

Do a pre-save transform on totext.

Тип: булов (подробно)
tocontentformat

Content serialization format of totext.

Една вредност: text/x-wiki, text/javascript, application/json, text/css, text/plain
tocontentmodel

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

Една вредност: wikitext, javascript, json, css, text
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 user name and ID of the 'from' and 'to' revisions.
comment
The comment on the 'from' and 'to' revisions.
parsedcomment
The parsed comment on the 'from' and 'to' revisions.
size
The size of the 'from' and 'to' revisions.
Вредности (одделете ги со |): diff, diffsize, rel, ids, title, user, comment, parsedcomment, size
По основно: diff|ids|title
Пример:
Дај разлика помеѓу преработките 1 и 2
api.php?action=compare&fromrev=1&torev=2 [open in sandbox]