Difference between revisions of "Template:Basketballbox collapsible/doc"

From blackwiki
Jump to navigation Jump to search
imported>Tom.Reding
m (Oops)
imported>Vanisaac
m (clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(6 intermediate revisions by 4 users not shown)
Line 9: Line 9:
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
 
{{basketballbox collapsible
 
{{basketballbox collapsible
|id = "Real Madrid v Olympiacos"
+
|id = "Fenerbahçe v Olympiacos"
|date = {{Start date|2015|05|17|df=y}}
+
|date = 21 May 2017
|time = 20:00 ([[Central European Summer Time|CEST]])
+
|time = 20:00 ([[Central European Summer Time|CEST]]) | report = [http://www.euroleague.net/main/results/showgame?gamecode=263&seasoncode=E2016 Boxscore]
|round = [[2015 Euroleague Final Four|Final]]
+
|round = [[2017 Euroleague Final Four|Final]]
|report = [http://www.euroleague.net/main/results/showgame?gamecode=251&seasoncode=E2014 Boxscore]
+
|teamA = '''[[Fenerbahçe Men's Basketball|Fenerbahçe]]''' {{flagicon|TUR}} | scoreA = '''80'''
|teamA = '''[[Real Madrid Baloncesto|Real Madrid]]''' {{flagicon|ESP}}
+
|teamB = {{flagicon|GRE}} [[Olympiacos B.C.|Olympiacos]] | scoreB = 64
|scoreA = '''78'''
+
|Q1 = '''26'''–18 | Q2 = 13–'''16''' | Q3 = '''21'''–14 | Q4 = '''20'''–16
|scoreB = 59
+
|points1 = [[Bogdan Bogdanović (basketball)|Bogdanović]], [[Nikola Kalinić (basketball)|Kalinić]] 17
|teamB = {{flagicon|GRE}} [[Olympiacos B.C.|Olympiacos]]
+
|rebounds1 = [[Ekpe Udoh|Udoh]] 9
|Q1 = 15–'''19'''
+
|assist1 = [[Nikola Kalinić (basketball)|Kalinić]], [[Kostas Sloukas|Sloukas]] 5
|Q2 = '''20'''–9
+
|rating1 = [[Ekpe Udoh|Udoh]] 29
|Q3 = 18–18
+
|points2 = [[Khem Birch|Birch]] 14
|Q4 = '''25'''–13
+
|rebounds2 = [[Kostas Papanikolaou|Papanikolaou]] 5
|points1 = [[Jaycee Carroll|Carroll]] 16
+
|assist2 = [[Vassilis Spanoulis|Spanoulis]] 8
|rebounds1 = [[Andrés Nocioni|Nocioni]] 7
+
|rating2 = [[Khem Birch|Birch]] 16
|assist1 = [[Sergio Llull|Llull]], [[Sergio Rodríguez|Rodríguez]] 4
+
|arena = [[Sinan Erdem Dome]] | place = [[Istanbul]] | attendance = 15,671
|rating1 = [[Jaycee Carroll|Carroll]], [[Andrés Nocioni|Nocioni]] 18
+
|referee = Daniel Hierrezuelo (ESP), Borys Rhyzhyk (UKR), [[Oļegs Latiševs]] (LAT)
|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
 
|bg = #ffffd0
 
|nobars =  
 
|nobars =  
|stack =
 
 
|class = "collapsible collapsed"
 
|class = "collapsible collapsed"
 
}}
 
}}
Line 44: Line 35:
  
 
{{basketballbox collapsible
 
{{basketballbox collapsible
|id = "Real Madrid v Olympiacos"
+
|id = "Fenerbahçe v Olympiacos"
|date = {{Start date|2015|05|17|df=y}}
+
|date = 21 May 2017
|time = 20:00 ([[Central European Summer Time|CEST]])
+
|time = 20:00 ([[Central European Summer Time|CEST]]) | report = [http://www.euroleague.net/main/results/showgame?gamecode=263&seasoncode=E2016 Boxscore]
|round = [[2015 Euroleague Final Four|Final]]
+
|round = [[2017 Euroleague Final Four|Final]]
|report = [http://www.euroleague.net/main/results/showgame?gamecode=251&seasoncode=E2014 Boxscore]
+
|teamA = '''[[Fenerbahçe Men's Basketball|Fenerbahçe]]''' {{flagicon|TUR}} | scoreA = '''80'''
|teamA = '''[[Real Madrid Baloncesto|Real Madrid]]''' {{flagicon|ESP}}
+
|teamB = {{flagicon|GRE}} [[Olympiacos B.C.|Olympiacos]] | scoreB = 64
|scoreA = '''78'''
+
|Q1 = '''26'''–18 | Q2 = 13–'''16''' | Q3 = '''21'''–14 | Q4 = '''20'''–16
|scoreB = 59
+
|points1 = [[Bogdan Bogdanović (basketball)|Bogdanović]], [[Nikola Kalinić (basketball)|Kalinić]] 17
|teamB = {{flagicon|GRE}} [[Olympiacos B.C.|Olympiacos]]
+
|rebounds1 = [[Ekpe Udoh|Udoh]] 9
|Q1 = 15–'''19'''
+
|assist1 = [[Nikola Kalinić (basketball)|Kalinić]], [[Kostas Sloukas|Sloukas]] 5
|Q2 = '''20'''–9
+
|rating1 = [[Ekpe Udoh|Udoh]] 29
|Q3 = 18–18
+
|points2 = [[Khem Birch|Birch]] 14
|Q4 = '''25'''–13
+
|rebounds2 = [[Kostas Papanikolaou|Papanikolaou]] 5
|points1 = [[Jaycee Carroll|Carroll]] 16
+
|assist2 = [[Vassilis Spanoulis|Spanoulis]] 8
|rebounds1 = [[Andrés Nocioni|Nocioni]] 7
+
|rating2 = [[Khem Birch|Birch]] 16
|assist1 = [[Sergio Llull|Llull]], [[Sergio Rodríguez|Rodríguez]] 4
+
|arena = [[Sinan Erdem Dome]] | place = [[Istanbul]] | attendance = 15,671
|rating1 = [[Jaycee Carroll|Carroll]], [[Andrés Nocioni|Nocioni]] 18
+
|referee = Daniel Hierrezuelo (ESP), Borys Rhyzhyk (UKR), [[Oļegs Latiševs]] (LAT)
|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
 
|bg = #ffffd0
 
|nobars =  
 
|nobars =  
|stack =
 
 
|class = "collapsible collapsed"
 
|class = "collapsible collapsed"
 
}}
 
}}
Line 95: Line 77:
 
|overtime = <!-- "OT" for extra time -->
 
|overtime = <!-- "OT" for extra time -->
 
|OT =  <!-- overtime score -->
 
|OT =  <!-- overtime score -->
 +
|aggregatescore = <!-- aggregate score -->
 +
|series = <!-- series for a best-of-format -->
 
|arena =  
 
|arena =  
 
|attendance =  
 
|attendance =  
 
|referee =  
 
|referee =  
 
|TV =  
 
|TV =  
|series =  
+
|note = <!-- adding notes below the statistics -->
  
 
<!-- scoring by quarter -->
 
<!-- scoring by quarter -->
Line 127: Line 111:
 
|bg = <!-- color without number sign -->
 
|bg = <!-- color without number sign -->
 
|nobars = <!-- "1" to hide bars -->
 
|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) -->
 
|class = <!-- "uncollapsed" or "expanded" for removal of collapse function, "collapsible" for expanded with collapsible option, "collapsible collapsed" for box being initially collapsed (default) -->
 
}}
 
}}
Line 160: Line 143:
 
