Difference between revisions of "Template:Austin UTexas"

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 ( ( (wgPageName.match(/\//g) || []).length ) == 0 ) { // if it is the home page , just print the team's name
+
$( );
+
else {
}
+
                      if (! (wgPageName.match(/\//g) || []).length ) == 0 ){
  
else {
 
 
// 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