Fandom Developers Wiki
Advertisement

此頁面或部分內容仍未翻譯,請將其翻譯成適當的語言(中文(繁體))

本腳本/樣式表僅限個人使用

您可以安裝本腳本/樣式表供自己使用,但不允許安裝在Fandom全站範圍內(例如MediaWiki:Common.js、MediaWiki:Common.css、MediaWiki:Fandomdesktop.js和MediaWiki:Fandomdesktop.css),因為這會違反Fandom的使用條款
(詳情請參閱客製化原則

快速日誌將所有 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);
});
Advertisement