Template:Stats-pitching-table
From SABR Encyclopedia
(Difference between revisions)
(capitalized ERA) |
(prefixed local variable names with p-) |
||
Line 1: | Line 1: | ||
<div id="stats_pitching" style="display: none;"> | <div id="stats_pitching" style="display: none;"> | ||
- | {{#get_external_data:http://research.sabr.org/dbquery/sabrdz-query?content=player_pitching&key={{#show: {{PAGENAME}} | ?person-key-sabr}}|csv with header|year=year|name_league=name_league|code_league=code_league|classification=classification|class_short=class_short|class_rank=class_rank|milbid=milbid | + | {{#get_external_data:http://research.sabr.org/dbquery/sabrdz-query?content=player_pitching&key={{#show: {{PAGENAME}} | ?person-key-sabr}}|csv with header|p-year=year|p-name_league=name_league|p-code_league=code_league|p-classification=classification|p-class_short=class_short|p-class_rank=class_rank|p-milbid=milbid |
- | |name_last=name_last|name_first=name_first|bats=bats|throws=throws|name_club=name_club|code_club=code_club | + | |p-name_last=name_last|p-name_first=name_first|p-bats=bats|p-throws=throws|p-name_club=name_club|p-code_club=code_club |
- | |gp=gp|gs=gs|cg=cg|sho=sho|gf=gf|w=w|l=l|sv=sv|ip=ip|tbf=tbf|ab=ab|h=h|r=r|er=er|hr=hr|sh=sh|sf=sf|hb=hb|bb=bb | + | |p-gp=gp|p-gs=gs|p-cg=cg|p-sho=sho|p-gf=gf|p-w=w|p-l=l|p-sv=sv|p-ip=ip|p-tbf=tbf|p-ab=ab|p-h=h|p-r=r|p-er=er|p-hr=hr|p-sh=sh|p-sf=sf|p-hb=hb|p-bb=bb |
- | |ibb=ibb|so=so|wp=wp|bk=bk|ERA=ERA}} | + | |p-ibb=ibb|p-so=so|p-wp=wp|p-bk=bk|p-ERA=ERA}} |
{| class="stats-table" | {| class="stats-table" | ||
! Year | ! Year | ||
Line 33: | Line 33: | ||
! BK | ! BK | ||
! ERA {{#for_external_table:<nowiki/> | ! ERA {{#for_external_table:<nowiki/> | ||
- | {{!}}- class="stat-rank{{{class_rank}}}" | + | {{!}}- class="stat-rank{{{p-class_rank}}}" |
- | {{!}} class="centered" {{!}} {{{year}}} | + | {{!}} class="centered" {{!}} {{{p-year}}} |
- | {{!}} class="centered" title="{{{name_league}}}" {{!}} {{{code_league}}} | + | {{!}} class="centered" title="{{{p-name_league}}}" {{!}} {{{p-code_league}}} |
- | {{!}} class="centered" title="{{{name_club}}}" {{!}} {{{code_club}}} | + | {{!}} class="centered" title="{{{p-name_club}}}" {{!}} {{{p-code_club}}} |
- | {{!}} class="centered" title="{{{classification}}}" {{!}} {{{class_short}}} | + | {{!}} class="centered" title="{{{p-classification}}}" {{!}} {{{p-class_short}}} |
- | {{!}} {{{gp}}} | + | {{!}} {{{p-gp}}} |
- | {{!}} {{{gs}}} | + | {{!}} {{{p-gs}}} |
- | {{!}} {{{cg}}} | + | {{!}} {{{p-cg}}} |
- | {{!}} {{{sho}}} | + | {{!}} {{{p-sho}}} |
- | {{!}} {{{gf}}} | + | {{!}} {{{p-gf}}} |
- | {{!}} {{{w}}} | + | {{!}} {{{p-w}}} |
- | {{!}} {{{l}}} | + | {{!}} {{{p-l}}} |
- | {{!}} {{{sv}}} | + | {{!}} {{{p-sv}}} |
- | {{!}} {{{ip}}} | + | {{!}} {{{p-ip}}} |
- | {{!}} {{{tbf}}} | + | {{!}} {{{p-tbf}}} |
- | {{!}} {{{ab}}} | + | {{!}} {{{p-ab}}} |
- | {{!}} {{{h}}} | + | {{!}} {{{p-h}}} |
- | {{!}} {{{r}}} | + | {{!}} {{{p-r}}} |
- | {{!}} {{{er}}} | + | {{!}} {{{p-er}}} |
- | {{!}} {{{hr}}} | + | {{!}} {{{p-hr}}} |
- | {{!}} {{{sh}}} | + | {{!}} {{{p-sh}}} |
- | {{!}} {{{sf}}} | + | {{!}} {{{p-sf}}} |
- | {{!}} {{{hb}}} | + | {{!}} {{{p-hb}}} |
- | {{!}} {{{bb}}} | + | {{!}} {{{p-bb}}} |
- | {{!}} {{{ibb}}} | + | {{!}} {{{p-ibb}}} |
- | {{!}} {{{so}}} | + | {{!}} {{{p-so}}} |
- | {{!}} {{{wb}}} | + | {{!}} {{{p-wb}}} |
- | {{!}} {{{bk}}} | + | {{!}} {{{p-bk}}} |
- | {{!}} {{{ERA}}} }} | + | {{!}} {{{p-ERA}}} }} |
|} | |} | ||
</div> | </div> |