Fandom Developers Wiki




快速日誌將所有 Special:Contributions 上的鏈接欄以偽鏈接的方式改連結至日誌頁面,畫面也會顯示成用戶本身的日誌記錄。日誌鏈接包含:


  • block
  • deletedcontribs
  • userrights

Links that lead to a specific page (for instance, user rights management) will be striked through for differentiating from pseudo-links.



QuickLogs also provides bindings you can use to add your own buttons to the toolbar. It fires MediaWiki hooks on state changes (QuickLogs.loaded and QuickLogs.render) for calling code if and when QuickLogs is available or has rendered. Here is an example of how to add a link to the end of the list:

mw.hook('QuickLogs.loaded').add(function(ql) {
    // Remove any buttons that were previously added by the script
    ql.addLink('yourScript', {
        message: 'Hello, world!',
        click: handler, // (optional) you can also set an href field
        check: checkerFunction, // 7(optional) function that decides whether the link should appear, should return a boolean
        attr: { // (optional) attributes for your link element
            id: 'yourScript-link'

You can also add custom regular logs by setting the script name as the log type and either the by and title parameters. The third argument to the function can specify the index at which the link will be added:

mw.hook('QuickLogs.loaded').add(function(ql) {
    ql.addLink('useravatar', {
        message: 'avatar log',
        by: ql.user
    }, 4);