Fandom Developers Wiki
Advertisement

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

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

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

網誌連結 (BlogLink)在介面右上角的下拉選單(Oasis)與右上角的用戶欄(Monobook)中添加用戶個人的網誌貢獻頁面。這個腳本的理念是建立在 KnazO 的貢獻連結基礎上。

在載入網誌連結前,這個腳本會先檢查網誌是否有在 Wiki功能中開啟;如果該wiki並沒有開啟網誌功能,那麼系統只會載入貢獻連結。同樣的,這個腳本也同時兼容偽討論頁功能,因此如果您先前已經導入了「偽討論頁」腳本,網誌連結也會同時添加討論頁的連結,不會出現連結欄位重複出現或者連結損壞的問題。

安裝方法[]

Customization[]

Through the inclusion of a window object, users are able to customize the script to their liking. Though by default the script adds blog, contributions, and activity links, users may opt to display only desired links.

window.blogLinkConfig = {
    contribs:false   // Hides Contributions link
    activity:false   // Hides UserProfileActivity link
};

Using configuration options with Fandom Developers Wiki scripts

The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.

Configuration options load too late, don't work
// 1. AjaxRC import statement
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxRC.js'
    ]
});

// 2. AjaxRC configuration option
window.ajaxRefresh = 30000;
Proper placement of configuration options
// 1. AjaxRC configuration option
window.ajaxRefresh = 30000;

// 2. AjaxRC import statement
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxRC.js'
    ]
});

Changelog[]

Date Description
Feburary 21, 2017 Initial revision.
September 9, 2017 PseudoTalkPages compatibility, doesn’t include a blog link when blogs are not enabled.
October 21, 2017 Slight rewrite, addition of Community Central support, addition of user config options.
August 23, 2020 Basic UCP support, pending eventual rewrite.
October 10, 2020 Addition of UCP-exclusive link to Special:UserProfileActivity
Advertisement