Difference between revisions of "Template:Basketballbox/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(adding bold)
imported>WOSlinker
(sync)
 
Line 1: Line 1:
<includeonly>
+
<includeonly><div style="width: {{{size|100%}}}; background-color: {{{bg|transparent}}}">
{|class="collapsible {{{collapsible|collapsed}}}" style="width: {{{size|100%}}}; background-color: {{{bg|transparent}}}" valign="top"
+
{{ #if: {{{TV|}}} |
|-
+
{{{!}} style="float:right; width:6%; table-layout:fixed; text-align:right"
|style="width:12%; table-layout:fixed"|<div style="text-align:center">{{{date|}}}
+
{{!}} style="border-style:none" {{!}} <div style="font-size:85%">{{{TV}}}</div>
|style="width:7%; table-layout:fixed; font-size:85%"|{{ #if: {{{report|}}} |{{{report}}}| }}
+
{{!}}}
 +
}}
 +
{| 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:7%; 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|}}} |
 
{{ #if: {{{team1|}}} |
<td style="width:50%; text-align:center" colspan="5" style="text-align:center">{{{team1}}} {{#if: {{{score1|}}}|{{{score1}}}, |vs.}} {{{team2}}} {{{score2| }}}{{ #if: {{{overtime|}}} | &nbsp;({{{overtime|OT}}}) | {{ #if: {{{OT|}}} |&nbsp;({{{overtime|OT}}})| }} | }}</td>
+
<td colspan="5" style="text-align:center; border-style:none">{{{team1}}} {{#if: {{{score1|}}}|{{{score1}}}, |vs.}} {{{team2}}} {{{score2| }}}{{ #if: {{{overtime|}}} | &nbsp;({{{overtime|OT}}}) | {{ #if: {{{OT|}}} |&nbsp;({{{overtime|OT}}})| }} | }}
{{ #if: {{{teamA|}}} |
+
</td></tr>
<td style="width:19%; text-align:right">'''{{{teamA|}}}'''</td>
+
| {{ #if: {{{teamA|}}} |
<td style="width:3%;"> </td>
+
<td style="width:39%; text-align:right; border-style:none">{{{teamA|}}}</td>
<td style="width:6%; text-align:center; vertical-align:top">'''{{{scoreA|&nbsp;}}}{{ #if: {{{scoreB|}}} |&ndash;{{{scoreB}}}|vs.}}'''</td>
+
<td style="width:5%; border-style:none"> </td>
<td style="width:3%; font-size:90%; text-align:left; font-weight:bold;">'''{{#if:{{{OT|}}}|{{#if:{{{overtime|}}}|{{{overtime}}}|OT}}|{{{overtime|}}}}}'''</td>
+
<td style="width:12%; text-align:center; vertical-align:top; border-style:none">{{{scoreA|&nbsp;}}}{{ #if: {{{scoreB|}}} |&ndash;{{{scoreB}}}|vs.}}</td>
<td style="width:19%; text-align:left">'''{{{teamB|}}}'''</td></tr>
+
<td style="width:5%; text-align:center; font-size:90%; text-align:left; font-weight:bold; border-style:none">{{#if:{{{OT|}}}|{{#if:{{{overtime|}}}|{{{overtime}}}|OT}}|{{{overtime|}}}}}</td>
 +
<td style="width:39%; text-align:left; border-style:none">{{{teamB|}}}</td></tr>
 
}}}}
 
}}}}
{{#if:{{{note|}}}|
 
{{!}}-
 
{{!}}style="text-align:center" colspan="5"{{!}}{{{note}}}
 
}}
 
{{#if:{{{points1|}}}|
 
{{!}}-style="vertical-align:top; font-size:85%">
 
{{!}}style="width:{{#if:{{{teamA|}}}|22%|24%}}; text-align:right"{{!}}{{ #if: {{{points1|}}} |'''Pts:''' {{{points1}}}| }}{{ #if: {{{rebounds1|}}}|<br>'''Rebs:''' {{{rebounds1}}}| }}{{ #if: {{{assist1|}}} |<br>'''Asts:''' {{{assist1}}}| }}{{ #if: {{{otherstat1|}}} |<br>{{{otherstat1}}}| }}
 
{{!}}colspan=3{{!}}
 
{{!}}style="width:{{#if:{{{teamA|}}}|22%|24%}}; text-align:left"{{!}}{{ #if: {{{points2|}}} |'''Pts:''' {{{points2}}}| }}{{ #if: {{{rebounds2|}}}|<br>'''Rebs:''' {{{rebounds2|}}}| }}{{ #if: {{{assist2|}}} |<br>'''Asts:''' {{{assist2|}}}| }}{{ #if: {{{otherstat2|}}} |<br>{{{otherstat2|}}}| }}
 
}}{{#if:{{{series|}}}|
 
{{!}}-
 
{{!}}colspan="5" style="text-align:center"{{!}}'''''{{{series}}}'''''
 
}}
 
|style="width:25%; table-layout:fixed; font-size:85%"|{{{place|}}}
 
!style="width:6%; table-layout:fixed; text-align:right"|&nbsp;
 
|-
 
{{#if: {{{time|}}}|
 
{{!}}}
 
{|valign="top"
 
|style="font-size:85%;"|{{{time}}}</small> | }}
 
|}
 
}}
 
 
{{#if:{{{Q1|}}}|
 
{{#if:{{{Q1|}}}|
{{!}}}
+
<tr style="vertical-align:top; font-size:85%"><td style="text-align:center; border-style:none" colspan="5">{{ #if: {{{Q1|}}} | '''Scoring by quarter:''' {{{Q1}}} | }}{{ #if: {{{Q2|}}} |, {{{Q2}}} | }}{{ #if: {{{Q3|}}} |, {{{Q3}}} | }}{{ #if: {{{Q4|}}} |, {{{Q4}}}| }}{{ #if: {{{OT|}}} |,&nbsp;'''OT:''' {{{OT}}} | }}</td></tr>
{|valign="top"
 
<tr style="vertical-align:top; font-size:85%"><td style="text-align:center" colspan="5">{{ #if: {{{Q1|}}} | '''Scoring by quarter:''' {{{Q1}}} | }}{{ #if: {{{Q2|}}} |, {{{Q2}}} | }}{{ #if: {{{Q3|}}} |, {{{Q3}}} | }}{{ #if: {{{Q4|}}} |, {{{Q4}}}| }}{{ #if: {{{OT|}}} |,&nbsp;'''OT:''' {{{OT}}} | }}</td></tr>
 
 
}}{{#if:{{{H1|}}}|
 
}}{{#if:{{{H1|}}}|
<tr style="vertical-align:top; font-size:85%"><td style="text-align:center" colspan="5">{{ #if: {{{H1|}}} |'''Scoring by half:''' {{{H1}}} | }}{{ #if: {{{H2|}}} |, {{{H2}}}| }}{{ #if: {{{OT|}}} |&nbsp;'''OT:''' {{{OT}}} | }}</td></tr>
+
<tr style="vertical-align:top; font-size:85%"><td style="text-align:center; border-style:none" colspan="5">{{ #if: {{{H1|}}} |'''Scoring by half:''' {{{H1}}} | }}{{ #if: {{{H2|}}} |, {{{H2}}}| }}{{ #if: {{{OT|}}} |&nbsp;'''OT:''' {{{OT}}} | }}</td></tr>
|}
+
}}{{#if:{{{note|}}}|
 +
<tr><td style="text-align:center; border-style:none" colspan="5">{{{note}}}</td></tr>
 +
}}{{#if:{{{points1|}}}|
 +
<tr style="vertical-align:top; font-size:85%">
 +
<td style="width:{{#if:{{{teamA|}}}|39%|48%}}; text-align:right; border-style:none">{{ #if: {{{points1|}}} |'''Pts:''' {{{points1}}}| }}{{ #if: {{{rebounds1|}}}|<br>'''Rebs:''' {{{rebounds1}}}| }}{{ #if: {{{assist1|}}} |<br>'''Asts:''' {{{assist1}}}| }}{{ #if: {{{otherstat1|}}} |<br>{{{otherstat1}}}| }}</td>
 +
<td colspan="3"></td>
 +
<td style="width:{{#if:{{{teamA|}}}|39%|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="5" style="text-align:center; border-style:none">'''''{{{series}}}'''''</td></tr>
 
}}
 
}}
{{ #if: {{{attendance|}}}
+
</table>
{{!}}
+
{| style="float:right; width:25%; table-layout:fixed"
{|valign="top"
+
|style="border-style:none"|<div style="font-size:85%">{{{place|}}}{{ #if: {{{attendance|}}} |<br>'''Attendance:''' {{{attendance}}} | }}{{ #if: {{{referee|}}} |<br>'''Referees:''' {{#if:1| {{{referee}}} }} | }}</div>
|style="font-size:85%"|'''Attendance:''' {{{attendance}}}{{ #if: {{{referee|}}} |<br>'''Referees:''' {{{referee}}} | }}
 
|}
 
| }}
 
|
 
{|valign="top"
 
|<div style="font-size:85%">{{{TV|}}}
 
 
|}
 
|}
 
{{clear}}
 
{{clear}}
|}</includeonly><noinclude>
+
</div></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:29, 27 February 2015

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