MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=compare

(main | compare)

Ugotovitev razlike med dvema stranema.

Posredovati je treba številko redakcije, naslov strani, ID strani, besedilo ali relativni sklic za »from« (od) in »to« (do).

Specifični parametri:
Na voljo so tudi drugi splošni parametri.
fromtitle

Prvi naslov za primerjavo.

fromid

ID prve strani za primerjavo.

Vtipkajte: celo število
fromrev

Prva redakcija za primerjavo.

Vtipkajte: celo število
fromslots

Preglasi vsebino redakcije, ki jo določajo fromtitle, fromid ali fromrev.

Ta parameter določa razpone, ki jih je treba spremeniti. Uporabite fromtext-{slot}, fromcontentmodel-{slot} in fromcontentformat-{slot}, da določite vsebino za vsak razpon.

Values (separate with | or alternative): main
fromtext-{slot}

Besedilo podanega razpona. Če je izpuščeno, se razpon odstrani iz redakcije.

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

Če je fromtext-{slot} vsebina enega razdelka, je to identifikator razdelka. Spojen bo v redakcijo, ki jo določajo fromtitle, fromid ali fromrev, kot pri urejanju razdelka.

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

Format serializacije vsebine fromtext-{slot}.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
One of the following values: application/json, application/octet-stream, application/unknown, application/vue+xml, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
fromcontentmodel-{slot}

Vsebinski model fromtext-{slot}. Če ni naveden, bo uganjen na podlagi drugih parametrov.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
One of the following values: GadgetDefinition, css, javascript, json, text, unknown, vue, wikitext
frompst

Izvedba predshranjevalne pretvorbe na fromtext-{slot}.

Type: boolean (details)
fromtext
Opuščeno.

Določite fromslots=main in namesto tega uporabite fromtext-main.

fromcontentformat
Opuščeno.

Določite fromslots=main in namesto tega uporabite fromcontentformat-main.

One of the following values: application/json, application/octet-stream, application/unknown, application/vue+xml, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
fromcontentmodel
Opuščeno.

Določite fromslots=main in namesto tega uporabite fromcontentmodel-main.

One of the following values: GadgetDefinition, css, javascript, json, text, unknown, vue, wikitext
fromsection
Opuščeno.

Uporaba samo določenega razdelka izbrane vsebine »from«.

totitle

Drugi naslov za primerjavo.

toid

ID druge strani za primerjavo.

Vtipkajte: celo število
torev

Druga redakcija za primerjavo.

Vtipkajte: celo število
torelative

Uporabite redakcijo glede na redakcijo, določeno iz fromtitle , fromid ali fromrev. Vse druge možnosti »to« (do) bodo prezrte.

One of the following values: cur, next, prev
toslots

Preglasi vsebino redakcije, ki jo določajo totitle, toid ali torev.

Ta parameter določa razpone, ki jih je treba spremeniti. Uporabite totext-{slot}, tocontentmodel-{slot} in tocontentformat-{slot}, da določite vsebino za vsak razpon.

Values (separate with | or alternative): main
totext-{slot}

Besedilo podanega razpona. Če je izpuščeno, se razpon odstrani iz redakcije.

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

Če je totext-{slot} vsebina enega razdelka, je to identifikator razdelka. Spojen bo v redakcijo, ki jo določajo totitle, toid ali torev, kot pri urejanju razdelka.

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

Format serializacije vsebine totext-{slot}.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
One of the following values: application/json, application/octet-stream, application/unknown, application/vue+xml, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
tocontentmodel-{slot}

Vsebinski model totext-{slot}. Če ni naveden, bo uganjen na podlagi drugih parametrov.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
One of the following values: GadgetDefinition, css, javascript, json, text, unknown, vue, wikitext
topst

Izvedba predshranjevalne pretvorbe v totext.

Type: boolean (details)
totext
Opuščeno.

Določite toslots=main in namesto tega uporabite totext-main.

tocontentformat
Opuščeno.

Določite toslots=main in namesto tega uporabite tocontentformat-main.

One of the following values: application/json, application/octet-stream, application/unknown, application/vue+xml, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
tocontentmodel
Opuščeno.

Določite toslots=main in namesto tega uporabite tocontentmodel-main.

One of the following values: GadgetDefinition, css, javascript, json, text, unknown, vue, wikitext
tosection
Opuščeno.

Uporaba samo določenega razdelka izbrane vsebine »to« (do).

prop

Katere informacije pridobiti.

diff
HTML razlike.
diffsize
Velikost HTML-ja razlike v bajtih.
rel
ID-ji redakcij pred »from« (od) in po »to« (do), če obstajajo.
ids
ID-ji strani in redakcij »from« (od) in »to« (do).
title
Naslovi strani redakcij »from« (od) in »to« (do).
user
Uporabniško ime in ID redakcij »from« (od) in »to« (do). Če je bila redakcija uporabnika izbrisana, bo vrnjena lastnost fromuserhidden ali touserhidden.
comment
Komentar pri redakcijah »from« (od) in »to« (do). Če je bila redakcija komentarja izbrisana, bo vrnjena lastnost fromcommenthidden ali tocommenthidden.
parsedcomment
Razčlenjeni komentar pri redakcijah »from« (od) in »to« (do). Če je bila redakcija komentarja izbrisana, bo vrnjena lastnost fromcommenthidden ali tocommenthidden.
size
Velikost redakcij »from« (od) in »to« (do).
timestamp
Časovni žig redakcij »od« in »do«.
Values (separate with | or alternative): comment, diff, diffsize, ids, parsedcomment, rel, size, timestamp, title, user
Privzeto: diff|ids|title
slots

Vrnitev posameznih razlik za te razpone namesto združene razlike za vse razpone.

Values (separate with | or alternative): main
To specify all values, use *.
difftype

Vrnitev primerjave v obliki znotrajvrstičnega HTML-ja.

One of the following values: table, unified
Privzeto: table
Zgled:
Ustvaritev razlike med redakcijama 1 in 2.
api.php?action=compare&fromrev=1&torev=2 [open in sandbox]