MediaWiki:Wikia.js: diferència entre les revisions
Aparença
m Correcció de codis |
Afegir contingut |
||
| 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' }; | ||
Revisió del 15:42, 16 juny 2013
/* 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/Notícia:Índex'; return false; });
$(function(){
if ( window.wgAction == 'edit' ) {
$(".WikiaMainContent").css("width", "1030px").css("padding", "0px");
}
});