Difference between revisions of "Template:Basketballbox"

From blackwiki
Jump to navigation Jump to search
imported>Pasaban
(Added Bengali wiki page info)
imported>Jonesey95
(Fix too small font per MOS:FONTSIZE.)
 
(124 intermediate revisions by 26 users not shown)
Line 1: Line 1:
{| cellspacing=0 style="width: {{{size|100%}}}; background-color: {{{bg|transparent}}}" valign="center"
+
<includeonly><div {{#if:{{{id|}}}|id={{{id}}}}} style="width: {{{size|100%}}}; background-color: {{{bg|transparent}}}">
|-
 
|align=center valign=top rowspan=4 width={{#if:{{{TV|}}}|12%|14%}}|{{{date|}}}{{ #if: {{{time|}}}| <br><small> {{{time}}}</small> | }}
 
|width=7% style=font-size:85% rowspan=4 valign=top align=left |{{ #if: {{{report|}}} |{{{report}}}| }}
 
{{#if:{{{team1|}}}|
 
{{!}}colspan=3 align=center valign=top {{!}}{{{team1}}} {{#if: {{{score1|}}}|{{{score1}}}, |vs.}} {{{team2}}} {{{score2| }}}
 
}}{{#if: {{{teamB|}}}|
 
{{!}}width={{#if:{{{TV|}}}|20%|22%}} align=right valign=top {{!}}{{{teamA|}}}{{!!}}width=7% align=center valign=top {{!}}{{{scoreA|&nbsp;}}}{{ #if: {{{scoreB|}}} |&ndash;{{{scoreB}}}|vs.}}{{!!}}width={{#if:{{{TV|}}}|20%|22%}} align=left valign=top{{!}}{{{teamB|}}} }}
 
|rowspan=4 width=4% style=font-size:90%; valign=top align=right|{{#if:{{{OT|}}}|{{#if:{{{overtime|}}}|'''{{{overtime}}}'''&nbsp;|'''OT'''&nbsp;}}|'''{{{overtime|&nbsp;}}}&nbsp;'''}}
 
|width=25% style=font-size:85% rowspan=4 valign=top|{{{place|}}}{{ #if: {{{attendance|}}} |<br>'''Attendance:''' {{{attendance}}} | }}{{ #if: {{{referee|}}} |<br>'''Referees:''' {{{referee}}} | }}
 
 
{{ #if: {{{TV|}}} |
 
{{ #if: {{{TV|}}} |
{{!}}width=6% style=font-size:85% rowspan=4 valign=top align=right{{!}}{{{TV}}}
+
{{{!}} style="float:right; width:6%; table-layout:fixed; text-align:right"
 +
{{!}} style="border-style:none" {{!}} <div style="font-size:85%">{{{TV}}}</div>
 +
{{!}}}
 
}}
 
}}
|-
+
{| style="float:left; width:{{#if:{{{TV|}}}|12%|14%}}; table-layout:fixed"
 +
|style="border-style:none"|<div style="text-align:center">{{{date|}}}{{ #if: {{{time|}}}| <br><small> {{{time}}}</small> | }}</div>
 +
|}
 +
{| style="float:left; width:6%; table-layout:fixed"
 +
|style="border-style:none"|<div style="font-size:85%">{{ #if: {{{report|}}} |{{{report}}}| }}</div>
 +
|}
 +
<table style="float:left; width:{{#if:{{{TV|}}}|50%|54%}}; text-align:center">
 +
<tr style="vertical-align:top">
 +
{{ #if: {{{team1|}}} |
 +
<td colspan="3" style="text-align:center; border-style:none">{{{team1}}} {{#if: {{{score1|}}}|{{{score1}}}, |vs.}} {{{team2}}} {{{score2| }}}{{ #if: {{{overtime|}}} | &nbsp;({{{overtime|OT}}}) | {{ #if: {{{OT|}}} |&nbsp;({{{overtime|OT}}})| }} | }}
 +
</td></tr>
 +
| {{ #if: {{{teamA|}}} |
 +
<td style="width:38%; text-align:right; border-style:none">{{{teamA|}}}</td>
 +
<td style="width:20%; text-align:center; vertical-align:top; border-style:none">{{{scoreA|&nbsp;}}}{{ #if: {{{scoreB|}}} |&ndash;{{{scoreB}}}|vs.}}{{ #if: {{{overtime|}}} | &nbsp;({{{overtime|OT}}}) | {{ #if: {{{OT|}}} |&nbsp;({{{overtime|OT}}})| }} | }}</td>
 +
<td style="width:38%; text-align:left; border-style:none">{{{teamB|}}}</td></tr>
 +
}}}}
 
{{#if:{{{Q1|}}}|
 
{{#if:{{{Q1|}}}|
{{!}}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}}} | }}
+
<tr style="vertical-align:top; font-size:85%"><td style="text-align:center; border-style:none" colspan="3">{{ #if: {{{Q1|}}} | '''Scoring by quarter:''' {{{Q1}}} | }}{{ #if: {{{Q2|}}} |, {{{Q2}}} | }}{{ #if: {{{Q3|}}} |, {{{Q3}}} | }}{{ #if: {{{Q4|}}} |, {{{Q4}}}| }}{{ #if: {{{OT|}}} |,&nbsp;'''[[Overtime (sports)|Overtime]]:''' {{{OT}}} | }}</td></tr>
{{!}}-
+
}}{{#if:{{{H1|}}}|
 +
<tr style="vertical-align:top; font-size:85%"><td style="text-align:center; border-style:none" colspan="3">{{ #if: {{{H1|}}} |'''Scoring by half:''' {{{H1}}} | }}{{ #if: {{{H2|}}} |, {{{H2}}}| }}{{ #if: {{{OT|}}} |&nbsp;'''[[Overtime (sports)|Overtime]]:''' {{{OT}}} | }}</td></tr>
 +
}}{{#if:{{{note|}}}|
 +
<tr><td style="text-align:center; border-style:none" colspan="3">{{{note}}}</td></tr>
 +
}}{{#if:{{{points1|}}}|
 +
<tr style="vertical-align:top; font-size:85%">
 +
<td style="width:{{#if:{{{teamA|}}}|38%|48%}}; text-align:right; border-style:none">{{ #if: {{{points1|}}} |'''[[Point (basketball)|Pts]]:''' {{{points1}}}| }}{{ #if: {{{rebounds1|}}}|<br>'''[[Rebound (basketball)|Rebs]]:''' {{{rebounds1}}}| }}{{ #if: {{{assist1|}}} |<br>'''[[Assist (basketball)|Asts]]:''' {{{assist1}}}| }}{{ #if: {{{otherstat1|}}} |<br>{{{otherstat1}}}| }}</td>
 +
<td></td>
 +
<td style="width:{{#if:{{{teamA|}}}|38%|48%}}; text-align:left; border-style:none">{{ #if: {{{points2|}}} |'''Pts:''' {{{points2}}}| }}{{ #if: {{{rebounds2|}}}|<br>'''Rebs:''' {{{rebounds2|}}}| }}{{ #if: {{{assist2|}}} |<br>'''Asts:''' {{{assist2|}}}| }}{{ #if: {{{otherstat2|}}} |<br>{{{otherstat2|}}}| }}</td></tr>
 +
}}{{#if:{{{series|}}}|
 +
<tr><td colspan="3" style="text-align:center; border-style:none">'''''{{{series}}}'''''</td></tr>
 
}}
 
}}
{{#if:{{{H1|}}}|
+
</table>
{{!}}align=center colspan=3 valign=top style=font-size:85%{{!}}{{ #if: {{{H1|}}} |'''Scoring by half:''' {{{H1}}} | }}{{ #if: {{{H2|}}} |, {{{H2}}}| }}{{ #if: {{{OT|}}} |&nbsp;'''OT:''' {{{OT}}} | }}
+
{| style="float:right; width:24%; table-layout:fixed"
{{!}}-
+
|style="border-style:none"|<div style="font-size:85%">{{{place|}}}{{ #if: {{{attendance|}}} |<br>'''Attendance:''' {{{attendance}}} | }}{{ #if: {{{referee|}}} |<br>'''Referees:''' {{#if:1| {{{referee}}} }} | }}</div>
}}
+
|}
{{#if:{{{points1|}}}|
+
{{clear}}
{{!}}style=font-size:85% width={{#if:{{{teamA|}}}|22%|23%}} align=right{{!}}{{ #if: {{{points1|}}} |'''Pts:''' {{{points1}}}| }}{{ #if: {{{rebounds1|}}}|<br>'''Rebs:''' {{{rebounds1}}}| }}{{ #if: {{{assist1|}}} |<br>'''Asts:''' {{{assist1}}}| }}{{ #if: {{{otherstat1|}}} |<br>{{{otherstat1}}}| }}
+
</div></includeonly><noinclude>
{{!}}width={{#if:{{{teamA|}}}|7%|1%}}{{!}}
+
{{Documentation}}
{{!}}style=font-size:85% width={{#if:{{{teamA|}}}|22%|23%}} align=left{{!}}{{ #if: {{{points2|}}} |'''Pts:''' {{{points2}}}| }}{{ #if: {{{rebounds2|}}}|<br>'''Rebs:''' {{{rebounds2|}}}| }}{{ #if: {{{assist2|}}} |<br>'''Asts:''' {{{assist2|}}}| }}{{ #if: {{{otherstat2|}}} |<br>{{{otherstat2|}}}| }}
 
{{!}}-
 
}}
 
{{#if:{{{series|}}}|
 
{{!}}colspan=3 align=center{{!}}{{ #if: {{{series|}}} |'''''{{{series}}}'''''</div>| }}
 
}}
 
|}<noinclude>
 
'''NBA style'''
 
{{basketballbox
 
| bg = <!--Optional-->
 
| date = <nowiki>{{{date}}}</nowiki>
 
| time = <nowiki>{{{time}}}</nowiki>
 
| report = <nowiki>{{{report}}}</nowiki>
 
| team1 = <nowiki>{{{team1}}}</nowiki>
 
| team2 = <nowiki>{{{team2}}}</nowiki>
 
| score1 = <nowiki>{{{score1}}}</nowiki>
 
| score2 = <nowiki>{{{score2}}}</nowiki>
 
| overtime = <nowiki>{{{overtime}}}</nowiki>
 
| Q1 = <nowiki>{{{Q1}}}</nowiki>
 
| Q2 = <nowiki>{{{Q2}}}</nowiki>
 
| Q3 = <nowiki>{{{Q3}}}</nowiki>
 
| Q4 = <nowiki>{{{Q4}}}</nowiki>
 
| OT = <nowiki>{{{OT}}}</nowiki>
 
| points1 = <nowiki>{{{points1}}}</nowiki>
 
| points2 = <nowiki>{{{points2}}}</nowiki>
 
| rebounds1 = <nowiki>{{{rebounds1}}}</nowiki>
 
| rebounds2 = <nowiki>{{{rebounds2}}}</nowiki>
 
| assist1 = <nowiki>{{{assist1}}}</nowiki>
 
| assist2 = <nowiki>{{{assist2}}}</nowiki>
 
| otherstat1 = <nowiki>{{{otherstat1}}}</nowiki>
 
| otherstat2 = <nowiki>{{{otherstat2}}}</nowiki>
 
| place = <nowiki>{{{place}}}</nowiki>
 
| attendance = <nowiki>{{{attendance}}}</nowiki>
 
| referee = <nowiki>{{{referee}}}</nowiki>
 
| series = <nowiki>{{{series}}}</nowiki>
 
| TV = <nowiki>{{{TV}}}</nowiki>
 
}}
 
'''U.S. NCAA style'''
 
{{basketballbox
 
| bg = <!--Optional-->
 
| date = <nowiki>{{{date}}}</nowiki>
 
| time = <nowiki>{{{time}}}</nowiki>
 
| report = <nowiki>{{{report}}}</nowiki>
 
| team1 = <nowiki>{{{team1}}}</nowiki>
 
| team2 = <nowiki>{{{team2}}}</nowiki>
 
| score1 = <nowiki>{{{score1}}}</nowiki>
 
| score2 = <nowiki>{{{score2}}}</nowiki>
 
| overtime = <nowiki>{{{overtime}}}</nowiki>
 
| H1 = <nowiki>{{{H1}}}</nowiki>
 
| H2 = <nowiki>{{{H2}}}</nowiki>
 
| points1 = <nowiki>{{{points1}}}</nowiki>
 
| points2 = <nowiki>{{{points2}}}</nowiki>
 
| rebounds1 = <nowiki>{{{rebounds1}}}</nowiki>
 
| rebounds2 = <nowiki>{{{rebounds2}}}</nowiki>
 
| assist1 = <nowiki>{{{assist1}}}</nowiki>
 
| assist2 = <nowiki>{{{assist2}}}</nowiki>
 
| otherstat1 = <nowiki>{{{otherstat1}}}</nowiki>
 
| otherstat2 = <nowiki>{{{otherstat2}}}</nowiki>
 
| place = <nowiki>{{{place}}}</nowiki>
 
| attendance = <nowiki>{{{attendance}}}</nowiki>
 
| referee = <nowiki>{{{referee}}}</nowiki>
 
| series = <nowiki>{{{series}}}</nowiki>
 
| TV = <nowiki>{{{TV}}}</nowiki>
 
}}
 
'''European style'''
 
{{basketballbox
 
| bg = <!--Optional-->
 
| date = <nowiki>{{{date}}}</nowiki>
 
| time = <nowiki>{{{time}}}</nowiki>
 
| report = <nowiki>{{{report}}}</nowiki>
 
| teamA = <nowiki>{{{teamA}}}</nowiki>
 
| scoreA = 0*
 
| points1 = <nowiki>{{{points1}}}</nowiki>
 
| rebounds1 = <nowiki>{{{rebounds1}}}</nowiki>
 
| assist1 = <nowiki>{{{assist1}}}</nowiki>
 
| otherstat1 = <nowiki>{{{otherstat1}}}</nowiki>
 
| teamB = <nowiki>{{{teamB}}}</nowiki>
 
| scoreB = 1*
 
| points2 = <nowiki>{{{points2}}}</nowiki>
 
| rebounds2 = <nowiki>{{{rebounds2}}}</nowiki>
 
| assist2 = <nowiki>{{{assist2}}}</nowiki>
 
| otherstat2 = <nowiki>{{{otherstat2}}}</nowiki>
 
| Q1 = <nowiki>{{{Q1}}}</nowiki>
 
| Q2 = <nowiki>{{{Q2}}}</nowiki>
 
| Q3 = <nowiki>{{{Q3}}}</nowiki>
 
| Q4 = <nowiki>{{{Q4}}}</nowiki>
 
| OT = <nowiki>{{{OT}}}</nowiki>
 
| place = <nowiki>{{{place}}}</nowiki>
 
| attendance = <nowiki>{{{attendance}}}</nowiki>
 
| referee = <nowiki>{{{referee}}}</nowiki>
 
| series = <nowiki>{{{series}}}</nowiki>
 
| TV = <nowiki>{{{TV}}}</nowiki>
 
}}*Notes: 0 = <nowiki>{{{scoreA}}}</nowiki>; 1 = <nowiki>{{{scoreB}}}</nowiki>
 
----
 
<nowiki>
 
{{basketballbox
 
| bg =
 
| date =
 
| time =
 
| report =
 
| team1 =
 
| score1 =
 
| team2 =
 
| score2 =
 
| overtime =
 
| Q1 =
 
| Q2 =
 
| Q3 =
 
| Q4 =
 
| H1 =
 
| H2 =
 
| OT =
 
| points1 =
 
| rebounds1 =
 
| assist1 =
 
| otherstat1 =
 
| points2 =
 
| rebounds2 =
 
| assist2 =
 
| otherstat2
 
| place =
 
| attendance =
 
| referee =
 
| TV =
 
| series =
 
}}
 
  </nowiki>
 
'''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.
 
[[Category:Sports match box templates|Basketball]]
 
[[Category:Basketball templates]]
 
[[bn:টেমপ্লেট:Basketballbox]]
 
[[de:Vorlage:Basketballbox]]
 
[[es:Plantilla:Basketballbox]]
 
[[it:Template:Partita di pallacanestro]]
 
[[he:תבנית:Basketballbox]]
 
[[lv:Veidne:Basketbola spēle]]
 
[[mk:Шаблон:Кошаркарски резултат]]
 
[[sl:Predloga:Basketballbox]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 06:17, 7 June 2020

Template documentation[view] [edit] [history] [purge]

Usage

NBA style

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

U.S. NCAA style

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

European style

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

Blank template

{{basketballbox
 | id         = "team1 v team2"
 | bg         = #e3e3e3 #ffdead or blank
 | date       = 
 | time       = 
 | report     = 
 | team1      = 
 | score1     = 
 | team2      = 
 | score2     = 
 | overtime   =
 | Q1         = Please don't
 | Q2         = boldface quarter
 | Q3         = "winners". Basketball
 | Q4         = isn't played
 | H1         = this way. 
 | H2         = Only add HT if quarter scores
 | OT         = are not available.
 | points1    = 
 | rebounds1  = 
 | assist1    = 
 | otherstat1 = 
 | points2    = 
 | rebounds2  = 
 | assist2    = 
 | otherstat2 =
 | duration   =
 | 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.

See also