Template:Basketballbox collapsible/doc

From blackwiki
< Template:Basketballbox collapsible
Revision as of 20:38, 21 February 2017 by imported>Asturkian (→‎Blank template)
Jump to navigation Jump to search


Usage

This template is meant to be used for abbreviated regular season results with expandable details. The goal with this template is to only consume one line of text (when collapsed) for each match. Therefore, avoid using line breaks (<br />) in parameters that are still visible when the box score is collapsed.

Sample:

{{basketballbox collapsible
|id = "Real Madrid v Olympiacos"
|date = {{Start date|2015|05|17|df=y}}
|time = 20:00 ([[Central European Summer Time|CEST]])
|round = [[2015 Euroleague Final Four|Final]]
|report = [http://www.euroleague.net/main/results/showgame?gamecode=251&seasoncode=E2014 Boxscore]
|teamA = '''[[Real Madrid Baloncesto|Real Madrid]]''' {{flagicon|ESP}}
|scoreA = '''78'''
|scoreB = 59
|teamB = {{flagicon|GRE}} [[Olympiacos B.C.|Olympiacos]]
|Q1 = 15–'''19'''
|Q2 = '''20'''–9
|Q3 = 18–18
|Q4 = '''25'''–13
|points1 = [[Jaycee Carroll|Carroll]] 16
|rebounds1 = [[Andrés Nocioni|Nocioni]] 7
|assist1 = [[Sergio Llull|Llull]], [[Sergio Rodríguez|Rodríguez]] 4
|rating1 = [[Jaycee Carroll|Carroll]], [[Andrés Nocioni|Nocioni]] 18
|points2 = [[Matt Lojeski|Lojeski]] 17
|rebounds2 = [[Othello Hunter|Hunter]] 7
|assist2 = [[Giorgos Printezis|Printezis]], [[Vassilis Spanoulis|Spanoulis]] 3
|rating2 = [[Matt Lojeski|Lojeski]] 19
|arena = [[Barclaycard Center]]
|place = [[Madrid]], [[Spain]]
|attendance = 12,987
|referee = Sasa Pukl (SLO), Borys Ryzhyk (UKR), Ilija Belosevic (SRB)
|bg = #ffffd0
|nobars = 
|stack = 
|class = "collapsible collapsed"
}}

Sample result:

  1. ffffd0"

Blank template

All available parameters are shown here.

{{basketballbox collapsible
<!-- recommended or required parameters -->
|id = 
|date = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
|time = 
|round = 
|report = 
|teamA = 
|scoreA = 
|scoreB = 
|teamB =  
|place = 

<!-- optional parameters -->
|overtime = <!-- "OT" for extra time -->
|OT =  <!-- overtime score -->
|aggregatescore = <!-- aggregate score -->
|series = <!-- series for a best-of-format -->
|arena = 
|attendance = 
|referee = 
|TV = 
|series = 

<!-- scoring by quarter -->
|Q1 = 
|Q2 = 
|Q3 = 
|Q4 =

<!-- scoring by half -->
|H1 = 
|H2 = 

<!-- statistics of the game -->
|points1 = 
|rebounds1 = 
|assist1 = 
|rating1 = 
|otherstat1 =  
|points2 = 
|rebounds2 = 
|assist2 = 
|rating2 = 
|otherstat2 = 

<!-- formatting/color parameters -->
|notes = <!-- adding notes below the statistics -->
|size = <!-- for example 80%, by default 100% -->
|bg = <!-- color without number sign -->
|nobars = <!-- "1" to hide bars -->
|stack = <!-- "yes" with multiple boxscores stacked together.  Hides the bar at the bottom avoiding double lines between boxscores. -->
|class = <!-- "uncollapsed" or "expanded" for removal of collapse function, "collapsible" for expanded with collapsible option, "collapsible collapsed" for box being initially collapsed (default) -->
}}

Legend

Simple coloring legend recommended when an article makes use of result parameter:

{{legend2|#BBF3BB|Win|border=1px solid #AAAAAA}}
{{legend2|#FFFFBB|Draw|border=1px solid #AAAAAA}}
{{legend2|#FFBBBB|Loss|border=1px solid #AAAAAA}}
{{legend2|#BBBBBB|Void|border=1px solid #AAAAAA}} <!-- optional -->
{{legend2|#BBBBBB|Postponed|border=1px solid #AAAAAA}} <!-- optional -->

Which produces:

  Win   Draw   Loss   Void   Postponed


Note: Given the rarity of voided results and postponements, those entries are optional and can be omitted in most cases.

Microformats

Template:UF-hcard-short

Template:UF-hcal

See also