Template:Basketballbox collapsible
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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: <syntaxhighlight lang="wikitext" style="overflow:auto">
21 May 2017 | Fenerbahçe ![]() |
80–64 | ![]() |
Istanbul |
---|---|---|---|---|
20:00 (CEST) | Scoring by quarter: 26–18, 13–16, 21–14, 20–16 | |||
Pts: Bogdanović, Kalinić 17 Rebs: Udoh 9 Asts: Kalinić, Sloukas 5 PIR: Udoh 29 |
Boxscore | Pts: Birch 14 Rebs: Papanikolaou 5 Asts: Spanoulis 8 PIR: Birch 16 |
Arena: Sinan Erdem Dome Attendance: 15,671 Referees: Daniel Hierrezuelo (ESP), Borys Rhyzhyk (UKR), Oļegs Latiševs (LAT) |
</syntaxhighlight>
Sample result:
21 May 2017 | Fenerbahçe ![]() |
80–64 | ![]() |
Istanbul |
---|---|---|---|---|
20:00 (CEST) | Scoring by quarter: 26–18, 13–16, 21–14, 20–16 | |||
Pts: Bogdanović, Kalinić 17 Rebs: Udoh 9 Asts: Kalinić, Sloukas 5 PIR: Udoh 29 |
Boxscore | Pts: Birch 14 Rebs: Papanikolaou 5 Asts: Spanoulis 8 PIR: Birch 16 |
Arena: Sinan Erdem Dome Attendance: 15,671 Referees: Daniel Hierrezuelo (ESP), Borys Rhyzhyk (UKR), Oļegs Latiševs (LAT) |
Blank template
All available parameters are shown here. <syntaxhighlight lang="wikitext" style="overflow:auto">
vs. | ||||
</syntaxhighlight>
Legend
Simple coloring legend recommended when an article makes use of result parameter: <syntaxhighlight lang="wikitext"> Win Draw Loss Void Postponed </syntaxhighlight>
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
The HTML markup produced by this template includes an hCard microformat, which makes the person's or organisation's name parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.
The hCard in this template uses at least some of these HTML classes:
- fn (required)
- nickname
- org
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.
The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.- Classes used
The HTML classes of this microformat include:
- attendee
- contact
- description
- dtend
- dtstart
- location
- organiser
- summary
- url
- vevent
nor collapse nested elements which use them.
See also
- {{basketballbox}} - almost the same thing, but not collapsible