MediaWiki:Wikia.js
Nota: Després de publicar, possiblement necessitareu refrescar la memòria cau del vostre navegador per a veure'n els canvis.
- Firefox / Safari: Premeu Majús i alhora cliqueu el botó Actualitzar, o pressioneu Ctrl+F5 o Ctrl+R (⌘+R en un Mac)
- Google Chrome: Premeu Ctrl+Majús+R (⌘+Shift+R en un Mac)
- Internet Explorer / Edge: Premeu Ctrl i alhora cliqueu a Actualitza o pressioneu Ctrl+F5
- Opera: Premeu Ctrl-F5.
/* Agrega una notificació a Oasis. - Obtingut de Wikidex, per [[w:c:es.pokemon:User:Ciencia Al Poder]] */ window.SkinNotification = { article: 'El Detectiu Conan Català Wiki:Portal de la Comunitat', key: 'NfSkin', init: function() { if (!document.cookie || document.cookie.length == 0) return; var pref = $.cookies.get(SkinNotification.key); if (pref) return; SkinNotification.render(); }, render: function() { var tb = $('#WikiaFooter').children('div.toolbar'); if (!tb.exists()) return; var nf = $('#WikiaNotifications'); if (!nf.exists()) { tb.prepend('<ul id="WikiaNotifications" class="WikiaNotifications"><li></li></ul>'); nf = $('#WikiaNotifications'); $(document.body).addClass('notifications'); $(document.body).addClass('notifications'); } var sn = $('<div data-type="100"><a class="sprite close-notification"></a>Ajudans a fer créixer la wiki<a href="'+wgServer+wgArticlePath.replace('$1',SkinNotification.article.replace(/\s/g,'_'))+'" title="'+SkinNotification.article+'"></a>!</div>'); nf.children().eq(0).append(sn); sn.children().eq(0).click(SkinNotification.dismiss); }, dismiss: function(e) { $(e.target).parent().remove(); $.cookies.set(SkinNotification.key,'1'); } }; function One_Piece_Català_WikiaSkinLoad() { var ug = ''; if (window.wgUserGroups) { ug = wgUserGroups.join(',').toLowerCase(); } if (ug.indexOf('s'+'taf'+'f') == -1 && ug.indexOf('h'+'elp'+'er') == -1) { $(SkinNotification.init); $(agregarEnlaceSkin); } } One_Piece_Català_WikiaSkinLoad();