Usuari:Pasqual/scripts/títols.js
De Viquipèdia
< Usuari:Pasqual | scripts
//
//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;
}
//

