Tyler Carlsgaard | #41 | LB | Coast Guard

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

View: Mobile | Desktop