Помош со Извршникот на МедијаВики
Ова е самосоздадена документациска страница за извршникот на МедијаВики.
Документација и примери: https://www.mediawiki.org/wiki/API
prop=deletedrevisions (drv)
- За овој модул се потребни права на читање.
- Овој модул може да се користи како создавач.
- Извор: MediaWiki
- Лиценца: GPL-2.0+
Get deleted revision information.
May be used in several ways:
- Get deleted revisions for a set of pages, by setting titles or pageids. Ordered by title and timestamp.
- Get data about a set of deleted revisions by setting their IDs with revids. Ordered by revision ID.
- drvprop
Which properties to get for each revision:
- ids
- The ID of the revision.
- flags
- Revision flags (minor).
- timestamp
- The timestamp of the revision.
- user
- User that made the revision.
- userid
- User ID of the revision creator.
- size
- Length (bytes) of the revision.
- sha1
- SHA-1 (base 16) of the revision.
- contentmodel
- Content model ID of the revision.
- comment
- Comment by the user for the revision.
- parsedcomment
- Parsed comment by the user for the revision.
- content
- Text of the revision.
- tags
- Tags for the revision.
- parsetree
- Deprecated. Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model
wikitext
).
- Вредности (одделете ги со |): ids, flags, timestamp, user, userid, size, sha1, contentmodel, comment, parsedcomment, content, tags, parsetree
- По основно: ids|timestamp|flags|comment|user
- drvlimit
Limit how many revisions will be returned.
- Не се допушта повеќе од 500 (5.000 за ботови).
- Тип: цел број или max
- drvexpandtemplates
- Застарен.
Use action=expandtemplates instead. Expand templates in revision content (requires drvprop=content).
- Тип: булов (подробно)
- drvgeneratexml
- Застарен.
Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires drvprop=content).
- Тип: булов (подробно)
- drvparse
- Застарен.
Use action=parse instead. Parse revision content (requires drvprop=content). For performance reasons, if this option is used, drvlimit is enforced to 1.
- Тип: булов (подробно)
- drvsection
Only retrieve the content of this section number.
- drvdiffto
- Застарен.
Use action=compare instead. Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.
- drvdifftotext
- Застарен.
Use action=compare instead. Text to diff each revision to. Only diffs a limited number of revisions. Overrides drvdiffto. If drvsection is set, only that section will be diffed against this text.
- drvdifftotextpst
- Застарен.
Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with drvdifftotext.
- Тип: булов (подробно)
- drvcontentformat
Serialization format used for drvdifftotext and expected for output of content.
- Една вредност: text/x-wiki, text/javascript, application/json, text/css, text/plain
- drvstart
The timestamp to start enumerating from. Ignored when processing a list of revision IDs.
- Тип: време и датум (допуштени формати)
- drvend
The timestamp to stop enumerating at. Ignored when processing a list of revision IDs.
- Тип: време и датум (допуштени формати)
- drvdir
Во која насока да се набројува:
- понови
- Прво најстарите. Напомена: drvstart мора да биде пред drvend.
- постари
- Прво најновите (по основно). Напомена: drvstart мора да биде подоцна од drvend.
- Една вредност: newer, older
- По основно: older
- drvtag
Only list revisions tagged with this tag.
- drvuser
Only list revisions by this user.
- Тип: корисничко име
- drvexcludeuser
Don't list revisions by this user.
- Тип: корисничко име
- drvcontinue
Употребете го ова за да продолжите кога има повеќе расположиви ставки.
- List the deleted revisions of the pages Main Page and Talk:Main Page, with content.
- api.php?action=query&prop=deletedrevisions&titles=Main%20Page|Talk:Main%20Page&drvprop=user|comment|content [open in sandbox]
- List the information for deleted revision 123456.
- api.php?action=query&prop=deletedrevisions&revids=123456 [open in sandbox]