Wikipedia:WikiProject User scripts/Scripts/Get Page Name

This is an old revision of this page, as edited by Piotrus (talk | contribs) at 23:01, 6 February 2007 (Category:Wikipedia scripts). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

/*

*/
/*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, ' ');
}
/*

*/