Difference between revisions of "Template:Basketballbox/sandbox"
Jump to navigation
Jump to search
imported>Howard the Duck m |
imported>Howard the Duck m |
||
| Line 3: | Line 3: | ||
|- | |- | ||
|style="width:12%; table-layout:fixed"|<div style="text-align:center">{{{date|}}} | |style="width:12%; table-layout:fixed"|<div style="text-align:center">{{{date|}}} | ||
| − | |style="width:7%; table-layout:fixed | + | |style="width:7%; table-layout:fixed; font-size:85%"|{{ #if: {{{report|}}} |{{{report}}}| }} |
{{ #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|}}} | ({{{overtime|OT}}}) | {{ #if: {{{OT|}}} | ({{{overtime|OT}}})| }} | }}</td> | <td style="width:50%; text-align:center" colspan="5" style="text-align:center">{{{team1}}} {{#if: {{{score1|}}}|{{{score1}}}, |vs.}} {{{team2}}} {{{score2| }}}{{ #if: {{{overtime|}}} | ({{{overtime|OT}}}) | {{ #if: {{{OT|}}} | ({{{overtime|OT}}})| }} | }}</td> | ||
| − | + | {{ #if: {{{teamA|}}} | | |
<td style="width:19%; text-align:right">{{{teamA|}}}</td> | <td style="width:19%; text-align:right">{{{teamA|}}}</td> | ||
<td style="width:3%;"> </td> | <td style="width:3%;"> </td> | ||
| Line 26: | Line 26: | ||
{{!}}colspan="5" style="text-align:center"{{!}}'''''{{{series}}}''''' | {{!}}colspan="5" style="text-align:center"{{!}}'''''{{{series}}}''''' | ||
}} | }} | ||
| − | |style="width:25%; table-layout:fixed | + | |style="width:25%; table-layout:fixed; font-size:85%"|{{{place|}}} |
!style="width:6%; table-layout:fixed; text-align:right"| | !style="width:6%; table-layout:fixed; text-align:right"| | ||
|- | |- | ||
{{#if: {{{time|}}}| | {{#if: {{{time|}}}| | ||
| + | {{!}}} | ||
{|valign="top" | {|valign="top" | ||
| − | | | + | |style="font-size:85%;"|{{{time}}}</small> | }} |
|} | |} | ||
| + | }} | ||
{{#if:{{{Q1|}}}| | {{#if:{{{Q1|}}}| | ||
| + | {{!}}} | ||
{|valign="top" | {|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|}}} |, '''OT:''' {{{OT}}} | }}</td></tr> | <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|}}} |, '''OT:''' {{{OT}}} | }}</td></tr> | ||
| Line 40: | Line 43: | ||
|} | |} | ||
}} | }} | ||
| − | | | + | {{ #if: {{{attendance|}}} |
| + | {{!}} | ||
{|valign="top" | {|valign="top" | ||
| − | | | + | |style="font-size:85%"|'''Attendance:''' {{{attendance}}}{{ #if: {{{referee|}}} |<br>'''Referees:''' {{{referee}}} | }} |
|} | |} | ||
| + | | }} | ||
| | | | ||
{|valign="top" | {|valign="top" | ||
| − | |<div style="font-size:85%">{{{TV|}}} | + | |<div style="font-size:85%">{{{TV|}}} |
|} | |} | ||
{{clear}} | {{clear}} | ||
Revision as of 01:19, 10 May 2014
| This is the template sandbox page for Template:Basketballbox (diff). See also the companion subpage for test cases. |
| This template is used on approximately 3,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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
| The above documentation is transcluded from Template:Basketballbox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |