Difference between revisions of "Template:Austin UTexas"

Line 171: Line 171:
 
margin-left: 150px;
 
margin-left: 150px;
 
                 margin-right: 0px;
 
                 margin-right: 0px;
padding:10px 0px;
+
padding:10px 0px;  
                margin-top: 0px;
+
 
float: left;  
 
float: left;  
 
background-color:white;  
 
background-color:white;  
Line 455: Line 454:
 
<div class="content_wrapper">
 
<div class="content_wrapper">
  
<h1 id="team_name"> </h1>
+
 
 +
 
 +
<h1 id="team_name"> </h1>
 
<h4 id="page_name">  </h4>
 
<h4 id="page_name">  </h4>
 +
 +
 +
 +
 +
 +
 +
 +
  
 
<script>
 
<script>
Line 471: Line 480:
 
}
 
}
  
+
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 480: Line 490:
 
// 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:22, 24 September 2016