Fandom Developers Wiki
Advertisement

This page, or parts of it, are still untranslated. Please translate it to the appropriate language (italiano).

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 or MediaWiki:Fandomdesktop.css), as it would violate Fandom's Terms of Use.
(See the customization policy)

Basato sullo script KnazO's, BlogLink aggiunge links a blog e contributi utente al menu a tendina in Oasis ed alla barra utente Monobook.

Lo script controlla se i blog sono abilitati in WikiFeatures prima di caricare i link; se i link non sono abilitati, verrà caricato soltanto quello ai contributi. Allo stesso modo, lo script è stato ottimizzato per la compatibilità ai PseudoTalkPages, quindi se lo script relativo è presente, BlogLink includerà il link relativo. Non verranno caricati Link ridondanti o rotti.

Installazione[]

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