Difference between revisions of "Template:Example"

Line 474: Line 474:
  
 
// this adds the page's title as an h4
 
// this adds the page's title as an h4
$("#page_name").html (    ( wgPageName.substring( wgPageName.indexOf("/") + 1, wgPageName.length ) ).replace( /_\//g , " ")  );
+
$("#page_name").html (    ( wgPageName.substring( wgPageName.indexOf("/") + 1, wgPageName.length ) ).replace( /\/|_/g , " ")  );
 
}
 
}
  

Revision as of 20:54, 13 April 2016