Difference between revisions of "Template:Baseballbox"
Jump to navigation
Jump to search
imported>Bob305 (replaced hyphen with ndash to avoid a redirect with win–loss record (pitching)) |
imported>WOSlinker (tidy style for better HTML5 compatibility) |
||
| Line 1: | Line 1: | ||
{| style="width:{{{size|100%}}}; background: {{{bg|transparent}}};" cellspacing="0" | {| style="width:{{{size|100%}}}; background: {{{bg|transparent}}};" cellspacing="0" | ||
|- | |- | ||
| − | | width=15% | + | | width=15% style="vertical-align:top;text-align:right;" rowspan=4 | {{{date}}} {{#if: {{{time<includeonly>|</includeonly>}}} | <br><small>{{{time}}}</small>}} {{#if: {{{round<includeonly>|</includeonly>}}} | <br><small>{{{round}}}</small> }} |
| − | | width=24% | + | | width=24% style="vertical-align:top;text-align:right;" | {{{team1}}} |
| − | | width=13% | + | | width=13% style="vertical-align:top;text-align:center;" | '''{{{score}}} {{#if:{{{mercy rule|}}}|<small>([[Mercy rule|F/{{{mercy rule}}}]])</small>}}{{#if:{{{extra innings|}}}|<small>([[Extra innings|F/{{{extra innings}}}]])</small>}}''' |
| − | | width=24% | + | | width=24% style="vertical-align:top;" | {{{team2}}} |
| − | | style=font-size:85% rowspan=4 | + | | style="font-size:85%;vertical-align:top;" rowspan=4 | {{{stadium}}} {{#if: {{{attendance<includeonly>|</includeonly>}}} | <br>Attendance: {{{attendance}}} }} {{#if: {{{umpire<includeonly>|</includeonly>}}} | <br>Umpires: {{{umpire}}} }} |
|- | |- | ||
| − | | style=font-size:85% align | + | | style="font-size:85%;text-align:right;" | {{#if: {{{team1wp<includeonly>|</includeonly>}}} | [[win–loss record (pitching)|WP]]: {{{team1wp}}} {{#if: {{{team1sp<includeonly>|</includeonly>}}} | <br>[[Save (baseball)|Sv]]: {{{team1sp}}} }} | {{#if: {{{team1lp|}}} | [[win–loss record (pitching)|LP]]: {{{team1lp}}} }} }} |
| − | | rowspan=2 | + | | rowspan=2 style="vertical-align:bottom;text-align:center;" | {{#if: {{{boxurl<includeonly>|</includeonly>}}} | [{{{boxurl|http://test.boxscore.com}}} Boxscore] }} |
| style=font-size:85% | {{#if: {{{team2wp|}}} | [[win–loss record (pitching)|WP]]: {{{team2wp}}} {{#if: {{{team2sp|}}} | <br>[[Save (baseball)|Sv]]: {{{team2sp}}} }} | {{#if: {{{team2lp<includeonly>|</includeonly>}}} | [[win–loss record (pitching)|LP]]: {{{team2lp}}} }} }} | | style=font-size:85% | {{#if: {{{team2wp|}}} | [[win–loss record (pitching)|WP]]: {{{team2wp}}} {{#if: {{{team2sp|}}} | <br>[[Save (baseball)|Sv]]: {{{team2sp}}} }} | {{#if: {{{team2lp<includeonly>|</includeonly>}}} | [[win–loss record (pitching)|LP]]: {{{team2lp}}} }} }} | ||
|- | |- | ||
{{#if: {{{team1hr<includeonly>|</includeonly>}}} {{{team2hr|}}} | | {{#if: {{{team1hr<includeonly>|</includeonly>}}} {{{team2hr|}}} | | ||
| − | {{!}} style=font-size:85% align | + | {{!}} style="font-size:85%;text-align:right;" {{!}} {{#if: {{{team1hr<includeonly>|</includeonly>}}} | [[Home run|HR]]: {{{team1hr}}} }} |
| − | {{!}} style=font-size:85% align | + | {{!}} style="font-size:85%;text-align:left;" {{!}} {{#if: {{{team2hr<includeonly>|</includeonly>}}} | [[Home run|HR]]: {{{team2hr}}} }} }} |
|}<noinclude>{{Documentation}} | |}<noinclude>{{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 13:41, 8 January 2015
| {{{date}}} {{{time}}} {{{round}}} |
{{{team1}}} | {{{score}}} | {{{team2}}} | {{{stadium}}} Attendance: {{{attendance}}} Umpires: {{{umpire}}} |
| WP: {{{team1wp}}} Sv: {{{team1sp}}} |
Boxscore | LP: {{{team2lp}}} | ||
| HR: {{{team1hr}}} | HR: {{{team2hr}}} |
Usage
{{Baseballbox
|date =
|time =
|round =
|team1 =
|team1wp =
|team1lp =
|team1sp =
|team1hr =
|score =
|mercy rule =
|extra innings =
|boxurl =
|team2 =
|team2wp =
|team2lp =
|team2sp =
|team2hr =
|stadium =
|attendance =
|umpire =
}}
Example
{{Baseballbox
|date = March 6, 2009
|team1 = {{bb-rt|TPE}}
|score = 0 – 9
|boxurl = http://web.worldbaseballclassic.com/gameday/index.jsp?gid=2009_03_06_tpeint_korint_1
|team2 = '''{{bb|KOR}}'''
|stadium = [[Tokyo Dome]], [[Japan]]
|attendance = 12,704}}
will show:
| March 6, 2009 | Chinese Taipei |
0 – 9 | Tokyo Dome, Japan Attendance: 12,704 | |
| Boxscore |
See also
- {{Linescore}} - For showing expanded results for per inning scores.
| The above documentation is transcluded from Template:Baseballbox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |