Difference between revisions of "Template:Baseballbox"

From blackwiki
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% valign=top align=right rowspan=4 | {{{date}}} {{#if: {{{time<includeonly>|</includeonly>}}} | <br><small>{{{time}}}</small>}} {{#if: {{{round<includeonly>|</includeonly>}}} | <br><small>{{{round}}}</small> }}
+
| 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% valign=top align=right | {{{team1}}}
+
| width=24% style="vertical-align:top;text-align:right;" | {{{team1}}}
| width=13% valign=top align=center | '''{{{score}}} {{#if:{{{mercy rule|}}}|<small>([[Mercy rule|F/{{{mercy rule}}}]])</small>}}{{#if:{{{extra innings|}}}|<small>([[Extra innings|F/{{{extra innings}}}]])</small>}}'''
+
| 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% valign=top | {{{team2}}}
+
| width=24% style="vertical-align:top;" | {{{team2}}}
| style=font-size:85% rowspan=4 valign=top | {{{stadium}}} {{#if: {{{attendance<includeonly>|</includeonly>}}} | <br>Attendance: {{{attendance}}} }} {{#if: {{{umpire<includeonly>|</includeonly>}}} | <br>Umpires: {{{umpire}}} }}
+
| 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=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}}} }} }}
+
| 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 valign=bottom align=center | {{#if: {{{boxurl<includeonly>|</includeonly>}}} | [{{{boxurl|http://test.boxscore.com}}} Boxscore] }}
+
| 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=right {{!}} {{#if: {{{team1hr<includeonly>|</includeonly>}}} | [[Home run|HR]]: {{{team1hr}}} }}
+
{{!}} style="font-size:85%;text-align:right;" {{!}} {{#if: {{{team1hr<includeonly>|</includeonly>}}} | [[Home run|HR]]: {{{team1hr}}} }}
{{!}} style=font-size:85% align=left {{!}} {{#if: {{{team2hr<includeonly>|</includeonly>}}} | [[Home run|HR]]: {{{team2hr}}} }} }}
+
{{!}} 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}}}
Template documentation[view] [edit] [history] [purge]

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  South Korea Tokyo Dome, Japan
Attendance: 12,704
Boxscore

See also

  • {{Linescore}} - For showing expanded results for per inning scores.