Wikia


The Talk Button is a script originally written by Lil 'Miss Rarity, and published on the Wikia Developers wiki in 2016. The purpose of the script is to add talk page buttons to pages on wikis with article comments enabled. Due to the nature of the script, it is primarily intended for Site-Wide use, but can be used for Personal use, although it isn't recommended for inexperienced users to use this feature for personal use, since it can result in unwanted consequences if used on wikis that don't actively use article talk pages.

Since the wiki redesign in June 2017, to avoid being made into a personal script, the talk button was reluctantly added to the module rail, above the modules but below the page separator.

Site-wide System for Non-Site-wide Features on C.Syde's Wiki

Because certain article pages on C.Syde's Wiki - along with their respective talk pages - are not designed for use of article comments for general discussion in large part, the comments sections of those article pages are to be used to discuss and share personal thoughts and opinions on the articles only. Any other activity, such as sharing any results from using the features of the pages are to take place on the article talk pages.

Discussions for improvements to those pages along with their parent article pages are to be taken place on the parent article's talk pages. Incorrect usage of article comments on those pages will result in deletion of those article comments. The posted article comments will be transferred over to the talk pages of those articles. The user will also receive a notification about the said pages are meant to be used. It is strongly recommended that you add the following content to your wikia.js page to use the script in it's intended form:

// Talk page button
// Created by Lil' Miss Rarity
// MIT OS License
$(function() {
    var config = mw.config.get([
        'skin',
        'wgFormattedNamespaces',
        'wgNamespaceNumber',
        'wgPageName'
    ]);
 
    if (config.wgNamespaceNumber !== 0 || config.skin !== 'oasis' || window.TalkButtonLoaded) {
        return;
    }
    window.TalkButtonLoaded = true;
 
    $.get(mw.util.wikiScript('api'), {
        action: 'query',
        format: 'json',
        meta: 'allmessages',
        ammessages: 'oasis-page-header-talk'
    }, function(d) {
        var talkMessage = d.query.allmessages[0]['*'];
 
 
        $('.page-header__contribution-buttons').append(
            $('<a></a>')
                .attr({
                    accesskey: 't',
                    class: 'wds-button wds-is-secondary wds-is-squished TalkButtonBubble',
                    href: '/wiki/Talk:' + config.wgPageName
                })
                .text(talkMessage)
        ); 
 
        $.ajax({
            type: 'GET',
            url: mw.util.wikiScript('api'),
            data: {
                titles: config.wgFormattedNamespaces[1] + ':' + config.wgPageName,
                action: 'query',
                format: 'json',
                prop: 'info',
                inprop: 'revcount'
            }
        }).always(function(data) {
            var pageData = data.query && data.query.pages[Object.keys(data.query.pages)[0]];
            $('.TalkButtonBubble').text(talkMessage + ' (' + (pageData && pageData.revcount || 0) + ')');
        });
    });
});


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.