Wikipedia:WikiProject User scripts/Scripts/Get Page Name

This is an old revision of this page, as edited by Lupin (talk | contribs) at 20:21, 14 August 2006 (this script is now obselete; one-line version for transitional purposes). 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 wgTitle;
}
//