MediaWiki API 說明
此頁為自動產生的 MediaWiki API 說明文件頁面。
說明文件與範例:https://www.mediawiki.org/wiki/API
list=logevents <pre>(le) </pre>
- 此模組需要讀取權限。
从日志获取事件。
參數:
- leprop
Which properties to get:
- ids
- Adds the ID of the log event.
- title
- Adds the title of the page for the log event.
- type
- Adds the type of log event.
- user
- Adds the user responsible for the log event.
- userid
- Adds the user ID who was responsible for the log event.
- timestamp
- Adds the timestamp for the event.
- comment
- Adds the comment of the event.
- parsedcomment
- Adds the parsed comment of the event.
- details
- Lists additional details about the event.
- tags
- Lists tags for the event.
- 多值 (以 | 分隔):ids、title、type、user、userid、timestamp、comment、parsedcomment、details、tags
- 預設值:ids|title|type|user|timestamp|comment|details
- letype
Filter log entries to only this type.
- 單值:可以空白,或 block、protect、rights、delete、upload、move、import、patrol、merge、suppress、tag、managetags、newusers
- leaction
Filter log actions to only this action. Overrides letype. Wildcard actions like action/* allows to specify any string for the asterisk.
- 單值:protect/protect、protect/modify、protect/unprotect、protect/move_prot、move/move、move/move_redir、delete/delete、delete/restore、delete/revision、delete/event、suppress/revision、suppress/event、suppress/delete、patrol/patrol、rights/rights、rights/autopromote、upload/upload、upload/overwrite、upload/revert、merge/merge、tag/update、managetags/create、managetags/delete、managetags/activate、managetags/deactivate、block/block、block/unblock、block/reblock、suppress/block、suppress/reblock、import/upload、import/interwiki、newusers/newusers、newusers/create、newusers/create2、newusers/byemail、newusers/autocreate
- lestart
枚举的起始时间戳。
- leend
枚举的结束时间戳。
- ledir
列举的方向:
- newer
- 最早的优先。注意:lestart应早于leend。
- older
- 最新的优先(默认)。注意:lestart应晚于leend。
- 單值:newer、older
- 預設值:older
- leuser
Filter entries to those made by the given user.
- letitle
Filter entries to those related to a page.
- lenamespace
Filter entries to those in the given namespace.
- 單值:0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
- leprefix
Filter entries that start with this prefix.
- letag
Only list event entries tagged with this tag.
- lelimit
要回傳的事件項目總數。
- 不允許超過 500 (機器人為 5,000)。
- 預設值:10
- lecontinue
当更多结果可用时,使用这个继续。
範例: