Template:Stats-pitching-table

From SABR Encyclopedia

(Difference between revisions)
Jump to: navigation, search
(prefixed local variable names with p-)
(I can't find it, but there must be a typo in there.)
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|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
+
{{#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
-
|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
+
|name_last=name_last|name_first=name_first|bats=bats|throws=throws|name_club=name_club|code_club=code_club
-
|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
+
|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-ibb=ibb|p-so=so|p-wp=wp|p-bk=bk|p-ERA=ERA}}
+
|ibb=ibb|so=so|wp=wp|bk=bk|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{{{p-class_rank}}}"
+
{{!}}- class="stat-rank{{{class_rank}}}"
-
{{!}} class="centered" {{!}} {{{p-year}}}
+
{{!}} class="centered" {{!}} {{{year}}}
-
{{!}} class="centered" title="{{{p-name_league}}}" {{!}} {{{p-code_league}}}
+
{{!}} class="centered" title="{{{name_league}}}" {{!}} {{{code_league}}}
-
{{!}} class="centered" title="{{{p-name_club}}}" {{!}} {{{p-code_club}}}
+
{{!}} class="centered" title="{{{name_club}}}" {{!}} {{{code_club}}}
-
{{!}} class="centered" title="{{{p-classification}}}" {{!}} {{{p-class_short}}}
+
{{!}} class="centered" title="{{{classification}}}" {{!}} {{{class_short}}}
-
{{!}} {{{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}}}
-
{{!}} {{{p-ibb}}}
+
{{!}} {{{ibb}}}
-
{{!}} {{{p-so}}}
+
{{!}} {{{so}}}
-
{{!}} {{{p-wb}}}
+
{{!}} {{{wb}}}
-
{{!}} {{{p-bk}}}
+
{{!}} {{{bk}}}
-
{{!}} {{{p-ERA}}} }}
+
{{!}} {{{ERA}}} }}
|}
|}
</div>
</div>

Revision as of 01:13, 3 November 2009

Personal tools