MediaWiki:Wikia.js: diferència entre les revisions
Aparença
Afegir contingut |
Ja no neva... |
||
(Hi ha 7 revisions intermèdies que no es mostren del mateix usuari) | |||
Línia 1: | Línia 1: | ||
/* Etiqueta amb el flag */ | /* Etiqueta amb el flag */ | ||
(function () { | (function () { | ||
"use strict"; | "use strict"; | ||
var userRightsList = { | var userRightsList = { | ||
" | "MarcmpujolBot": ["Bot"] | ||
}; | }; | ||
Línia 19: | Línia 16: | ||
} | } | ||
}()); | }()); | ||
/* Etiqueta per inactius */ | /* Etiqueta per inactius */ | ||
InactiveUsers = { text: 'Inactiu' }; | InactiveUsers = { text: 'Inactiu' }; | ||
importScriptPage('InactiveUsers/code.js', 'dev'); | importScriptPage('InactiveUsers/code.js', 'dev'); | ||
// ************************************************** | |||
// Notícies | |||
// ************************************************** | |||
/* Afegeix en les notícies un header especial - prova */ | |||
$('body.ns-116 .WikiHeader .wordmark.graphic ').bind('click.capçalera', function(){ window.location.href = 'http://ca.detectiuconan.wikia.com/wiki/Noticia:Índex'; return false; }); | |||
$(function(){ | |||
if ( window.wgAction == 'edit' ) { | |||
$(".WikiaMainContent").css("width", "1030px").css("padding", "0px"); | |||
} | |||
}); |
Revisió de 08:44, 22 feb 2014
/* Etiqueta amb el flag */ (function () { "use strict"; var userRightsList = { "MarcmpujolBot": ["Bot"] }; if ($('.masthead-info hgroup').length) { var name = $('.masthead-info h1[itemprop="name"]').text(); if (userRightsList[name] !== undefined) { var i; for (i = 0; i < userRightsList[name].length; i++) { $('.masthead-info hgroup').append('<span class="tag">' + userRightsList[name][i] + '</span>'); } } } }()); /* Etiqueta per inactius */ InactiveUsers = { text: 'Inactiu' }; importScriptPage('InactiveUsers/code.js', 'dev'); // ************************************************** // Notícies // ************************************************** /* Afegeix en les notícies un header especial - prova */ $('body.ns-116 .WikiHeader .wordmark.graphic ').bind('click.capçalera', function(){ window.location.href = 'http://ca.detectiuconan.wikia.com/wiki/Noticia:Índex'; return false; }); $(function(){ if ( window.wgAction == 'edit' ) { $(".WikiaMainContent").css("width", "1030px").css("padding", "0px"); } });