Wikipedia:WikiProject User scripts/Scripts/Get Page Name
From Wikipedia, the free encyclopedia
/*
*/
/*Returns the name of the page. For example, if you were browsing the "[[foo]]" WP page, getPname() would return "foo".*/
function getPname() {
return wgPageName.replace(/_/g, ' ');
}
/*
*/

