MediaWiki:Wikia.js: diferència entre les revisions
Treure contingut |
Ja no neva... |
||
(Hi ha 6 revisions intermèdies que no es mostren del mateix usuari) | |||
Línia 1: | Línia 1: | ||
// | /* 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 */ | /* 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"); | |||
} | |||
}); |