FANDOM


wgMessageWallsExist extends the mw.config variable to add a new wgVariable called wgMessageWallsExist. This method, unlike the others, does not return a usable value but instead returns a promise which you can use to separate logic for message walls and talk pages.

Usage

To use do as follows:

mw.hook('dev.enablewallext').add(function(wgMessageWallsExist) {
    wgMessageWallsExist.then(
        function () {
            // Message walls do exist on this wiki
        },
        function () {
            // Message walls do not exist on this wiki
        }
    );
});
importArticle({
    type: 'script',
    article: 'u:dev:MediaWiki:WgMessageWallsExist.js'
});
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+