*{{tl|basketballbox}} - almost the same thing, but not collapsible
 
*{{tl|basketballbox}} - almost the same thing, but not collapsible
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Sports match box templates|{{PAGENAME}}]]
 
[[Category:Sports match box templates|{{PAGENAME}}]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 23:42, 23 April 2020


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 = "Fenerbahçe v Olympiacos"
|date = 21 May 2017
|time = 20:00 ([[Central European Summer Time|CEST]]) | report = [http://www.euroleague.net/main/results/showgame?gamecode=263&seasoncode=E2016 Boxscore]
|round = [[2017 Euroleague Final Four|Final]]
|teamA = '''[[Fenerbahçe Men's Basketball|Fenerbahçe]]'''  {{flagicon|TUR}} | scoreA = '''80'''
|teamB = {{flagicon|GRE}} [[Olympiacos B.C.|Olympiacos]] | scoreB = 64
|Q1 = '''26'''–18 | Q2 = 13–'''16''' | Q3 = '''21'''–14 | Q4 = '''20'''–16
|points1 = [[Bogdan Bogdanović (basketball)|Bogdanović]], [[Nikola Kalinić (basketball)|Kalinić]] 17
|rebounds1 = [[Ekpe Udoh|Udoh]] 9
|assist1 = [[Nikola Kalinić (basketball)|Kalinić]], [[Kostas Sloukas|Sloukas]] 5
|rating1 = [[Ekpe Udoh|Udoh]] 29
|points2 = [[Khem Birch|Birch]] 14
|rebounds2 = [[Kostas Papanikolaou|Papanikolaou]] 5
|assist2 = [[Vassilis Spanoulis|Spanoulis]] 8
|rating2 = [[Khem Birch|Birch]] 16
|arena = [[Sinan Erdem Dome]] | place = [[Istanbul]] | attendance = 15,671
|referee = Daniel Hierrezuelo (ESP), Borys Rhyzhyk (UKR), [[Oļegs Latiševs]] (LAT)
|bg = #ffffd0
|nobars = 
|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 = 
|note = <!-- adding notes below the statistics -->

<!-- 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 -->
|size = <!-- for example 80%, by default 100% -->
|bg = <!-- color without number sign -->
|nobars = <!-- "1" to hide bars -->
|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