Fandom Developers Wiki

This script/stylesheet is for PERSONAL use only!

You are free to install this script/stylesheet for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:ImportJS, MediaWiki:Common.js, MediaWiki:Common.css, MediaWiki:Fandomdesktop.js, MediaWiki:Fandomdesktop.css, or MediaWiki:FandomMobile.css), as it would violate Fandom's Terms of Use.
(See the customization policy)

BlogLink thêm các đường dẫn vào các trang blog, đóng góp hay PseudoTalkPage (nếu có thể) vào trình thả xuống của nền Oasis hay vào góc trên cùng bên phải của thanh người dùng trong nền Monobook. Đoạn mã được dựa trên KnazO's ContribsLink và được làm theo yêu cầu của Diep.io Wikia.

Đoạn mã chỉ thêm đường dẫn tới blog nếu wiki đó cho phép sử dụng blob trong WikiFeatures, và chỉ thêm đường vẫn vào PseudoTalkPage của người dùng nếu mã đó được sử dụng trên wiki đó. Đường dẫn đóng góp được tải (mặc định), mặc dù người dùng có thể chọn không sử dụng tính năng này qua việc chỉnh sửa một cấu hình.

Installation[]

Tùy chọn[]

Qua việc chỉnh sửa vật thể window, người dùng có thể tùy chỉnh theo ý thích. Theo mặc định, đoạn mã sẽ thêm đường dẫn tới blog, đóng góp hay PseudoTalkPage (nếu có thể), người dùng có thể chọn chỉ thấy những đường dẫn cần thiết.

window.blogLinkConfig = {
    contribs:false   // Hides Contributions link
};
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[]

13/12/24
General-purpose rewrite; update for new global nav, removal of deprecated code, and removal of I18n-js dependency
19/10/20
Addition of UCP-exclusive link to Special:UserProfileActivity
23/08/20
Basic UCP support, pending eventual rewrite
21/10/17
Slight rewrite, addition of Community Central support, addition of user config options
09/09/17
PseudoTalkPages compatibility, doesn’t include a blog link when blogs are not enabled.
21/02/17
Initial revision