Jump to content
Wikipedia The Free Encyclopedia

Wikipedia:WikiProject User scripts/Scripts/Get Page Name

From Wikipedia, the free encyclopedia
 /*<pre>*/
 /*Returns the name of the page. For example, if you were browsing the "[[foo]]" WP page, getPname() would return "foo".*/
 functiongetPname(){
 returnmw.config.get('wgPageName').replace(/_/g,' ');
 }
 /*</pre>[[Category:Wikipedia scripts]]*/

AltStyle によって変換されたページ (->オリジナル) /