This is the template sandbox page for Template:Football box collapsible (diff). See also the companion subpage for test cases. |
This template is used on approximately 26,000 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. |
This template uses Lua: |
This template uses TemplateStyles: |
This template is meant to be used for abbreviated regular season results with expandable details. The goal with this template is to display only 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:
((Football box collapsible
|id = Italy v France
|date = ((Start date|2006|7|9|df=y))
|time = 20:00 [[Central European Summer Time|CEST]] ([[UTC+02:00|UTC+2]])
|round = [[2006 FIFA World Cup Final|Final]]
|score = 1–1
|aet = yes
|report = https://www.fifa.com/worldcup/matches/round=97410600/match=97410064/index.html
|team1 = ((fb-rt|ITA))
|goals1 =
* [[Gianluca Zambrotta|Zambrotta]] ((yel|5))
* [[Marco Materazzi|Materazzi]] ((goal|19))
|team2 = ((fb|FRA))
|goals2 =
* [[Willy Sagnol|Sagnol]] ((yel|12))
* [[Claude Makélélé|Makélélé]] ((yel|76))
* [[Zinedine Zidane|Zidane]] ((goal|7|pen.)) ((sent off|0|110))
* [[Florent Malouda|Malouda]] ((yel|111))
|stadium = [[Olympiastadion (Berlin)|Olympiastadion]]
|location = [[Berlin]], Germany
|attendance = 69,000
|referee = [[Horacio Elizondo]] ([[Argentine Football Association|Argentina]])
|penaltyscore = 5–3
|penalties1 =
* [[Andrea Pirlo|Pirlo]] ((pengoal))
* [[Marco Materazzi|Materazzi]] ((pengoal))
* [[Daniele De Rossi|De Rossi]] ((pengoal))
* [[Alessandro Del Piero|Del Piero]] ((pengoal))
* [[Fabio Grosso|Grosso]] ((pengoal))
|penalties2 =
* ((pengoal)) [[Sylvain Wiltord|Wiltord]]
* ((penmiss)) [[David Trezeguet|Trezeguet]]
* ((pengoal)) [[Éric Abidal|Abidal]]
* ((pengoal)) [[Willy Sagnol|Sagnol]]
))
Sample result:
9 July 2006 Final | Italy | 1–1 (a.e.t.) (5–3 p) | France | Berlin, Germany |
20:00 CEST (UTC+2) | Report | Stadium: Olympiastadion Attendance: 69,000 Referee: Horacio Elizondo (Argentina) | ||
Penalties | ||||
All available parameters are shown here.
((football box collapsible
<!-- recommended or required parameters -->
|id =
|date = <!-- ((Start date|YYYY|MM|DD|df=y)) -->
|time =
|round =
|score =
|report =
|team1 =
|goals1 =
|team2 =
|goals2 =
|stadium =
<!-- optional parameters -->
|scorenote =
|aet = <!-- "yes" for extra time -->
|location =
|attendance =
|referee =
|assistantreferees =
|assistantreferee2 = <!-- rarely used, see explanation -->
|fourthofficial =
|fifthofficial =
|goallineassistants =
|goallineassistant2 = <!-- rarely used, see explanation -->
|aggregatescore =
|motm =
|mvp =
|note =
<!-- penalty parameters, required if the match went to shootout -->
|penalties1 =
|penaltyscore =
|penalties2 =
<!-- formatting/color parameters -->
|format = <!-- 1 to allow more space for round/date and location -->
|size = <!-- for example 80%, by default 100% -->
|result = <!-- W, L, T/D, V/P -->
|bg = <!-- color without number sign -->
|nobars = <!-- "1" to hide bars -->
|class = <!-- "uncollapsed " for removal of collapse function, "collapsible " for expanded with collapsible option, "collapsible collapsed " for box being initially collapsed (default) -->
))
Required parameters: team1, team2, score (if the match has occurred), and report. Everything else is optional, though goals1, goals2, referee, location, and stadium are highly encouraged wherever this template is used.
|aggregatescore = 4[[Away goals rule|a]]–4
, which produces (4a–4 agg.)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.
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:
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.The HTML classes of this microformat include:
This template displays the summary of a football (soccer) match. The summary include date and time, stadium, competing teams, goal scorers and the minute of goal, a link to the official match report and attendance of the stadium. It also includes whether or not the match went to extra-time or penalty-shoots and displays respective results. It is collapsible.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id | Unique anchor to the match.
| String | suggested |
Date | date | Displays the date the match took place.
| Date | optional |
Time | time | Time the match took place.
| String | optional |
Round | round | The competition round the match belongs to.
| String | suggested |
Score | score | The match score.
| String | suggested |
Report | report | The URL of a match report.
| URL | required |
Team 1 | team1 | First team displayed, usually home team.
| String | required |
Goals 1 | goals1 | The goals (and cards) for the home team.
| String | suggested |
Team 2 | team2 | Second team displayed, usually guest team.
| String | required |
Goals 2 | goals2 | The goals (and cards) for the guest team.
| String | suggested |
scorenote | scorenote | An optional note clarifying the final score
| String | optional |
Stadium | stadium | The name of the stadium that was played in.
| String | suggested |
AET | aet | Set to "yes" if the match went into extra time.
| Boolean | optional |
Location | location | The city the match took place in.
| String | suggested |
Attendance | attendance | The number of people attending the match.
| Number | optional |
Referee | referee | The referee for the match.
| Unknown | optional |
Assistant Referees | assistantreferees | The assistant referees for the match.
| String | optional |
Assistant Referee 2 | assistantreferee2 | Second assistant referee; rarely used as usually both assistants go in the "assistantreferees" field
| Unknown | optional |
Fourth Official | fourthofficial | The fourth official for the match.
| String | optional |
Fifth Official | fifthofficial | The fifth official for the match.
| String | optional |
Goal Line Assistants | goallineassistants | The goal line assistants for the match. | String | optional |
Goal Line Assistant 2 | goallineassistant2 | Second goal line assistant; rarely used as usually both assistants go in the "goallineassistants" field | String | optional |
Aggregate Score | aggregatescore | The aggregate score for matches played over two legs. | String | optional |
Man of the Match | motm | The Man of the Match.
| String | optional |
MVP | mvp | The Most Valuable Player | String | optional |
Note | note | Space for any notes regarding the match. | String | optional |
Penalties 1 | penalties1 | The penalties for the home team.
| String | optional |
Penalty Score | penaltyscore | The score in the penalty shoot-out.
| String | optional |
Penalties 2 | penalties2 | The penalties for the guest team.
| String | optional |
Shootout 1 | shootout1 | The shootout goal attempts for the home team.
| String | optional |
Shootout Score | shootoutscore | The score in the penalty shoot-out (alternative to penaltyscore).
| String | optional |
Shootout 2 | shootout2 | The shootout goal attempts for the guest team.
| String | optional |
Format | format | Set to 1 to leave more space for round/date and location.
| Number | optional |
Size | size | Width of the box.
| Number | optional |
Result | result | Changes the color of the box based on result.
| String | optional |
Background | bg | Background color.
| String | optional |
No Bars | nobars | Set to 1 to hide bars.
| Number | optional |
Class | class | Used to uncollapse the box.
| String | optional |