Template:Football box collapsible/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Football box collapsible. It contains usage information, categories and other content that is not part of the original template page. |
Contents
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:
{{footballbox_collapsible
|date = 9 July 2006
|time = 20:00 [[Central European Summer Time|CEST]]
|round = [[2006 FIFA World Cup Final|Final]]
|team1 = {{fb-rt|ITA}}
|score = 1 – 1 ([[Extra time|a.e.t.]])
|report = [http://www.fifa.com/worldcup/archive/germany2006/results/matches/match=97410064/report.html (Report)]
|team2 = {{fb|FRA}}
|goals1 = [[Marco Materazzi|Materazzi]] {{goal|19}}
|goals2 = [[Zinedine Zidane|Zidane]] {{goal|7|pen.}} {{sent off|0|110}}
|stadium = [[Olympic Stadium (Berlin)|Olympiastadion]]
|location = [[Berlin]], [[Germany]]
|attendance = 69,000
|referee = [[Horacio Elizondo]] ([[Argentine Football Association|Argentina]])
|penalties1 = [[Andrea Pirlo|Pirlo]] {{pengoal}}<br />[[Marco Materazzi|Materazzi]] {{pengoal}}<br />[[Daniele De Rossi|De Rossi]] {{pengoal}}<br />[[Alessandro Del Piero|Del Piero]] {{pengoal}}<br />[[Fabio Grosso|Grosso]] {{pengoal|scored}}
|penaltyscore = 5 – 3
|penalties2 = {{pengoal}} [[Sylvain Wiltord|Wiltord]]<br />{{penmiss|hit crossbar}} [[David Trezeguet|Trezeguet]]<br />{{pengoal}} [[Éric Abidal|Abidal]]<br />{{pengoal}} [[Willy Sagnol|Sagnol]]
}}
Sample result:
| 9 July 2006 Final | Italy File:Flag of Italy.svg | 1 – 1 (a.e.t.) (5 – 3 p) | 23x15px France | Berlin, Germany |
| 20:00 CEST | Materazzi Goal 19Template:` | (Report) | Zidane Goal 7Template:` (pen.) Template:Sent off | Stadium: Olympiastadion Attendance: 69,000 Referee: Horacio Elizondo (Argentina) |
| Penalties | ||||
| Pirlo Template:Pengoal Materazzi Template:Pengoal De Rossi Template:Pengoal Del Piero Template:Pengoal Grosso Template:Pengoal |
Template:Pengoal Wiltord Template:Penmiss Trezeguet Template:Pengoal Abidal Template:Pengoal Sagnol |
|||
Blank Template
All available parameters are shown here.
{{footballbox collapsible
<!-- recommended or required parameters -->
|date =
|time =
|round =
|team1 =
|score =
|report =
|team2 =
|goals1 =
|goals2 =
|stadium =
<!-- optional parameters -->
|location =
|attendance =
|referee =
|assistantreferees =
|fourthofficial =
|goallineassistants =
<!-- penalty parameters, required if the match went to shootout -->
|penalties1 =
|penaltyscore =
|penalties2 =
<!-- formatting/color parameters -->
|size = <!-- for example 80%, by default 100% -->
|result = <!-- W or L or D (or T) -->
|bg = <!-- color -->
|nobars = <!-- 1 to hide bars, 0 to show them, default: 0 -->
}}
Parameters
Required parameters: team1, team2, score (if the match has occured), and report. Everything else is optional, though goals1, goals2, referee, location, and stadium are highly encouraged wherever this template is used.
Content Parameters
- attendance - Match attendance as reported in the match report.
- date - Date of the match. Manual Of Style states that linking of dates purely for the purpose of auto-formatting is now deprecated. Recommended format: Month DD, YYYY
- location & stadium - If location is not specified, the value of stadium will appear at the top of the far right column "above the fold". If location is specified, then only the location value will appear "above the fold" on the right, and the value of stadium will be shown with the prefix "Stadium:" beside it only when the box score is expanded.
- goals1 and goals2 - Goals scored and optionally cards issued. Use {{goal}}, {{yel}}, and {{sent off}} with the last name (or professional name) of the player involved. Place a line break <br> between each player listed. If a player scores more than one goal (or cards) these can be grouped together so that the player's name only appears once. This is not required though. Preference should be given to listing goals (and cards) in chronological order.
- penaltyscore - The result of the penalty shootout.
- score - The final score of the match. If the match went into extra time (or to penalties) (a.e.t.) should be appended as shown in the example.
- time - Time of the match. The local time of the match (local to the stadium it took place in). Either 24h or 12h formats are acceptable.
- team1 and team2 - Typically team1 is the home team. Both should be wikilined to a team page if there is one.
- referee - Name of head referee (wikilinked only if there is a page for the referee). The referee's national federation in parenthesis is optional but recommended when the box score is for an international competition.
- assistantreferees, fourthofficial & goallineassistants - Further detailed referee information. Same guidelines apply as referee.
- report - An external link to an official match report or box score. It is important that match information be referenced, so please use this parameter! (See also: Verifiability and No Original Research)
- round - For use when the match is part of a tournament with various rounds of play, such as Preliminary Round, First Round, Group Stage, etc. Wikilinking to the appropriate tournament page/section is recommended.
Formatting Parameters
- bg - Use this param to specify a custom background color (ignored if result is specified). Use RRGGBB values without the # sign. Example: |bg=99C0B0
- nobars - Set this parameter to 1 if you don't want the one pixel bars to show above and below the template. Example: |nobars=1
- result - Adjusts background color to indicate win (green), tie/draw (yellow), loss (red). Possible values: W, L, T, or D. See the Legend section below when using this parameter.
- size - By default Footballbox_collapsible is 100% wide. Use this param to specify a different width. Example: |size=80%
- stack - Use when multiple {{footballbox collapsible}}s are stacked together. It causes the bottom bar to be hidden so that a thick bar does not appear between each box score. Example |stack=yes
Legend
Simple coloring legend recommended when an article makes use of result parameter:
{{legend2|#CCFFCC|Win|border=1px solid #AAAAAA}}
{{legend2|#FFFFCC|Tie|border=1px solid #AAAAAA}}
{{legend2|#FFCCCC|Loss|border=1px solid #AAAAAA}}
Which produces:
Win Tie Loss
See also
- {{footballbox}} - almost the same thing, but not collapsible