Mickey Mangieri | #11 | WR | New Hampshire

gp yds yds/g td
9 341 37.9 1
  gp rec rec/g yds y/g avg td lg
There was a problem with a Velocity script
Pagebio-network-template
ErrorVM #split: too many arguments to macro. Wanted 2 got 3 at bio-network-template[line 778, column 1]
Page source:
1: ## MOBILE CHECK
2: #if ($browser.getIphone() || $browser.getMobile())
3: 	#set ($isMobile = true)
4: #else
5: 	#set ($isMobile = false)
6: #end
7: 
8: #set ($mobileNS = 'mobile-stats-')
9: #set ($mobileNSP = "#${mobileNS}")
10: 
11: ## PICK UP OPTIONS
12: $website.include("options")
13: #set ($options = $request.getAttribute("options"))
14: #set ($locale = "en_us")
15: #set ($locale = $options.get("locale"))
16: #set ($showCareer = $wiki.valid() && $seasons)
17: #if ("yes" == $options.get("stats_show_career") && $seasons)
18:   #set ($showCareer = "yes")
19: #end
20: 
21: #if ($locale == "en_us")
22:   #set ($defLabel = "Defense")
23: #elseif ($locale == "en_gb")
24:   #set ($defLabel = "Defence")
25: #end
26: 
27: #set ($pos = "")
28: #set ($pos = $attributes.get("position"))
29: #set ($posVec = $pos.split("/"))
30: #set ($pos = $posVec[0])
31: #set ($pos = $pos.toLowerCase())
32: #set ($pos = $positions.get($pos))
33: #set ($highlights = $highlights.get($pos))
34: #if ($request.getParameter("pos"))
35:   #set ($pos = $request.getParameter("pos"))
36:   #set ($pos = $pos.toLowerCase())
37:   #set ($pos = $positions.get($pos))
38: #end
39: #set ($labels = $labels.get($pos))
40: #set ($briefs = $briefs.get($pos))
41: #set ($gamelogs = $gamelogs.get($pos))
42: #set ($view = $!request.getParameter("view"))
43: #set ($url = ${page.url})
44: 
45: #set ($playerId = $attributes.get("playerId"))
46: 
47: #set ($stats = $splits.overall)
48: 
49: 
50: #macro (printHighlights)
51: 	#set ($cellWidth = $tool.math.toInteger($tool.math.div(100, $highlights.size())))
52: 	<table style="width:100%">
53: 	 <tr>
54: 		#foreach ($highlight in $highlights.keySet())
55: 		  <th #if ($isMobile) style="width:${cellWidth}%" #end><b>$!highlights.get($highlight)</b></th>
56: 		#end
57: 	 </tr>
58: 	 <tr>
59: 		#foreach ($highlight in $highlights.keySet())
60: 		  #set ($value = "-")
61: 		  ## #set ($format = $formats.get($highlight))
62: 		  ## #set ($value = $!formatter.formatNumber($stats.get($highlight), $format))
63: 		  #set ($value = $formatter.formatNumber($stats.get($highlight), $formats.get($highlight)))
64: 		  <td align="center">
65: 		  #if ($value.length() > 0)$value#else - #end
66: 		  </td>
67: 		#end
68: 	 </tr>
69: 	</table>
70: #end
71: 
72: #macro (printPosLink $posKey $label $tablePosition)
73: 	#if ($isMobile)
74: 		
75: 		#if ($tablePosition == 'first')
76: 			<select class="${mobileNS}tab-select" style="visibility:visible">
77: 		#end
78: 		
79: 		<option data-pos="${posKey}" value="${url}?view=${view}&pos=${posKey}" #if ($pos == $posKey) selected="selected" #end>${label}</option>
80: 		
81: 		#if ($tablePosition == 'last')
82: 			</select>
83: 		#end
84: 	#else
85: 		<li #if ($pos == $posKey) class="active" #end>	
86: 			<a href="${url}?view=${view}&pos=${posKey}">${label}</a>
87: 		</li>
88: 	#end
89: #end
90: 
91: 
92: ## CAREER STATS WILL PRINT LIKE THIS
93: #macro(split $label $stats $class)
94:     <tr class="$!{class}">
95:     <td class="${mobileNS}fixed-column">${label}</td>
96:     #foreach ($brief in $briefs.keySet())
97:       #set ($value = "-")
98:       #set ($value = $!formatter.formatNumber($stats.get($brief), $formats.get($brief)))
99:       <td align="center">
100:       #if ($value.length() > 0)$value#else - #end
101:       </td>
102:     #end
103:   </tr>
104: #end
105: 
106: #set ($colspan = $briefs.size() + 1)
107: 
108: #macro (printHr)
109: #if (! $isMobile)
110: <tr><td colspan="${colspan}"><hr></td></tr>
111: #else
112: <tr>
113: 	<td class="${mobileNS}fixed-column">&nbsp;</td>
114: 	<td colspan="${colspan}">&nbsp;</td>
115: </tr>
116: #end
117: #end
118: 
119: 
120: ## MOBILE
121: #if ($isMobile)
122: 
123: 
124: <div class="stats-wrapper mobile-stats">
125:     <h1>$!attributes.get("first_name") $!attributes.get("last_name")</h1>
126: 	<h2 class="page-subtitle">
127: 		<a href="../teams?id=$!{attributes.get("teamId")}">$!attributes.get("team")</a>
128: 		#if ($attributes.get("number")) | #$!attributes.get("number") #end 
129: 		#if ($attributes.get("position")) | $!attributes.get("position")#end
130: 		
131: 	</h2>
132: 	<img src="/info/mobile/mobile-js/photoswipe/loader.gif" alt="" id="mobile-stats-tabs-spinner" />
133: 	<div class="stats-tabs mobile-tabs">
134: 	<ul>
135: 		<li><a data-url="${page.url}" #if (!($view.length() > 0)) class="active" href="#Player_Profile" #else href="${page.url}" #end title="Player Profile">Profile</a></li>
136: 		<li><a data-url="${page.url}?view=gamelog" #if ($view == "gamelog") class="active" href="#Gamelog" #else href="${page.url}?view=gamelog" #end title="Gamelog">Games</a></li>
137:         #if ($showCareer)
138:           <li><a data-url="${page.url}?view=career" #if ($view == "career") class="active" href="#Career" #else href="${page.url}?view=career" #end title="Career Stats">Career</a></li>
139:         #end
140: 		<li><a data-url="${page.url}?view=splits" #if ($view == "splits") class="active" href="#Split_Stats" #else href="${page.url}?view=splits" #end title="Split Stats">Splits</a></li>
141: 	</ul>	
142: 
143: #if ($view == "gamelog" and $events) ## GAMELOG
144: 	
145: <div id="Gamelog">
146: <div class="${mobileNS}panel-wrapper" data-pos="${pos}">
147: 	
148: #if ($sport.enumCode == 0) ## Football
149: 
150: 	#printPosLink('qb', 'Passing', 'first')
151: 	#printPosLink('rb', 'Rushing', '')
152: 	#printPosLink('wr', 'Receiving', '')
153: 	#printPosLink('k', 'Kicking', '')
154: 	#printPosLink('p', 'Punting', '')
155: 	#printPosLink('kr', 'Returns', '')	
156: 	#printPosLink('allp', 'All-Purpose', '')		
157: 	#printPosLink('d', $defLabel, 'last')
158: 
159: #elseif ($sport.enumCode == 1 || $sport.enumCode == 11) ## Baseball or Softball
160: 
161: 	#printPosLink('h', 'Hitting', 'first')
162: 	#printPosLink('p', 'Pitching', '')		
163: 	#printPosLink('f', 'Fielding', 'last')
164: 
165: #elseif ($sport.enumCode == 2) ## Basketball
166: 
167: 	#printPosLink('sh', 'Shooting', 'first')
168: 	#printPosLink('bc', 'Ball control', 'last')
169: 
170: #end
171: 
172: <div class="${mobileNS}panel-container">
173: <table><thead>
174: 	
175:   <tr>
176:     <th><b>Date</b></th>
177:     <th class="${mobileNS}fixed-column"><b>Opponent</b></th>
178:     <th><b>Score</b></th>
179:     #foreach ($gamelog in $gamelogs)
180:       <th><b>$gamelog</b></th>
181:     #end
182:   </tr>
183:   
184: </thead>
185: <tbody>
186: #foreach ($event in $events)
187:   <tr>
188:     <td>$formatter.formatDate($event.event.date, "MMM d")</td>
189:     <td class="${mobileNS}fixed-column ${mobileNS}no-wrap">
190:     #if ($event.event.neutralSite.length() > 0) vs.
191:     #elseif (!$event.event.home) at
192:     #else ## nothing for a home game
193:     #end
194:     $event.event.opponent.name</td>
195:     <td>
196:     #if ($event.event.statusCode >= 0)
197:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
198:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
199:       #else
200:       ${event.event.APResult}
201:       #end
202:     #else &nbsp; #end
203:     </td>
204:     #foreach ($gamelog in $gamelogs.keySet())
205:       #set ($value = "-")
206:       #set ($value = $formatter.formatNumber($event.stats.get($gamelog), $formats.get($gamelog)))
207:       <td align="center">
208:       #if ($value.length() > 0)$value#else - #end
209:       </td>
210:     #end
211:   </tr>
212: #end
213: </tbody></table>
214: $wiki.su
215: 
216: </div> <!-- ${mobileNS}panel-container -->
217: </div> <!-- ${mobileNS}panel-wrapper -->
218: 
219: </div> <!-- Gamelog -->
220: 
221: #elseif ($view == "career" and $seasons) ## CAREER
222: 	
223: <div id="Career">
224: <div class="${mobileNS}panel-wrapper" data-pos="${pos}">
225: 
226: #if ($sport.enumCode == 0) ## Football
227: 
228: 	#printPosLink('qb', 'Passing', 'first')
229: 	#printPosLink('rb', 'Rushing', '')
230: 	#printPosLink('wr', 'Receiving', '')
231: 	#printPosLink('k', 'Kicking', '')
232: 	#printPosLink('p', 'Punting', '')
233: 	#printPosLink('kr', 'Returns', '')
234: 	#printPosLink('allp', 'All-Purpose', '')
235: 	#printPosLink('d', $defLabel, 'last')
236: 	
237: #elseif ($sport.enumCode == 1 || $sport.enumCode == 11) ## Baseball or Softball
238: 
239: 	#printPosLink('h', 'Hitting', 'first')
240: 	#printPosLink('p', 'Pitching', '')
241:     #printPosLink('f', 'Fielding', 'last')
242: 	
243: #elseif ($sport.enumCode == 2) ## Basketball
244: 
245: 	#printPosLink('sh', 'Shooting per game', 'first')
246: 	#printPosLink('st', 'Shooting', '')
247: 	#printPosLink('bc', 'Ball control per game', '')
248: 	#printPosLink('bt', 'Ball control', 'last')
249: 	
250: #end
251: 
252: 
253: <div class="${mobileNS}panel-container">
254: <table><thead>
255: 
256:   <tr>
257:     <th class="${mobileNS}fixed-column">&nbsp;</th>
258:     #foreach ($brief in $briefs)
259:       <th><b>$brief</b></th>
260:     #end
261:   </tr>
262: 
263: $request.setAttribute("careerTotals", $career)
264: ## We track a map of the careers to see if we are missing any seasons
265: #set ($careerMap = {})
266: $request.setAttribute("careerMap", $careerMap)
267: #foreach ($season in $seasons)
268:   ## We need to include this season stats
269:   #set ($path = "${season.path}?tmpl=bio-career-template&name=${season.seasonName}&pos=${pos}&print=yes")
270:   $website.include($path)
271:   ## Check if we did not get stats for this season
272:   #if (!($careerMap.get($season.seasonName)) && $wiki.valid())
273:     <tr><td class="${mobileNS}fixed-column">${season.seasonName}</td><td colspan="${briefs.size()}" align="center">We could not find the "players" page in the ${season.seasonName} section.</td></tr>
274:   #end
275: #end
276: 
277: #split("Total", $career.overall, '')
278:   
279:   
280: </tbody></table>
281: $wiki.su
282: 
283: </div> <!-- ${mobileNS}panel-container -->
284: </div> <!-- ${mobileNS}panel-wrapper -->
285: 
286: </div> <!-- Career -->
287: 
288: 
289: 
290: 
291: 
292: 
293: 
294: 
295: 
296: #elseif ($view == "splits" and $events)
297: 
298: <div id="Split_Stats">
299: <div class="${mobileNS}panel-wrapper" data-pos="${pos}">
300: 
301: 
302: #if ($sport.enumCode == 0) ## Football
303: 
304: 	#printPosLink('qb', 'Passing', 'first')
305: 	#printPosLink('rb', 'Rushing', '')
306: 	#printPosLink('wr', 'Receiving', '')
307: 	#printPosLink('k', 'Kicking', '')
308: 	#printPosLink('p', 'Punting', '')
309: 	#printPosLink('kr', 'Returns', '')
310: 	#printPosLink('allp', 'All-Purpose', '')
311: 	#printPosLink('d', $defLabel, 'last')
312: 	
313: #elseif ($sport.enumCode == 1 || $sport.enumCode == 11) ## Baseball or Softball
314: 
315: 	#printPosLink('h', 'Hitting', 'first')
316: 	#printPosLink('p', 'Pitching', '')
317:     #printPosLink('f', 'Fielding', 'last')
318: 	
319: #elseif ($sport.enumCode == 2) ## Basketball
320: 
321: 	#printPosLink('sh', 'Shooting per game', 'first')
322: 	#printPosLink('st', 'Shooting', '')
323: 	#printPosLink('bc', 'Ball control per game', '')
324: 	#printPosLink('bt', 'Ball control', 'last')
325: 	
326: #end
327: 
328: 
329: <div class="${mobileNS}panel-container">
330: <table><tbody>
331:   <tr>
332:     <th class="${mobileNS}fixed-column">&nbsp;</th>
333:     #foreach ($brief in $briefs)
334:       <th><b>$brief</b></th>
335:     #end
336:   </tr>
337: 
338: #split("Total", $splits.overall, '')
339: #split("Conference", $splits.conference, '')
340: #split("Exhibition", $splits.exhibition, '')
341: 
342: #printHr()
343: 
344: #split("Home", $splits.home, '')
345: #split("Away", $splits.away, '')
346: #split("Neutral", $splits.neutral, '')
347: 
348: #printHr()
349: 
350: #split("Wins", $splits.inWins, '')
351: #split("Losses", $splits.inLosses, '')
352: #if ($sport.enumCode == 5) ## Ice hockey
353: #split("Ties", $splits.inTies, '')
354: #end
355: 
356: #printHr()
357: 
358: ## Going to need to replace this with sound logic that does not use the sport to determine dates
359: #if ($sport.enumCode == 5) ## Ice hockey
360:  #split("September", $splits.september, '')
361:  #split("October", $splits.october, '')
362:  #split("November", $splits.november, '')
363:  #split("December", $splits.december, '')
364:  #split("January", $splits.january, '')
365:  #split("February", $splits.february, '')
366:  #split("March", $splits.march, '')
367:  #split("April", $splits.april, '')
368: #elseif ($sport.enumCode == 2) ## Basketball
369:  #split("November", $splits.november, '')
370:  #split("December", $splits.december, '')
371:  #split("January", $splits.january, '')
372:  #split("February", $splits.february, '')
373:  #split("March", $splits.march, '')
374: #elseif ($sport.enumCode == 3 or $sport.enumCode == 9) ## Soccer or field hockey
375:  #split("September", $splits.september, '')
376:  #split("October", $splits.october, '')
377:  #split("November", $splits.november, '')
378:  #split("December", $splits.december, '')
379: #elseif ($sport.enumCode == 0) ## Football
380:  #split("August", $splits.august, '')
381:  #split("September", $splits.september, '')
382:  #split("October", $splits.october, '')
383:  #split("November", $splits.november, '')
384:  #split("December", $splits.december, '')
385: #elseif ($sport.enumCode == 6 or $sport.enumCode == 10) ## Men's or women's lacrosse
386:  #split("January", $splits.january, '')
387:  #split("February", $splits.february, '')
388:  #split("March", $splits.march, '')
389:  #split("April", $splits.april, '')
390:  #split("May", $splits.may, '')
391: #end
392: </thead>
393: </table>
394: $wiki.su
395: </div> <!-- ${mobileNS}panel-container -->
396: </div> <!-- ${mobileNS}panel-wrapper -->
397: </div>
398: 
399: 
400: #else ## Player profile
401: 
402: <div id="Player_Profile">
403: 
404: #printHighlights()
405: 
406: ## LAST SIX GAMES
407: <table>
408:   <tr><th colspan="3">Recent Games</th></tr>
409: #set ($eventEnd = -1)
410: #foreach ($event in $events)
411:   #if ($event.event.result.resolved)
412:     #set ($eventEnd = $velocityCount)
413:   #end
414: #end
415: #set ($eventStart = $eventEnd - 5)
416: #if ($eventStart < 0) #set ($eventStart = 0) #end
417: #foreach ($event in $events)
418: #if ($velocityCount >= $eventStart and $velocityCount <= $eventEnd)
419:   <tr>
420:     <td>$formatter.formatDate($event.event.date, "MMM d")</td>
421:     <td>
422:     #if ($event.event.neutralSite.length() > 0) vs.
423:     #elseif (!$event.event.home) at
424:     #else ## nothing for a home game
425:     #end
426:     $event.event.opponent.name</td>
427:     <td>
428:     #if ($event.event.statusCode >= 0)
429:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
430:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
431:       #else
432:       ${event.event.APResult}
433:       #end
434:     #end
435: 	</td>
436:   </tr>
437: #end ## if
438: #end
439: </table>
440: 
441: ## RANKING
442: $website.include("../players?tmpl=stats-bios-rank-template&rank=${playerId}&pos=${pos}")
443: 
444: $wiki.su
445: $!synopsis
446: <br>
447: #set ($briefbio = "${page.url}-brief")
448: #set ($stats = "${page.url}-stats")
449: $website.include($briefbio)
450: $website.include($stats)
451: <br>
452: 
453: </div> <!-- player profile -->
454: 
455: #end
456: 
457: </div> <!-- mobile-tabs -->
458: </div> <!-- mobile-stats -->
459: 
460: <script type="text/javascript">
461: 	mobileConf = {
462: 		page : 'stats',
463: 		pageParams : {
464: 		#if (!($view.length() > 0))
465: 			activeStatTab : $('#Player_Profile')
466: 		#elseif ($view == "gamelog")
467: 			activeStatTab : $('#Gamelog')
468: 		#elseif ($view == "career")
469: 			activeStatTab : $('#Career')
470: 		#elseif ($view == "splits")
471: 			activeStatTab : $('#Split_Stats')
472: 		#end
473: 		}
474: 	}
475: </script>
476: 
477: 
478: 
479: #else ## DESKTOP
480: 
481: <html>
482: <head>
483: <title>
484: $!attributes.get("first_name") $!attributes.get("last_name") | #if ($attributes.get("number"))#$!attributes.get("number") | #end#if ($attributes.get("position"))$attributes.get("position") | #end $attributes.get("team")
485: </title>
486: </head>
487: <body>
488: 
489: <div class="stats-wrapper clearfix">
490: 
491: #if ($page.title.length() > 0)
492: 	<h1>$page.title</h1>
493: #end
494: 	
495: <h2>
496: $!attributes.get("first_name") $!attributes.get("last_name")&nbsp;<span style="color: #ccc; font-weight: normal;">|</span>&nbsp;#if ($attributes.get("number"))#$!attributes.get("number")&nbsp;<span style="color: #ccc; font-weight: normal;">|</span>&nbsp;#end#if ($attributes.get("position"))$attributes.get("position")&nbsp;<span style="color: #ccc; font-weight: normal;">|</span>&nbsp;#end<a href="../teams?id=$!{attributes.get("teamId")}">$attributes.get("team")</a>
497: </h2>
498: 
499: <div class="clearfix"> #printHighlights() </div>
500: 
501: ## TABS
502: <div class="stats-tabs clearfix">
503: <ul class="clearfix">
504:   <li #if (!($view.length() > 0))class="active"#end><a href="${page.url}">Player Profile</a></li>
505: ## <li #if ($view == "lineup")class="active"#end"><a href="${page.url}?view=lineup">Lineup</a></li>
506:   <li #if ($view == "gamelog")class="active"#end><a href="${page.url}?view=gamelog">Game Log</a></li>
507:   #if ($showCareer)
508:     <li #if ($view == "career")class="active"#end><a href="${page.url}?view=career">Career Stats</a></li>
509:   #end
510:   <li #if ($view == "splits")class="active"#end><a href="${page.url}?view=splits">Split Stats</a></li>
511: </ul>
512: </div>
513: 
514: ## BIO-PHOTOS
515: ## DO NOT EDIT STYLE OR TEMPLATE BELOW
516: #*
517: <div class="bio-photo">
518: #if ($headshot.url)
519:   <img src="$headshot.url?max_height=200&max_width=150" alt="" />
520: #else
521:   <img src="/images/setup/headshot_default.jpg" alt="" />
522: #end
523: </div>
524: 
525: 
526: <div class="bio-data">
527: 
528: ## COACHES
529:    #if ($attributes.get("title"))
530:     <div><span>Title:</span>  $!attributes.get("title")</div>
531:    #end
532:    #if ($attributes.get("email_address"))
533:     <div><span>Email:</span>  <a href="mailto:$!attributes.get("email_address")">$!attributes.get("email_address")</a></div>
534:    #end
535:    #if ($attributes.get("phone1"))
536:     <div><span>Phone:</span>  $!attributes.get("phone1")</div>
537:    #end
538: 
539: 
540: ## ATHLETES
541: 
542:    #set ($year = $!attributes.get("year"))
543:    #if ($attributes.get("year"))
544:     <div><span>Year:</span> $attributes.get("year")</div>
545:    #end
546:    #if ($attributes.get("position"))
547: 
548:     <div><span>Position:</span> $attributes.get("position")</div>
549:    #end
550:    #if ($attributes.get("hometown"))
551:     <div><span>Hometown:</span> $attributes.get("hometown")</div>
552:    #end
553:    #if ($attributes.get("highschool"))
554:     <div><span>High School:</span> $attributes.get("highschool")</div>
555:    #end
556:    #if ($attributes.get("college"))
557:     <div><span>College:</span> $attributes.get("college")</div>
558:    #end
559:    #if ($attributes.get("height"))
560:     <div><span>Height:</span> $attributes.get("height")</div>
561:    #end
562:    #if ($attributes.get("weight"))
563:     <div><span>Weight:</span> $attributes.get("weight")</div>
564:    #end
565:    #if ($attributes.get("major"))
566:     <div><span>Major:</span> $attributes.get("major")</div>
567:    #end
568:    #if ($attributes.get("custom1"))
569:     <div><span>Bat/Throw:</span> $attributes.get("custom1")</div>
570:    #end
571: </div>
572: 
573: ## DO NOT EDIT STYLE OR TEMPLATE ABOVE
574: *#
575: 
576: 
577: #if ($view == "gamelog" and $events)
578: <div class="stats-fullbox clearfix">
579: 
580: ## SECONDARY TABS FOR ONLY FOOTBALL,  BASEBALL AND BASKETBALL AND SOFTBALL
581: #if ($sport.enumCode == 0 || $sport.enumCode == 1 || $sport.enumCode == 2 || $sport.enumCode == 11)
582: <div class="stats-tabs-secondary clearfix">
583: <ul class="clearfix">
584: 
585: #if ($sport.enumCode == 0) ## Football
586: 
587: 	#printPosLink('qb', 'Passing', 'first')
588: 	#printPosLink('rb', 'Rushing', '')
589: 	#printPosLink('wr', 'Receiving', '')
590: 	#printPosLink('k', 'Kicking', '')
591: 	#printPosLink('p', 'Punting', '')
592: 	#printPosLink('kr', 'Returns', '')
593: 	#printPosLink('allp', 'All-Purpose', '')		
594: 	#printPosLink('d', $defLabel, 'last')
595: 
596: #elseif ($sport.enumCode == 1 || $sport.enumCode == 11) ## Baseball or Softball
597: 
598: 	#printPosLink('h', 'Hitting', 'first')
599: 	#printPosLink('p', 'Pitching', '')		
600: 	#printPosLink('f', 'Fielding', 'last')
601: 
602: #elseif ($sport.enumCode == 2) ## Basketball
603: 
604: 	#printPosLink('sh', 'Shooting', 'first')
605: 	#printPosLink('bc', 'Ball control', 'last')
606: 
607: #end
608: 
609: </ul>
610: </div> ## stats-tabs-secondary
611: 
612: #end ## sport check for secondary tabs
613: 
614: <table>
615:   <tr>
616:     <th>Date</th>
617:     <th>Opponent</th>
618:     <th>Score</th>
619:     #foreach ($gamelog in $gamelogs)
620:       <th>$gamelog</th>
621:     #end
622:   </tr>
623: 
624: #set ($counter = 0)
625: #foreach ($event in $events)
626:  #set ($counter = $counter + 1)
627:  #if ($counter % 2 == 0)
628:   #set ($row = "even")
629:  #else
630:   #set ($row = "odd")
631:  #end
632:   <tr class="${row}">
633:     <td>$formatter.formatDate($event.event.date, "MMM d")</td>
634:     <td>
635:     #if ($event.event.neutralSite.length() > 0) vs.
636:     #elseif (!$event.event.home) at
637:     #else ## nothing for a home game
638:     #end
639:     $event.event.opponent.name</td>
640:     <td align="center">
641:     #if ($event.event.statusCode >= 0)
642:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
643:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
644:       #else
645:       ${event.event.APResult}
646:       #end
647:     #else &nbsp; #end
648:     </td>
649:     #foreach ($gamelog in $gamelogs.keySet())
650:       #set ($value = "-")
651:       #set ($value = $formatter.formatNumber($event.stats.get($gamelog), $formats.get($gamelog)))
652:       <td align="center">
653:       #if ($value.length() > 0)$value#else - #end
654:       </td>
655:     #end
656:   </tr>
657: #end
658: </table>
659: </div>
660: 
661: $wiki.su
662: 
663: 
664: #elseif ($view == "career" and $seasons)
665: 
666: <div class="stats-fullbox clearfix">
667: 
668: ## SECONDARY TABS FOR ONLY FOOTBALL,  BASEBALL, SOFTBALL AND BASKETBALL
669: #if ($sport.enumCode == 0 || $sport.enumCode == 1 || $sport.enumCode == 2 || $sport.enumCode == 11)
670: <div class="stats-tabs-secondary clearfix">
671: <ul class="clearfix">
672: 
673: #if ($sport.enumCode == 0) ## Football
674: 
675: 	#printPosLink('qb', 'Passing', 'first')
676: 	#printPosLink('rb', 'Rushing', '')
677: 	#printPosLink('wr', 'Receiving', '')
678: 	#printPosLink('k', 'Kicking', '')
679: 	#printPosLink('p', 'Punting', '')
680: 	#printPosLink('kr', 'Returns', '')
681: 	#printPosLink('allp', 'All-Purpose', '')
682: 	#printPosLink('d', $defLabel, 'last')
683: 
684: #elseif ($sport.enumCode == 1 || $sport.enumCode == 11) ## Baseball or Softball
685: 
686: 	#printPosLink('h', 'Hitting', 'first')
687: 	#printPosLink('p', 'Pitching', '')
688:     #printPosLink('f', 'Fielding', 'last')
689: 
690: #elseif ($sport.enumCode == 2) ## Basketball
691: 
692: 	#printPosLink('sh', 'Shooting per game', 'first')
693: 	#printPosLink('st', 'Shooting', '')
694: 	#printPosLink('bc', 'Ball control per game', '')
695: 	#printPosLink('bt', 'Ball control', 'last')
696: 
697: #end
698: 
699: </ul>
700: </div> ## stats-tabs-secondary
701: #end ## sport check for secondary tabs
702: 
703: <table>
704:   <tr>
705:     <th>&nbsp;</th>
706:     #foreach ($brief in $briefs)
707:       <th>$brief</th>
708:     #end
709:   </tr>
710: 
711: $request.setAttribute("careerTotals", $career)
712: ## We track a map of the careers to see if we are missing any seasons
713: #set ($careerMap = {})
714: $request.setAttribute("careerMap", $careerMap)
715: #foreach ($season in $seasons)
716:   ## We need to include this season stats
717:   #set ($path = "${season.path}?tmpl=bio-career-template&name=${season.seasonName}&pos=${pos}&print=yes")
718:   $website.include($path)
719:   ## Check if we did not get stats for this season
720:   #if (!($careerMap.get($season.seasonName)) && $wiki.valid())
721:     <tr><td class="${mobileNS}fixed-column">${season.seasonName}</td><td colspan="${briefs.size()}" align="center">We could not find the "players" page in the ${season.seasonName} section.</td></tr>
722:   #end
723: #end
724: 
725: #split("Total", $career.overall, '')
726: 
727: </table>
728: $wiki.su
729: </div>
730: 
731: #elseif ($view == "splits" and $events)
732: 
733: <div class="stats-fullbox clearfix">
734: 
735: ## SECONDARY TABS FOR ONLY FOOTBALL,  BASEBALL AND BASKETBALL
736: #if ($sport.enumCode == 0 || $sport.enumCode == 1 || $sport.enumCode == 2 || $sport.enumCode == 11)
737: <div class="stats-tabs-secondary clearfix">
738: <ul class="clearfix">
739: 
740: #if ($sport.enumCode == 0) ## Football
741: 
742: 	#printPosLink('qb', 'Passing', 'first')
743: 	#printPosLink('rb', 'Rushing', '')
744: 	#printPosLink('wr', 'Receiving', '')
745: 	#printPosLink('k', 'Kicking', '')
746: 	#printPosLink('p', 'Punting', '')
747: 	#printPosLink('kr', 'Returns', '')
748: 	#printPosLink('allp', 'All-Purpose', '')
749: 	#printPosLink('d', $defLabel, 'last')
750: 
751: #elseif ($sport.enumCode == 1 || $sport.enumCode == 11) ## Baseball or Softball
752: 
753: 	#printPosLink('h', 'Hitting', 'first')
754: 	#printPosLink('p', 'Pitching', '')
755:     #printPosLink('f', 'Fielding', 'last')
756: 
757: #elseif ($sport.enumCode == 2) ## Basketball
758: 
759: 	#printPosLink('sh', 'Shooting per game', 'first')
760: 	#printPosLink('st', 'Shooting', '')
761: 	#printPosLink('bc', 'Ball control per game', '')
762: 	#printPosLink('bt', 'Ball control', 'last')
763: 
764: #end
765: 
766: </ul>
767: </div> ## stats-tabs-secondary
768: #end ## sport check for secondary tabs
769: 
770: <table>
771:   <tr>
772:     <th>&nbsp;</th>
773:     #foreach ($brief in $briefs)
774:       <th>$brief</th>
775:     #end
776:   </tr>
777: 
778: #split("Total", $splits.overall, "odd")
779: #split("Conference", $splits.conference, "even")
780: #split("Exhibition", $splits.exhibition, "odd")
781: 
782: #printHr()
783: 
784: #split("Home", $splits.home, "odd")
785: #split("Away", $splits.away, "even")
786: #split("Neutral", $splits.neutral, "odd")
787: 
788: #printHr()
789: 
790: #split("Wins", $splits.inWins, "odd")
791: #split("Losses", $splits.inLosses, "even")
792: #if ($sport.enumCode == 5) ## Ice hockey
793:   #split("Ties", $splits.inTies, "odd")
794: #end
795: 
796: #printHr()
797: 
798: ## Going to need to replace this with sound logic that does not use the sport to determine dates
799: #if ($sport.enumCode == 5) ## Ice hockey
800:  #split("September", $splits.september, "odd")
801:  #split("October", $splits.october, "even")
802:  #split("November", $splits.november, "odd")
803:  #split("December", $splits.december, "even")
804:  #split("January", $splits.january, "odd")
805:  #split("February", $splits.february, "even")
806:  #split("March", $splits.march, "odd")
807:  #split("April", $splits.april, "even")
808: #elseif ($sport.enumCode == 2) ## Basketball
809:  #split("November", $splits.november, "odd")
810:  #split("December", $splits.december, "even")
811:  #split("January", $splits.january, "odd")
812:  #split("February", $splits.february, "even")
813:  #split("March", $splits.march, "odd")
814: #elseif ($sport.enumCode == 3 or $sport.enumCode == 9) ## Soccer or field hockey
815:  #split("September", $splits.september, "odd")
816:  #split("October", $splits.october, "even")
817:  #split("November", $splits.november, "odd")
818:  #split("December", $splits.december, "even")
819: #elseif ($sport.enumCode == 0) ## Football
820:  #split("August", $splits.august, "odd")
821:  #split("September", $splits.september, "even")
822:  #split("October", $splits.october, "odd")
823:  #split("November", $splits.november, "even")
824:  #split("December", $splits.december, "odd")
825: #elseif ($sport.enumCode == 6 or $sport.enumCode == 10) ## Men's or women's lacrosse
826:  #split("January", $splits.january, "odd")
827:  #split("February", $splits.february, "even")
828:  #split("March", $splits.march, "odd")
829:  #split("April", $splits.april, "even")
830:  #split("May", $splits.may, "odd")
831: #end
832: 
833: </table>
834: $wiki.su
835: </div>
836: 
837: 
838: #else
839: ## Player profile
840: 
841: <div class="clearfix">
842: 
843: ## LAST SIX GAMES
844: <div class="stats-halfbox-left">
845: <table>
846:   <tr><th colspan="3">Recent Games</th></tr>
847: #set ($eventEnd = -1)
848: #foreach ($event in $events)
849:   #if ($event.event.result.resolved)
850:     #set ($eventEnd = $velocityCount)
851:   #end
852: #end
853: #set ($eventStart = $eventEnd - 5)
854: #if ($eventStart < 0) #set ($eventStart = 0) #end
855: 
856: #set ($counter = 0)
857: #foreach ($event in $events)
858: #if ($velocityCount >= $eventStart and $velocityCount <= $eventEnd)
859: 
860:  #set ($counter = $counter + 1)
861:  #if ($counter % 2 == 0)
862:   #set ($row = "even")
863:  #else
864:   #set ($row = "odd")
865:  #end
866: 
867:   <tr class="${row}">
868:     <td>$formatter.formatDate($event.event.date, "MMM d")</td>
869:     <td>
870:     #if ($event.event.neutralSite.length() > 0) vs.
871:     #elseif (!$event.event.home) at
872:     #else ## nothing for a home game
873:     #end
874:     $event.event.opponent.name</td>
875:     <td>
876:     #if ($event.event.statusCode >= 0)
877:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
878:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
879:       #else
880:       ${event.event.APResult}
881:       #end
882:     #end
883:   </tr>
884: #end ## if
885: #end
886: </table>
887: </div>
888: 
889: ## RANKING
890: $website.include("../players?tmpl=stats-bios-rank-template&rank=${playerId}&pos=${pos}")
891: 
892: </div> ## clearfix
893: 
894: #if ($synopsis.length() > 0)
895: <div class="clearfix">
896:  $!synopsis
897: </div>
898: #end
899: 
900: #set ($briefbio = "${page.url}-brief")
901: #set ($stats = "${page.url}-stats")
902: 
903: #if ($website.exists($briefbio))
904: <div class="clearfix">
905:   $website.include($briefbio)
906: </div>
907: #end
908: 
909: #if ($website.exists($stats))
910: <div class="clearfix">
911:   $website.include($stats)
912: </div>
913: #end
914: 
915: #end
916: 
917: </div> ## stats-wrapper
918: $wiki.su
919: 
920: </body>
921: </html>
922: 
923: #end

View: Mobile | Desktop