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

From blackwiki
Jump to navigation Jump to search
imported>Vasconia
imported>Vanisaac
m (clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 143: 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