Template:Baseballbox: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
(Created page with "{| style="width:{{{size|100%}}}; background: {{{bg|transparent}}};" cellspacing="0" |- | width=15% style="vertical-align:top;text-align:right;" rowspan=4 | {{{date}}} {{#if: {...")
 
No edit summary
 
Line 2: Line 2:
|-
|-
| 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=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% style="vertical-align:top;text-align:right;" | {{{team1}}}
| width=24% style="vertical-align:top;text-align:right;" | '''{{{team1}}}'''
| 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=13% style="vertical-align:top;text-align:center;" | '''{{{score}}} {{#if:{{{mercy rule|}}}|<small>([[wikipedia:Mercy rule|F/{{{mercy rule}}}]])</small>}}{{#if:{{{extra innings|}}}|<small>([[wikipedia:Extra innings|F/{{{extra innings}}}]])</small>}}'''
| width=24% style="vertical-align:top;" | {{{team2}}}
| width=24% style="vertical-align:top;" | '''{{{team2}}}'''
| 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%;vertical-align:top;" rowspan=4 | {{{stadium}}} {{#if: {{{attendance<includeonly>|</includeonly>}}} | <br>Attendance: {{{attendance}}} }} {{#if: {{{umpire<includeonly>|</includeonly>}}} | <br>Umpires: {{{umpire}}} }}
|-
|-
| 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}}} }} }}
| style="font-size:85%;text-align:right;" | {{#if: {{{team1wp<includeonly>|</includeonly>}}} | [[wikipedia:Win–loss record (pitching)|WP]]: {{{team1wp}}} {{#if: {{{team1sp<includeonly>|</includeonly>}}} | <br>[[wikipedia:Save (baseball)|Sv]]: {{{team1sp}}} }} | {{#if: {{{team1lp|}}} | [[wikipedia:Win–loss record (pitching)|LP]]: {{{team1lp}}} }} }}
| rowspan=2 style="vertical-align:bottom;text-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|}}} | [[wikipedia:Win–loss record (pitching)|WP]]: {{{team2wp}}} {{#if: {{{team2sp|}}} | <br>[[wikipedia:Save (baseball)|Sv]]: {{{team2sp}}} }} | {{#if: {{{team2lp<includeonly>|</includeonly>}}} | [[wikipedia:Win–loss record (pitching)|LP]]: {{{team2lp}}} }} }}
|-
|-
{{#if: {{{team1hr<includeonly>|</includeonly>}}} {{{team2hr|}}} |  
{{#if: {{{team1hr<includeonly>|</includeonly>}}} {{{team2hr|}}} |  
{{!}} style="font-size:85%;text-align:right;" {{!}} {{#if: {{{team1hr<includeonly>|</includeonly>}}} | [[Home run|HR]]: {{{team1hr}}} }}
{{!}} style="font-size:85%;text-align:right;" {{!}} {{#if: {{{team1hr<includeonly>|</includeonly>}}} | [[wikipedia:Home run|HR]]: {{{team1hr}}} }}
{{!}} style="font-size:85%;text-align:left;" {{!}} {{#if: {{{team2hr<includeonly>|</includeonly>}}} | [[Home run|HR]]: {{{team2hr}}} }} }}
{{!}} style="font-size:85%;text-align:left;" {{!}} {{#if: {{{team2hr<includeonly>|</includeonly>}}} | [[wikipedia:Home run|HR]]: {{{team2hr}}} }} }}
|}<noinclude>{{Documentation}}
|}<noinclude>{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 18:31, 7 September 2018

{{{date}}}
{{{time}}}
{{{round}}}
{{{team1}}} {{{score}}} {{{team2}}} {{{stadium}}}
Attendance: {{{attendance}}}
Umpires: {{{umpire}}}
WP: {{{team1wp}}}
Sv: {{{team1sp}}}
Boxscore LP: {{{team2lp}}}
HR: {{{team1hr}}} HR: {{{team2hr}}}
[edit] [purge] Template documentation

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 Template:Bb-rt 0 – 9 'Template:Bb' Tokyo Dome, Japan
Attendance: 12,704
Boxscore

See also

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