Difference between revisions of "Template:Infobox MLB All-Star Game"
Jump to navigation
Jump to search
imported>Frietjes m (Frietjes moved page Template:MLB All-Star Game to Template:Infobox MLB All-Star Game: naming convention for infobox templates) |
imported>Frietjes (update to use template:infobox and simplify the previous/next linking) |
||
| Line 1: | Line 1: | ||
| − | {| | + | {{infobox |
| − | | | + | | bodystyle = width:300px; font-size:90% |
| − | | | + | |
| − | | | + | | titlestyle = font-size:medium |
| − | | | + | | title = {{#if:{{{name|{{{Different Current|}}}}}} | {{{name|{{{Different Current}}}}}} | {{{year}}} Major League Baseball All-Star Game }} |
| − | | | + | |
| − | + | | imagestyle = background: #ffffff | |
| − | | | + | | image = {{{image|}}} |
| − | + | ||
| − | + | | data1 = {{baseball linescore table | |
| − | + | | visitor = {{{visitor|}}} | |
| − | + | | top1 = {{{top1|}}} | |
| − | + | | top2 = {{{top2|}}} | |
| − | + | | top3 = {{{top3|}}} | |
| − | + | | top4 = {{{top4|}}} | |
| − | + | | top5 = {{{top5|}}} | |
| − | + | | top6 = {{{top6|}}} | |
| − | + | | top7 = {{{top7|}}} | |
| − | + | | top8 = {{{top8|}}} | |
| − | + | | top9 = {{{top9|}}} | |
| − | + | | top10 = {{{top10|}}} | |
| − | + | | top11 = {{{top11|}}} | |
| − | + | | top12 = {{{top12|}}} | |
| − | + | | top13 = {{{top13|}}} | |
| − | + | | top14 = {{{top14|}}} | |
| − | + | | top15 = {{{top15|}}} | |
| − | + | | top16 = {{{top16|}}} | |
| − | + | | visitor_r = {{{visitor_r|}}} | |
| − | + | | visitor_h = {{{visitor_h|}}} | |
| − | + | | visitor_e = {{{visitor_e|}}} | |
| − | | | + | | home = {{{home|}}} |
| − | | | + | | bot1 = {{{bot1|}}} |
| − | | | + | | bot2 = {{{bot2|}}} |
| − | | | + | | bot3 = {{{bot3|}}} |
| − | | | + | | bot4 = {{{bot4|}}} |
| − | | | + | | bot5 = {{{bot5|}}} |
| − | | | + | | bot6 = {{{bot6|}}} |
| − | | | + | | bot7 = {{{bot7|}}} |
| − | | | + | | bot8 = {{{bot8|}}} |
| − | + | | bot9 = {{{bot9|}}} | |
| − | + | | bot10 = {{{bot10|}}} | |
| − | + | | bot11 = {{{bot11|}}} | |
| − | + | | bot12 = {{{bot12|}}} | |
| − | + | | bot13 = {{{bot13|}}} | |
| − | + | | bot14 = {{{bot14|}}} | |
| − | + | | bot15 = {{{bot15|}}} | |
| − | + | | bot16 = {{{bot16|}}} | |
| − | + | | home_r = {{{home_r|}}} | |
| − | + | | home_h = {{{home_h|}}} | |
| − | + | | home_e = {{{home_e|}}} | |
| − | + | }} | |
| − | | | + | |
| − | | | + | | label2 = Date |
| − | | | + | | data2 = {{{date|}}} |
| − | | | + | |
| − | | | + | | label4 = Venue |
| − | | | + | | data4 = {{{venue|}}} |
| − | | | + | |
| − | | | + | | label5 = City |
| − | + | | data5 = {{{city|}}} | |
| − | + | ||
| − | + | | label6 = Managers | |
| − | + | | data6 = {{#if:{{{VisitorManager|}}} | |
| − | --> | + | |{{{visitor}}} - {{{VisitorManager}}} {{#if:{{{VisitorManagerTeam|}}}|({{{VisitorManagerTeam}}})}}<br> |
| − | + | }}{{#if:{{{HomeManager|}}} | |
| − | + | |{{{home}}} - {{{HomeManager}}} {{#if:{{{HomeManagerTeam|}}}|({{{HomeManagerTeam}}})}} | |
| − | + | }} | |
| − | + | ||
| − | + | | label7 = MVP | |
| − | + | | data7 = {{#if: {{{MVP|}}}|{{{MVP}}} ({{{MVPTeam}}})}} | |
| − | + | ||
| − | + | | label8 = Attendance | |
| − | + | | data8 = {{{attendance|}}} | |
| − | + | ||
| − | + | ||
| − | + | | label9 = [[Ceremonial first pitch|First pitch]] | |
| − | + | | data9 = {{{firstpitch|}}} | |
| − | | | + | |
| − | + | | label10 = [[List of Major League Baseball All-Star Game broadcasters|Television]] | |
| − | + | | data10 = {{{television|}}} | |
| − | + | ||
| − | + | | label11 = [[List of Major League Baseball All-Star Game broadcasters|TV announcers]] | |
| − | + | | data11 = {{{tv_announcers|}}} | |
| − | + | ||
| − | + | | label12 = [[List of Major League Baseball All-Star Game broadcasters|Radio]] | |
| − | + | | data12 = {{{radio|}}} | |
| − | + | ||
| − | + | | label13 = [[List of Major League Baseball All-Star Game broadcasters|Radio announcers]] | |
| − | + | | data13 = {{{radio_announcers|}}} | |
| − | + | ||
| − | + | | belowstyle = border-top:solid #aaa 1px | |
| − | + | | below = | |
| − | + | <table style="width:100%; background:transparent; font-weight:bold"><tr> | |
| − | + | <td style="text-align:left; width:25%">{{#if:{{{previous|{{{Different Previous|}}}}}} | |
| − | + | | < {{{previous|{{{Different Previous}}}}}} | |
| − | + | | {{#ifexist:{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}} Major League Baseball All-Star Game | |
| − | + | | < [[{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}} Major League Baseball All-Star Game|{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}}]] | |
| − | + | | <!-- no previous game --> | |
| − | + | }} | |
| − | + | }}</td> | |
| − | + | <td style="text-align:center; width:50%">[[Major League Baseball All-Star Game]]</td> | |
| − | + | <td style="text-align:right; width:25%">{{#if:{{{next|{{{Different Next|}}}}}} | |
| − | + | | {{{next|{{{Different Next}}}}}} > | |
| − | + | | {{#ifexist:{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} Major League Baseball All-Star Game | |
| − | + | | [[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} Major League Baseball All-Star Game|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}]] > | |
| − | + | | {{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}]] > | |
| + | }} | ||
| + | }}</td> | ||
| + | </tr></table> | ||
| + | }}{{#ifeq:{{{Different Current|§}}}{{{Different Next|§}}}{{{Different Previous|§}}}|§§§||[[Category:Infobox MLB All-Star Game template using undocumented parameters]]}}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Revision as of 18:00, 5 December 2012
| Template:Baseball linescore table | ||||
| ||||
[[Category:Infobox templates|Template:Remove first word]]
Usage
{{Infobox MLB All-Star Game
| image =
| year =
| visitor =
| top1 =
| top2 =
| top3 =
| top4 =
| top5 =
| top6 =
| top7 =
| top8 =
| top9 =
| visitor_r =
| visitor_h =
| visitor_e =
| home =
| bot1 =
| bot2 =
| bot3 =
| bot4 =
| bot5 =
| bot6 =
| bot7 =
| bot8 =
| bot9 =
| home_r =
| home_h =
| home_e =
| date =
| venue =
| city =
| VisitorManager =
| VisitorManagerTeam =
| HomeManager =
| HomeManagerTeam =
| MVP =
| MVPTeam =
| TVstation =
| TVcommentators =
| attendance =
| firstpitch =
}}
Basic example
{{Infobox MLB All-Star Game
| image = [[file:example.jpg]]
| year = 2007
| visitor = National
| top1 = 0
| top2 = 0
| top3 = 0
| top4 = 0
| top5 = 0
| top6 = 0
| top7 = 2
| top8 = 0
| top9 = 1
| top10 = 1
| top11 = 1
| top12 = 1
| visitor_r = 6
| visitor_h = 17
| visitor_e = 0
| home = American
| bot1 = 1
| bot2 = 0
| bot3 = 0
| bot4 = 0
| bot5 = 0
| bot6 = 0
| bot7 = 2
| bot8 = 0
| bot9 = 1
| bot10 = 1
| bot11 = 1
| bot12 = 2
| home_r = 8
| home_h = 11
| home_e = 1
| date = June 28, 2007
| venue = Metrodome
| city = Minneapolis
| VisitorManager = Lou Piniella
| VisitorManagerTeam = [[Chicago Cubs|CHI]]
| HomeManager = Ron Gardenhire
| HomeManagerTeam = [[Minnesota Twins|MIN]]
| MVP = Justin Morneau
| MVPTeam = [[Minnesota Twins|MIN]]
| TVstation = FOX
| TVcommentators = Jack Buck, Tim McCarver
| attendance = 20,000
| firstpitch = Tony Gwynn
}}
Example for years with two games
{{Infobox MLB All-Star Game
| image = [[File:1959MLBAllStarGame2.png|175px]]
| year = 1959
| name = 1959 Major League Baseball All-Star Game (second game)
| visitor = '''[[American League]]'''
| top1 = 0
| top2 = 1
| top3 = 2
| top4 = 0
| top5 = 0
| top6 = 0
| top7 = 1
| top8 = 1
| top9 = 0
| visitor_r = 5
| visitor_h = 6
| visitor_e = 0
| home = [[National League]]
| bot1 = 1
| bot2 = 0
| bot3 = 0
| bot4 = 0
| bot5 = 1
| bot6 = 0
| bot7 = 1
| bot8 = 0
| bot9 = 0
| home_r = 3
| home_h = 6
| home_e = 3
| date = August 3, 1959
| venue = [[Los Angeles Memorial Coliseum]]
| city = [[Los Angeles]], [[California]]
| VisitorManager = [[Casey Stengel]]
| VisitorManagerTeam = [[New York Yankees|NYY]]
| HomeManager = [[Fred Haney]]
| HomeManagerTeam = [[Atlanta Braves|MIL]]
| television = [[Major League Baseball on NBC|NBC]]
| tv_announcers = [[Mel Allen]] and [[Vin Scully]]
| radio = [[Major League Baseball on NBC Radio|NBC]]
| radio_announcers = [[Bob Neal (Cleveland sportscaster)|Bob Neal]] and [[Russ Hodges]]
| attendance = 55,105
| firstpitch =
| previous = [[1959 Major League Baseball All-Star Game (first game)|1959 (first game)]]
| next = [[1960 Major League Baseball All-Star Game (first game)|1960 (first game)]]
}}
de:Vorlage:Infobox MLB All-Star Game fr:Modèle:Infobox MLB All-Star Game zh:模板:MLB All-Star Game
| The above documentation is transcluded from Template:Infobox MLB All-Star Game/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |