Template:Stats-batting-table
From SABR Encyclopedia
(Difference between revisions)
(prefixed local variable names with b-) |
|||
(8 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<div id="stats_batting" style="display: none;"> | <div id="stats_batting" style="display: none;"> | ||
- | {{#get_external_data:http://research.sabr.org/dbquery/sabrdz-query?content=player_batting&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|name_club=name_club|code_club=code_club|G=G|AB=AB|R=R|H=H|TB=TB| | + | {{#get_external_data:http://research.sabr.org/dbquery/sabrdz-query?content=player_batting&key={{#show: {{PAGENAME}} | ?person-key-sabr}}|csv with header|b-year=year|b-name_league=name_league|b-code_league=code_league|b-classification=classification|b-class_short=class_short|b-class_rank=class_rank|b-name_club=name_club|b-code_club=code_club|b-G=G|b-AB=AB|b-R=R|b-H=H|b-TB=TB| |
- | H2B=H2B|H3B=H3B|HR=HR|RBI=RBI|BB=BB|IBB=IBB|SO=SO|GDP=GDP|HP=HP|SH=SH|SF=SF|SB=SB|CS=CS|AVG=AVG|SLG=SLG|OBP=OBP}} | + | b-H2B=H2B|b-H3B=H3B|b-HR=HR|b-RBI=RBI|b-BB=BB|b-IBB=IBB|b-SO=SO|b-GDP=GDP|b-HP=HP|b-SH=SH|b-SF=SF|b-SB=SB|b-CS=CS|b-AVG=AVG|b-SLG=SLG|b-OBP=OBP}} |
{| class="stats-table" | {| class="stats-table" | ||
! Year | ! Year | ||
Line 28: | Line 28: | ||
! SLG | ! SLG | ||
! OBP {{#for_external_table:<nowiki/> | ! OBP {{#for_external_table:<nowiki/> | ||
- | {{!}}- class | + | {{!}}- class="stat-rank{{{b-class_rank}}}" |
- | {{!}} class="centered" {{!}} {{{year}}} | + | {{!}} class="centered" {{!}} {{{b-year}}} |
- | {{!}} class="centered" title="{{{name_league}}}" {{!}} {{{code_league}}} | + | {{!}} class="centered" title="{{{b-name_league}}}" {{!}} {{{b-code_league}}} |
- | {{!}} class="centered" title="{{{name_club}}}" {{!}} {{{code_club}}} | + | {{!}} class="centered" title="{{{b-name_club}}}" {{!}} {{{b-code_club}}} |
- | {{!}} class="centered" title="{{{classification}}}" {{!}} {{{class_short}}} | + | {{!}} class="centered" title="{{{b-classification}}}" {{!}} {{{b-class_short}}} |
- | {{!}} {{{G}}} | + | {{!}} {{{b-G}}} |
- | {{!}} {{{AB}}} | + | {{!}} {{{b-AB}}} |
- | {{!}} {{{R}}} | + | {{!}} {{{b-R}}} |
- | {{!}} {{{H}}} | + | {{!}} {{{b-H}}} |
- | {{!}} {{{TB}}} | + | {{!}} {{{b-TB}}} |
- | {{!}} {{{H2B}}} | + | {{!}} {{{b-H2B}}} |
- | {{!}} {{{H3B}}} | + | {{!}} {{{b-H3B}}} |
- | {{!}} {{{HR}}} | + | {{!}} {{{b-HR}}} |
- | {{!}} {{{RBI}}} | + | {{!}} {{{b-RBI}}} |
- | {{!}} {{{BB}}} | + | {{!}} {{{b-BB}}} |
- | {{!}} {{{IBB}}} | + | {{!}} {{{b-IBB}}} |
- | {{!}} {{{SO}}} | + | {{!}} {{{b-SO}}} |
- | {{!}} {{{GDP}}} | + | {{!}} {{{b-GDP}}} |
- | {{!}} {{{HP}}} | + | {{!}} {{{b-HP}}} |
- | {{!}} {{{SH}}} | + | {{!}} {{{b-SH}}} |
- | {{!}} {{{SF}}} | + | {{!}} {{{b-SF}}} |
- | {{!}} {{{SB}}} | + | {{!}} {{{b-SB}}} |
- | {{!}} {{{CS}}} | + | {{!}} {{{b-CS}}} |
- | {{!}} {{{AVG}}} | + | {{!}} {{{b-AVG}}} |
- | {{!}} {{{SLG}}} | + | {{!}} {{{b-SLG}}} |
- | {{!}} {{{OBP}}} }} | + | {{!}} {{{b-OBP}}} }} |
|} | |} | ||
</div> | </div> |