עזרה של MediaWiki API
××× ××£ ת××¢×× ×©× API ×©× ×צר ××××¤× ×××××××.
ת××¢×× ×××××××ת: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=compare
- ××××× ×× ××רשת ×רש××ת קר×××.
- ××§×ר: MediaWiki
- ר×ש×××: GPL-2.0-or-later
×§××ת ××××× ××× ×©× × ×פ××.
×ש ×××¢××ר ×ספר ×רס×, ××תרת ××£ ×× ×××× ××£ ×× ×Ö¾"from" ××× ×Ö¾"to".
- fromtitle
××תרת ר×ש×× × ××ש××××.
- fromid
×ס׳ ××××× ×©× ×××£ ×ר×ש×× ××ש××××.
- ס××: ×ספר ש××
- fromrev
××¨×¡× ×¨×ש×× × ××ש××××.
- ס××: ×ספר ש××
- fromslots
×ר×סת ת××× ×××¨×¡× ×©×¦××× × ×Ö¾fromtitle, ×Ö¾fromid, ×× ×Ö¾fromrev.
×פר××ר ××× ×צ××× ×ת ××ש×צ×ת ש×ש×× ×. ×ש ××שת×ש ×Ö¾fromtext-{slot}, ×Ö¾fromcontentmodel-{slot}, ××Ö¾fromcontentformat-{slot} ×צ××× ×ª××× ×¢××ר ×× ×ש×צת.
- ער××× (××פר××× ×××צע×ת "|" ×× or ×ª× ×××פ×): main
- fromtext-{slot}
×××§×¡× ×©× ××ש×צת ש×צ××× ×ª. ×× ×× ××ש××, ××ש×צת ××ּסרת ×××רס×.
- ××× ×¤×¨××ר ×ת×× ×ת. ×עת ××צ××¢ ××קש×, ×ש ××××××£ ×ת ×××§×¡× {slot} (××©× ×פר××ר) ×¢× ×ער××× ×©× ×פר××ר fromslots.
- fromsection-{slot}
××שר fromtext-{slot} ××× ×ת××× ×©× ×¤×¡×§× ××ת, ××× ×××× ×פסק×. ××× ××××× ×ת×× ×××¨×¡× ×©×צ××× ×ª ×Ö¾fromtitle, ×Ö¾fromid, ×× ×Ö¾fromrev ××× ×ער××ת פסק×.
- ××× ×¤×¨××ר ×ת×× ×ת. ×עת ××צ××¢ ××קש×, ×ש ××××××£ ×ת ×××§×¡× {slot} (××©× ×פר××ר) ×¢× ×ער××× ×©× ×פר××ר fromslots.
- fromcontentformat-{slot}
תס××ר ××ס×רת ת××× ×©× fromtext-{slot}.
- ××× ×¤×¨××ר ×ת×× ×ת. ×עת ××צ××¢ ××קש×, ×ש ××××××£ ×ת ×××§×¡× {slot} (××©× ×פר××ר) ×¢× ×ער××× ×©× ×פר××ר 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}
×××× ×ת××× ×©× fromtext-{slot}. ×× ×× ×× ×¡×פק, ×× ×× ××ש ××¤× ×פר××ר×× ×××ר××.
- ××× ×¤×¨××ר ×ת×× ×ת. ×עת ××צ××¢ ××קש×, ×ש ××××××£ ×ת ×××§×¡× {slot} (××©× ×פר××ר) ×¢× ×ער××× ×©× ×פר××ר fromslots.
- ××× ××ער××× ×××××: GadgetDefinition, css, javascript, json, text, unknown, wikitext
- frompst
×עש×ת ×ת××¨× ××¤× × ×©×××¨× ×Ö¾romtext-{slot}.
- ס××: ×××××× × (פר×××)
- fromtext
- ×××ש×.
×ש ×צ××× fromslots=main ×××שת×ש ×Ö¾fromtext-main ×××§×× ××.
- fromcontentformat
- ×××ש×.
×ש ×צ××× fromslots=main ×××שת×ש ×Ö¾fromcontentformat-main ×××§×× ××.
- ××× ××ער××× ×××××: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
- fromcontentmodel
- ×××ש×.
×ש ×צ××× fromslots=main ×××שת×ש ×Ö¾fromcontentmodel-main ×××§×× ××.
- ××× ××ער××× ×××××: GadgetDefinition, css, javascript, json, text, unknown, wikitext
- fromsection
- ×××ש×.
×ש ××שת×ש רק ××¤×¡×§× ×©×¦××× × ×ת××× ×©× ×פר××ר "from".
- totitle
××תרת ×©× ××× ××ש××××.
- toid
×ס׳ ×××× ×©× ×××£ ××©× × ××ש××××.
- ס××: ×ספר ש××
- torev
××¨×¡× ×©× ××× ××ש××××.
- ס××: ×ספר ש××
- torelative
××שת×ש ×××¨×¡× ××ס×ת ×××¨×¡× ×©×××¡×§× ×fromtitle, fromid ×× fromrev. ××× ×פשר××ת ×Ö¾"to" ×××ר×ת ×× ×ª××× ×שפע×.
- ××× ××ער××× ×××××: cur, next, prev
- toslots
×ר×סת ת××× ×××¨×¡× ×©×¦××× × ×Ö¾totitle, ×Ö¾toid, ×× ×Ö¾torev.
×פר××ר ××× ×צ××× ×ת ××ש×צ×ת ש×ש×× ×. ×ש ××שת×ש ×Ö¾totext-{slot}, ×Ö¾tocontentmodel-{slot}, ××Ö¾tocontentformat-{slot} ×צ××× ×ª××× ×¢××ר ×× ×ש×צת.
- ער××× (××פר××× ×××צע×ת "|" ×× or ×ª× ×××פ×): main
- totext-{slot}
×××§×¡× ×©× ××ש×צת ש×צ××× ×ª. ×× ×× ××ש××, ××ש×צת ××ּסרת ×××רס×.
- ××× ×¤×¨××ר ×ת×× ×ת. ×עת ××צ××¢ ××קש×, ×ש ××××××£ ×ת ×××§×¡× {slot} (××©× ×פר××ר) ×¢× ×ער××× ×©× ×פר××ר toslots.
- tosection-{slot}
××שר totext-{slot} ××× ×ת××× ×©× ×¤×¡×§× ××ת, ××× ×××× ×פסק×. ××× ××××× ×ת×× ×××¨×¡× ×©×צ××× ×ª ×Ö¾totitle, ×Ö¾toid, ×× ×Ö¾torev ××× ×ער××ת פסק×.
- ××× ×¤×¨××ר ×ת×× ×ת. ×עת ××צ××¢ ××קש×, ×ש ××××××£ ×ת ×××§×¡× {slot} (××©× ×פר××ר) ×¢× ×ער××× ×©× ×פר××ר toslots.
- tocontentformat-{slot}
תס××ר ××ס×רת ת××× ×©× totext-{slot}.
- ××× ×¤×¨××ר ×ת×× ×ת. ×עת ××צ××¢ ××קש×, ×ש ××××××£ ×ת ×××§×¡× {slot} (××©× ×פר××ר) ×¢× ×ער××× ×©× ×פר××ר 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}
×××× ×ת××× ×©× totext-{slot}. ×× ×× ×× ×¡×פק, ×× ×× ××ש ××¤× ×פר××ר×× ×××ר××.
- ××× ×¤×¨××ר ×ת×× ×ת. ×עת ××צ××¢ ××קש×, ×ש ××××××£ ×ת ×××§×¡× {slot} (××©× ×פר××ר) ×¢× ×ער××× ×©× ×פר××ר toslots.
- ××× ××ער××× ×××××: GadgetDefinition, css, javascript, json, text, unknown, wikitext
- topst
×עש×ת ×ת××¨× ××¤× × ×©×××¨× ×Ö¾totext.
- ס××: ×××××× × (פר×××)
- totext
- ×××ש×.
×ש ×צ××× toslots=main ×××שת×ש ×Ö¾totext-main ×××§×× ××.
- tocontentformat
- ×××ש×.
×ש ×צ××× toslots=main ×××שת×ש ×Ö¾tocontentformat-main ×××§×× ××.
- ××× ××ער××× ×××××: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
- tocontentmodel
- ×××ש×.
×ש ×צ××× toslots=main ×××שת×ש ×Ö¾tocontentmodel-main ×××§×× ××.
- ××× ××ער××× ×××××: GadgetDefinition, css, javascript, json, text, unknown, wikitext
- tosection
- ×××ש×.
×ש ××שת×ש רק ××¤×¡×§× ×©×¦××× × ×ת××× ×©× ×פר××ר "to".
- prop
×××× ×¤×¨××× ××××¢ ××§××.
- diff
- ×Ö¾HTML ×©× ××ש××××.
- diffsize
- ×××× ×Ö¾HTML ×©× ××ש××××, ××ת××.
- rel
- ×××× ××רס××ת ×©× ××רס××ת ××¤× × "from" ××××¨× "to", ×× ×ש ××××.
- ids
- ×××× ×××£ ××××¨×¡× ×©× ×רס××ת ×Ö¾"from" ××Ö¾"to".
- title
- ××תר×ת ××פ×× ×©× ×רס××ת ×Ö¾"from" ××Ö¾"to".
- user
- ××©× ×××××× ×©× ××שת×ש ×©× ×רס××ת ×Ö¾"from" ××Ö¾"to". ×× ××שת×ש × ×××§ ××××קת ×רס××ת, ××××ר ×××פ××× fromuserhidden ×× touserhidden.
- comment
- ×תקצ×ר ×¢× ×רס××ת ×Ö¾"from" ××Ö¾"to". ×× ×תקצ×ר × ×××§ ××××קת ×רס××ת, ××××ר ×××פ××× fromcommenthidden ×× tocommenthidden.
- parsedcomment
- ×תקצ×ר ××פ××¢× × ×¢× ×רס××ת ×Ö¾"from" ××Ö¾"to". ×× ×תקצ×ר × ×××§ ××××קת ×רס××ת, ××××ר ×××פ××× fromcommenthidden ×× tocommenthidden.
- size
- ××××× ×©× ×רס××ת ×Ö¾"from" ××Ö¾"to".
- timestamp
- (××× ×ª×××ר)
- ער××× (××פר××× ×××צע×ת "|" ×× or ×ª× ×××פ×): comment, diff, diffsize, ids, parsedcomment, rel, size, timestamp, title, user
- ×ר×רת ×××××: diff|ids|title
- slots
×××רת ×ש××××ת פר×× ××ת ××ש×צ×ת ××××, ××× ×ש×××× ××ת ×ש×××ת ××× ××ש×צ×ת.
- ער××× (××פר××× ×××צע×ת "|" ×× or ×ª× ×××פ×): main
- ××× ×תת ×ת ×× ×ער×××, ×ש ××שת×ש ×Ö¾*.
- ×צ×רת ת××¢×× ×©×× ×× ××× ××¨×¡× 1 ×Ö¾2.
- api.php?action=compare&fromrev=1&torev=2 [פת××× ××ר×× ×××]