Template:PlayerRecords: Difference between revisions

From UFFL Wiki
(Initial; needs work)
 
m (Uffladmin moved page Template:PlayerRecords/QB to Template:PlayerRecords without leaving a redirect: Works for all positions)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#get_db_data:
{{#get_db_data:
  db = ufflData
  db = ufflData
  |from = PlayerRecords
  |from = playerRecordsLabeled
  |where = PlayerID='{{{PID|}}}' AND RecordType='0'
  |where = playerid='{{{PID|}}}' AND recordtype='0'
  |order by= Season ASC
  |order by= recordid ASC
|data=recordName=RecordID,wk=Week,season=Season,team=TeamID,vsteam=VsTeamID,recordValue=RecordValue
|data=name=recordname,wk=week,season=season,team=teamabbr,vsteam=vsteamabbr,value=recordvalue
}}
}}
{| style="border:0; font-size:12px; cellpadding:0.5; cellspacing:0.5; width: 100%" class="wikitable sortable"  
{| style="border:0; font-size:12px; cellpadding:0.5; cellspacing:0.5; width: 100%" class="wikitable sortable"  
Line 17: Line 17:
! Value{{#for_external_table:<nowiki/>
! Value{{#for_external_table:<nowiki/>
{{!}}-
{{!}}-
{{!}} {{{recordName}}}
{{!}} {{{name}}}
{{!}} {{{season}}}
{{!}} {{{season}}}
{{!}} {{{wk}}}
{{!}} {{{wk}}}
{{!}} {{{team}}}
{{!}} {{{team}}}
{{!}} {{{vsteam}}}
{{!}} {{{vsteam}}}
{{!}} {{{recordValue}}}
{{!}} {{{value}}}
}}
}}
|}
|}{{#clear_external_data:}}
<!--- For whatever dumb reason, when recordtype equals 1, the view does not add those records to the view. So this is blanked out until that issue is resolved.
{{#get_db_data:
db = ufflData
|from = playerRecordsLabeled
|where = playerid='{{{PID|}}}' AND recordtype='1'
|order by= recordid ASC
|data=name=recordname,wk=week,season=season,team=teamabbr,vsteam=vsteamabbr,value=recordvalue
}}
{| style="border:0; font-size:12px; cellpadding:0.5; cellspacing:0.5; width: 100%" class="wikitable sortable"
|-
! colspan="6" style="text-align: left; font-size: 16px"|Season Records
|-
! Record
! Season
! Week
! Team
! vs. Team
! Value{{#for_external_table:<nowiki/>
{{!}}-
{{!}} {{{name}}}
{{!}} {{{season}}}
{{!}} {{{wk}}}
{{!}} {{{team}}}
{{!}} {{{vsteam}}}
{{!}} {{{value}}}
}}
|}{{#clear_external_data:}}--->
{{#get_db_data:
db = ufflData
|from = playerRecordsLabeled
|where = playerid='{{{PID|}}}' AND recordtype='2'
|order by= recordid ASC
|data=name=recordname,season=season,team=teamabbr,vsteam=vsteamabbr,value=recordvalue
}}
{| style="border:0; font-size:12px; cellpadding:0.5; cellspacing:0.5; width: 100%" class="wikitable sortable"
|-
! colspan="5" style="text-align: left; font-size: 16px"|Playoff Records
|-
! Record
! Season
! Team
! vs. Team
! Value{{#for_external_table:<nowiki/>
{{!}}-
{{!}} {{{name}}}
{{!}} {{{season}}}
{{!}} {{{team}}}
{{!}} {{{vsteam}}}
{{!}} {{{value}}}
}}
|}{{#clear_external_data:}}

Latest revision as of 02:12, 30 June 2021

Game Records
Record Season Week Team vs. Team Value
Playoff Records
Record Season Team vs. Team Value