MediaWiki:Wikia.js

/* Spoiler alert */ window.SpoilerAlert = { isSpoiler: function { return -1 != $.inArray('Spoiler', wgCategories); } }; importArticles({   type: 'script',    articles: [        'u:dev:SpoilerAlert/code.js',    ] });

/*User Tags*/ UserTagsJS.modules.inactive = { days: 30, namespaces: [0], zeroIsInactive: true // 0 article edits = inactive };

UserTagsJS.modules.newuser = { days: 5, // Must have been on the Wiki for 5 days edits: 10, // And have at least 10 edits to remove the tag namespace: 0 // Edits must be made to articles to count };

/* extended navigation */ importArticles({   type: 'script',    articles: [        'u:dev:ExtendedNavigation/code.js'    ] });

/* Floating TOC */ importScriptPage('FloatingToc/code.js', 'dev');

/* sidebar */ $(document).ready(function {   var newSection = ' ' +      'What is New?' + ' ' + ' ';    $('#WikiaRail').append(newSection);    $.getJSON('/api.php?action=parse&text=&format=json', function(data) { var code = data.parse.text['*']; $('section#activities').append(code); }); });

$(document).ready(function {   var newSection =     $('#WikiaRail').append(newSection);    $.getJSON('/api.php?action=parse&text=&format=json', function(data) { var code = data.parse.text['*']; $('section#activities').append(code); }); });