Difference between revisions of "Template:Example"

Line 446: Line 446:
 
<div class="content_wrapper">
 
<div class="content_wrapper">
  
<div class="column full_size" >
+
 
  
 
<h1 id="team_name">  </h1>
 
<h1 id="team_name">  </h1>
 
<h4 id="page_name">  </h4>
 
<h4 id="page_name">  </h4>
  
</div>
+
 
  
  
Line 468: Line 468:
 
 
  
 +
// 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("/")  ) );  // this adds the team's name as an h1
+
// 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 18:45, 13 April 2016