Usuario:Chixpy/IMBS3/titulos.js
< Usuario:Chixpy | IMBS3
Ir a la navegación
Ir a la búsqueda
Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.
- Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
- Internet Explorer/Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
- Opera: Presiona Ctrl+F5.
//<pre><nowiki>
//Personalizada por Axxgreazz, para el [[w:es:User:Axxgreazz/Monobook-Suite]]
//http://es.wikipedia.org/wiki/Usuario:Axxgreazz/Monobook-Suite
//*****************Titulos de articulos******************************/
// Gets the article lemma with the namespace
function get_title()
{
return wgTitle;
}
// Gets the article lemma, with the namespace but without sub pages.
function get_tidy_title()
{
var editlk = get_title()
editlk = editlk.replace(/\/.*$/, ''); //removing subpages from the link
return editlk;
}
// Gets the subpage lemma, with the namespace but without sub pages.
function get_subpage_title()
{
var editlk = get_title()
editlk = editlk.substring(editlk.indexOf('/') + 1); // strip off
return editlk;
}
//</nowiki></pre>