FANDOM


JavaScript code to apply to MediaWiki:Common.js:

$(document).ready(function () {
    if ($('#info-widgets').length) {
        importScriptPage('InfoWidgets/code.js', 'dev');
        window.widgetsLoaded = function () {
 
            np = Widgets.newPages();
            np.selector = '#new-pages';
            Widgets.add(np);
 
            rc = Widgets.recentChanges();
            rc.selector = '#recent-changes';
 
            Widgets.add(rc);
 
            Widgets.add({
                selector: '#new-files',
                type: 'api',
                params: {
                    action: 'query',
                    format: 'json',
                    list: 'recentchanges',
                    rclimit: 20,
                    rcshow: '!redirect',
                    rcprop: 'title',
                    rcnamespace: 6
                }
            });
         }
    }
});

Modified with slight adjustments from dev:InfoWidgets. Example coding:

<div id="info-widgets" style="width:400px">
<tabber>
New Pages=<div id="new-pages"> </div>
|-|
Recent Edits=<div id="recent-changes"> </div>
|-|
New Photos=<div id="new-files"> </div>
</tabber></div>

Will produce:

This has been created for Isle of Tune Wiki and under the help of Pecoes. Can be copied and used on all wikis.

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.