Line 455: | Line 455: | ||
<div class="content_wrapper"> | <div class="content_wrapper"> | ||
− | + | <h1 id="team_name"> </h1> | |
<h4 id="page_name"> </h4> | <h4 id="page_name"> </h4> | ||
Line 471: | Line 471: | ||
} | } | ||
− | else if ( | + | |
− | + | else { | |
− | + | if (! (wgPageName.match(/\//g) || []).length ) == 0 ){ | |
− | |||
// this adds the team's name as an h1 | // this adds the team's name as an h1 | ||
$("#team_name").html( wgPageName.substring( 5 , wgPageName.indexOf("/") ) ); | $("#team_name").html( wgPageName.substring( 5 , wgPageName.indexOf("/") ) ); | ||
Line 481: | Line 480: | ||
// 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 03:21, 24 September 2016