Usuario:Axxgreazz/Monobook-Suite/titulos.js
Apariencia
Nota: Después de guardar, debes refrescar la caché de tu navegador para ver los cambios. Internet Explorer: mantén presionada Ctrl mientras pulsas Actualizar. Firefox: mientras presionas Mayús pulsas el botón Actualizar, (o presiona Ctrl-Shift-R). Los usuarios de Google Chrome y Safari pueden simplemente pulsar el botón Recargar. Para más detalles e instrucciones acerca de otros exploradores, véase Ayuda:Cómo limpiar la caché.
//<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 mw.config.get('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>