Difference between revisions of "Template:Basketballbox"

From blackwiki
Jump to navigation Jump to search
imported>Howard the Duck
m
imported>Howard the Duck
(fixing screw ups, undid all recent edits)
Line 1: Line 1:
 
{| valign=center style="width: 100%; background: {{{bg|transparent}}};" cellspacing="0"  
 
{| valign=center style="width: 100%; background: {{{bg|transparent}}};" cellspacing="0"  
 
|-
 
|-
|align=center valign=top rowspan=4 width={{#if:{{{TV|}}}|12%|14%}}|{{{date|}}}{{ #if: {{{time|}}}| <br><small> {{{time}}}</small> | }}
+
|align=center valign=top rowspan=4 width={{#if:{{{TV|}}}|11.5%|14.5%}}|{{{date|}}}{{ #if: {{{time|}}}| <br><small> {{{time}}}</small> | }}
 
|width=6% style=font-size:85% rowspan=4 valign=top align=left |{{ #if: {{{report|}}} |{{{report}}}| }}
 
|width=6% style=font-size:85% rowspan=4 valign=top align=left |{{ #if: {{{report|}}} |{{{report}}}| }}
 
{{#if:{{{team1|}}}|
 
{{#if:{{{team1|}}}|
 
{{!}}colspan=3 align=center valign=top {{!}}{{{team1}}} {{#if: {{{score1|}}}|{{{score1}}}, |vs.}} {{{team2}}} {{{score2| }}}
 
{{!}}colspan=3 align=center valign=top {{!}}{{{team1}}} {{#if: {{{score1|}}}|{{{score1}}}, |vs.}} {{{team2}}} {{{score2| }}}
}}
+
}}{{#if: {{{teamB|}}}|
|width=2% style=font-size:85% valign=top align=left |{{ #if: {{{overtime|}}} |'''{{{overtime}}}'''&nbsp;| }}
+
{{!}}width={{#if:{{{TV|}}}|21%|22%}} align=right valign=top {{!}}{{{teamA|}}}{{!!}}width={{#if:{{{TV|}}}|8%|9.5%}} align=center valign=top {{!}}{{{scoreA|&nbsp;}}}{{ #if: {{{scoreB|}}} |&ndash;{{{scoreB}}}|vs.}}{{!!}}width={{#if:{{{TV|}}}|21%|22%}} align=left valign=top {{!}}{{{teamB|}}} }}
{{#if: {{{teamB|}}}|
 
{{!}}width={{#if:{{{TV|}}}|20%|22%}} align=right valign=top {{!}}{{{teamA|}}}{{!!}}width={{#if:{{{TV|}}}|20%|22%}} align=center valign=top {{!}}width={{#if:{{{TV|}}}|7%|8%}}{{!}}{{{scoreA|&nbsp;}}}{{ #if: {{{scoreB|}}} |&ndash;{{{scoreB}}}|vs.}}{{!!}}width={{#if:{{{TV|}}}|20%|22%}} align=left valign=top {{!}}{{{teamB|}}} }}
 
 
|width=26% style=font-size:85% rowspan=4 valign=top|{{{place|}}}{{ #if: {{{attendance|}}} |<br>'''Attendance:''' {{{attendance}}} | }}{{ #if: {{{referee|}}} |<br>'''Referees:''' {{{referee}}} | }}
 
|width=26% style=font-size:85% rowspan=4 valign=top|{{{place|}}}{{ #if: {{{attendance|}}} |<br>'''Attendance:''' {{{attendance}}} | }}{{ #if: {{{referee|}}} |<br>'''Referees:''' {{{referee}}} | }}
{{#if:{{{TV|}}}|
+
{{ #if: {{{TV|}}} |
{{!}}width=7% style=font-size:85% rowspan=4 valign=top align=right{{!}}{{{TV}}}
+
{{!}}width=6.5% style=font-size:85% rowspan=4 valign=top align=right{{!}}{{{TV}}}
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{Q1|}}}|
 
{{#if:{{{Q1|}}}|
{{!}}align=center colspan=4 valign=top style=font-size:85%{{!}}{{ #if: {{{Q1|}}} |'''Scoring by quarter:''' {{{Q1}}} | }}{{ #if: {{{Q2|}}} |, {{{Q2}}} | }}{{ #if: {{{Q3|}}} |, {{{Q3}}} | }}{{ #if: {{{Q4|}}} |, {{{Q4}}}| }}{{ #if: {{{OT|}}} |&nbsp;'''OT:''' {{{OT}}} | }}
+
{{!}}align=center colspan=3 valign=top style=font-size:85%{{!}}{{ #if: {{{Q1|}}} |'''Scoring by quarter:''' {{{Q1}}} | }}{{ #if: {{{Q2|}}} |, {{{Q2}}} | }}{{ #if: {{{Q3|}}} |, {{{Q3}}} | }}{{ #if: {{{Q4|}}} |, {{{Q4}}}| }}{{ #if: {{{OT|}}} |&nbsp;'''OT:''' {{{OT}}} | }}
{{!}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if:{{{H1|}}}|
 
{{#if:{{{H1|}}}|
{{!}}align=center colspan=4 valign=top style=font-size:85%{{!}}{{ #if: {{{H1|}}} |'''Scoring by half:''' {{{H1}}} | }}{{ #if: {{{H2|}}} |, {{{H2}}}| }}{{ #if: {{{OT|}}} |&nbsp;'''OT:''' {{{OT}}} | }}
+
{{!}}align=center colspan=3 valign=top style=font-size:85%{{!}}{{ #if: {{{H1|}}} |'''Scoring by half:''' {{{H1}}} | }}{{ #if: {{{H2|}}} |, {{{H2}}}| }}{{ #if: {{{OT|}}} |&nbsp;'''OT:''' {{{OT}}} | }}
{{!}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if:{{{points1|}}}|
 
{{#if:{{{points1|}}}|
{{!}}style=font-size:85% width={{#if:{{{teamA|}}}|23%|22%}} align=right{{!}}{{ #if: {{{points1|}}} |'''Pts:''' {{{points1}}}| }}{{ #if: {{{rebounds1|}}}|<br>'''Rebs:''' {{{rebounds1}}}| }}{{ #if: {{{assist1|}}} |<br>'''Asts:''' {{{assist1}}}| }}{{ #if: {{{otherstat1|}}} |<br>{{{otherstat1}}}| }}
+
{{!}}style=font-size:85% width={{#if:{{{teamA|}}}|20.5%|24%}} align=right{{!}}{{ #if: {{{points1|}}} |'''Pts:''' {{{points1}}}| }}{{ #if: {{{rebounds1|}}}|<br>'''Rebs:''' {{{rebounds1}}}| }}{{ #if: {{{assist1|}}} |<br>'''Asts:''' {{{assist1}}}| }}{{ #if: {{{otherstat1|}}} |<br>{{{otherstat1}}}| }}
{{!}}width={{#if:{{{teamA|}}}|8%|1%}}{{!}}
+
{{!}}width={{#if:{{{teamA|}}}|7%|1%}}{{!}}
{{!}}style=font-size:85% width={{#if:{{{teamA|}}}|23%|22%}} align=left{{!}}{{ #if: {{{points2|}}} |'''Pts:''' {{{points2}}}| }}{{ #if: {{{rebounds2|}}}|<br>'''Rebs:''' {{{rebounds2|}}}| }}{{ #if: {{{assist2|}}} |<br>'''Asts:''' {{{assist2|}}}| }}{{ #if: {{{otherstat2|}}} |<br>{{{otherstat2|}}}| }}
+
{{!}}style=font-size:85% width={{#if:{{{teamA|}}}|20.5%|24%}} align=left{{!}}{{ #if: {{{points2|}}} |'''Pts:''' {{{points2}}}| }}{{ #if: {{{rebounds2|}}}|<br>'''Rebs:''' {{{rebounds2|}}}| }}{{ #if: {{{assist2|}}} |<br>'''Asts:''' {{{assist2|}}}| }}{{ #if: {{{otherstat2|}}} |<br>{{{otherstat2|}}}| }}
{{!}}
+
{{!}}-
 
}}
 
}}
 
{{#if:{{{series|}}}|
 
{{#if:{{{series|}}}|
{{!}}-
+
{{!}}colspan=3 align=center{{!}}{{ #if: {{{series|}}} |'''''{{{series}}}'''''</div>| }}
{{!}}colspan=4 align=center{{!}}{{ #if: {{{series|}}} |'''''{{{series}}}'''''</div>| }}
 
 
}}
 
}}
 
|}<noinclude>
 
|}<noinclude>
Line 129: Line 124:
 
  | score1 =  
 
  | score1 =  
 
  | score2 =  
 
  | score2 =  
| overtime = Adds "OT" at the immediate left of the place parameter. Works in NBA/U.S. NCAA style. For European style, affix "(OT)" at the end of score2.
 
 
  | Q1 =  
 
  | Q1 =  
 
  | Q2 =  
 
  | Q2 =  

Revision as of 07:30, 17 May 2009

NBA style

{{{date}}}
{{{time}}}
{{{report}}} {{{team1}}} {{{score1}}}, {{{team2}}} {{{score2}}} {{{place}}}
Attendance: {{{attendance}}}
Referees: {{{referee}}}
{{{TV}}}
Scoring by quarter: {{{Q1}}}, {{{Q2}}}, {{{Q3}}}, {{{Q4}}} OT: {{{OT}}}
Pts: {{{points1}}}
Rebs: {{{rebounds1}}}
Asts: {{{assist1}}}
{{{otherstat1}}}
Pts: {{{points2}}}
Rebs: {{{rebounds2}}}
Asts: {{{assist2}}}
{{{otherstat2}}}
{{{series}}}

U.S. NCAA style

{{{date}}}
{{{time}}}
{{{report}}} {{{team1}}} {{{score1}}}, {{{team2}}} {{{score2}}} {{{place}}}
Attendance: {{{attendance}}}
Referees: {{{referee}}}
{{{TV}}}
Scoring by half: {{{H1}}}, {{{H2}}}
Pts: {{{points1}}}
Rebs: {{{rebounds1}}}
Asts: {{{assist1}}}
{{{otherstat1}}}
Pts: {{{points2}}}
Rebs: {{{rebounds2}}}
Asts: {{{assist2}}}
{{{otherstat2}}}
{{{series}}}

European style

{{{date}}}
{{{time}}}
{{{report}}} {{{teamA}}} 0*–1* {{{teamB}}} {{{place}}}
Attendance: {{{attendance}}}
Referees: {{{referee}}}
{{{TV}}}
Scoring by quarter: {{{Q1}}}, {{{Q2}}}, {{{Q3}}}, {{{Q4}}} OT: {{{OT}}}
Pts: {{{points1}}}
Rebs: {{{rebounds1}}}
Asts: {{{assist1}}}
{{{otherstat1}}}
Pts: {{{points2}}}
Rebs: {{{rebounds2}}}
Asts: {{{assist2}}}
{{{otherstat2}}}
{{{series}}}

*Notes: 0 = {{{scoreA}}}; 1 = {{{scoreB}}}


{{basketballbox
 | bg = 
 | date = 
 | time = 
 | report = 
 | team1 = 
 | score1 = 
 | score2 = 
 | Q1 = 
 | Q2 = 
 | Q3 = 
 | Q4 = 
 | H1 = 
 | H2 = 
 | OT = 
 | team2 = 
 | points1 = 
 | rebounds1 = 
 | assist1 = 
 | otherstat1 = 
 | points2 = 
 | rebounds2 = 
 | assist2 = 
 | otherstat2 
 | place = 
 | attendance = 
 | referee = 
 | TV = 
 | series = 
}}
  

Note: The default for the template is to show scores the American convention (ex: Dallas Mavericks 100, San Antonio Spurs 103"), to use the European convention (CSKA Moscow 83 - 85 FC Barcelona), replace team1 with teamA, team2 with teamB, and so on; the stats categories can work properly using the points1 convention. es:Plantilla:Basketballbox he:תבנית:Basketballbox lv:Veidne:Basketbola spēle sl:Predloga:Basketballbox