For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiRevision.md.
  • 中文
  • Interface: ApiRevision

    Defined in: core/query/revisions.ts:92

    A single revision entry in pages[].revisions.

    Extends

    Properties

    anon?

    optional anon?: true

    Defined in: core/query/revisions.ts:103

    Made by an anonymous (IP) editor. rvprop=user|userid; a Flag.


    badcontentformat?

    optional badcontentformat?: true

    Defined in: core/query/revisions.ts:180

    The requested content format is not supported by this revision's model. Top level only when rvslots= is not used; with rvslots= each slot carries its own badcontentformat. A Flag.


    comment?

    optional comment?: string

    Defined in: core/query/revisions.ts:142

    Raw edit summary. rvprop=comment.


    commenthidden?

    optional commenthidden?: true

    Defined in: core/query/revisions.ts:166

    The edit summary is hidden (revision-deleted). rvprop=comment|parsedcomment on a suppressed revision; a Flag. Reviewers with the delete right still see comment (often the empty string); other viewers see it withheld.

    Overrides

    ApiHiddenFlags.commenthidden


    content?

    optional content?: string

    Defined in: core/query/revisions.ts:133

    Legacy top-level content body. Only when rvslots= is not used, together with rvprop=content; with rvslots= the body lives in each slot.


    contentformat?

    optional contentformat?: ContentFormat

    Defined in: core/query/revisions.ts:139

    Serialization format of the legacy top-level content. Only when rvslots= is not used, with rvprop=content.


    contentmodel?

    optional contentmodel?: ContentModel

    Defined in: core/query/revisions.ts:126

    Content model of the main slot at this revision. rvprop=contentmodel, and also emitted alongside the legacy top-level content body (rvprop=content). Top level only when rvslots= is not used; with rvslots= the content model lives in each slot.


    diff?

    optional diff?: ApiRevisionDiff

    Defined in: core/query/revisions.ts:197

    Diff of this revision against rvdiffto/rvdifftotext (both deprecated; prefer action=compare).


    minor?

    optional minor?: boolean

    Defined in: core/query/revisions.ts:100

    Whether the edit was marked minor. rvprop=flags; a real boolean (present as false).


    parentid?

    optional parentid?: number

    Defined in: core/query/revisions.ts:97

    Previous revision id; 0 for the first revision of a page. rvprop=ids.


    parsedcomment?

    optional parsedcomment?: string

    Defined in: core/query/revisions.ts:145

    HTML-rendered edit summary. rvprop=parsedcomment.


    revid?

    optional revid?: number

    Defined in: core/query/revisions.ts:94

    Revision id. rvprop=ids.


    roles?

    optional roles?: string[]

    Defined in: core/query/revisions.ts:151

    Slot roles present on this revision, e.g. ["main"]. rvprop=roles.


    sha1?

    optional sha1?: string

    Defined in: core/query/revisions.ts:118

    SHA-1 of the revision content (hex). rvprop=sha1. May be empty ('').


    sha1hidden?

    optional sha1hidden?: true

    Defined in: core/query/revisions.ts:194

    The SHA-1 (sha1) is withheld because the content is revision-deleted. rvprop=sha1; a Flag.


    size?

    optional size?: number

    Defined in: core/query/revisions.ts:115

    Revision size in bytes. rvprop=size.


    slots?

    optional slots?: ApiRevisionSlots

    Defined in: core/query/revisions.ts:159

    Content slots. Requires rvslots= together with one of rvprop=content, contentmodel, slotsize, slotsha1; with none of those rvprop values no slots map is returned. Without rvslots= the content fields appear at the top level instead (legacy).


    slotsmissing?

    optional slotsmissing?: true

    Defined in: core/query/revisions.ts:200

    A slot could not be read for this revision (slot access failure); a Flag.


    suppressed?

    optional suppressed?: true

    Defined in: core/query/shared.ts:34

    Oversight/suppression applies to the entry (set together with the *hidden flags). A Flag.

    Inherited from

    ApiHiddenFlags.suppressed


    tags?

    optional tags?: string[]

    Defined in: core/query/revisions.ts:148

    Change tags applied to this revision. rvprop=tags.


    temp?

    optional temp?: true

    Defined in: core/query/revisions.ts:188

    The editor is a temporary account. rvprop=user|userid on a temp-account revision; a Flag.

    Since

    MediaWiki 1.42


    texthidden?

    optional texthidden?: true

    Defined in: core/query/revisions.ts:173

    The revision content is hidden (revision-deleted); a Flag. Top level only when rvslots= is not used; with rvslots= each slot carries its own texthidden.


    textmissing?

    optional textmissing?: true

    Defined in: core/query/revisions.ts:207

    The revision has no content to return (e.g. deleted text). Top level only when rvslots= is not used; with rvslots= each slot carries its own textmissing. A Flag.


    timestamp?

    optional timestamp?: string

    Defined in: core/query/revisions.ts:112

    Revision timestamp. rvprop=timestamp.


    user?

    optional user?: string

    Defined in: core/query/revisions.ts:106

    Editor user name. rvprop=user.


    userhidden?

    optional userhidden?: true

    Defined in: core/query/shared.ts:25

    The acting user is hidden. A Flag.

    Inherited from

    ApiHiddenFlags.userhidden


    userid?

    optional userid?: number

    Defined in: core/query/revisions.ts:109

    Editor user id; 0 for anonymous editors. rvprop=userid.