MediaWiki:Thongbao.js

/** Bản cũ cần lưu tâm: http://powercharacter.wikia.com/wiki/MediaWiki:Thongbao.js?oldid=99216 **/ if ((mw.config.get('wgAction') === 'view') && (mediaWiki.config.get('wgPageName') !== 'Power_Character_VN') && (mediaWiki.config.get('wgCanonicalSpecialPageName') !== 'WikiActivity') && (mediaWiki.config.get('wgNamespaceNumber') === 0 || mediaWiki.config.get('wgNamespaceNumber') === 4 || mediaWiki.config.get('wgNamespaceNumber') === 6 || mediaWiki.config.get('wgNamespaceNumber') === 14 || mediaWiki.config.get('wgNamespaceNumber') === 112 || mediaWiki.config.get('wgNamespaceNumber') === 114 || mediaWiki.config.get('wgNamespaceNumber') === 500 || mediaWiki.config.get('wgNamespaceNumber') === 1201)) { $(window).load(function {       var newSection = '' +            'Thông báo' + ' ' + ' ';        $('#WikiaRail section:first-of-type:not(.recirculation-rail)').after(newSection);        $.getJSON('/api.php?action=parse&text=&format=json', function(data) { var code = data.parse.text['*']; $('section#ThongBaoModule').append(code); // Embed The Facebook Widget to sidebar. Because ?action=render only pull some text and therefore the default embed code for FB by Wikia doesn't work document.getElementById('fbbox').innerHTML = ' '; $('#ThongBaoModule a').attr('target', '_blank').attr('title', 'Mở link sang Tab mới.'); tabberAutomatic; });   }); }

if (mediaWiki.config.get('wgCanonicalSpecialPageName') === 'WikiActivity') { $(window).load(function {       var newSection = '' +            'Thông báo' + ' ' + ' ';        $('#WikiaRail section:first-of-type').after(newSection);        $.getJSON('/api.php?action=parse&text=&format=json', function(data) { var code = data.parse.text['*']; $('section#ThongBaoModule').append(code); // Embed The Facebook Widget to sidebar. Because ?action=render only pull some text and therefore the default embed code for FB by Wikia doesn't work document.getElementById('fbbox').innerHTML = ' '; $('#ThongBaoModule a').attr('target', '_blank').attr('title', 'Mở link sang Tab mới.'); impart('u:dev:MediaWiki:TopEditors/code.js'); tabberAutomatic; });   }); }