Template:Football box collapsible

From Hattrick
Revision as of 08:37, 18 August 2026 by Dalepopp (talk | contribs)
Jump to navigationJump to search


Usage

This template creates a collapsible football match box.

The result parameter controls the background color of the match box. The result should be entered from the perspective of the club whose season page is being displayed.

For match events, events1 and events2 are preferred. The older goals1 and goals2 parameters remain supported for compatibility with existing pages.

Enter the match-report URL directly in report. The template automatically displays the link as Match report. A different label can be specified with reportlabel.

Copy/paste

{{Football box collapsible
| round =
| date =
| time =
| team1 =
| score =
| team2 =
| events1 =
*
| report =
| events2 =
*
| stadium =
| attendance =
| referee =
| assistantreferees =
| motm =
| result =
| competition = default
}}

Unused parameters may be left blank or removed.

Results

Use:

  • W = Win
  • D = Draw
  • L = Loss

The result is from the perspective of the club whose season page is being displayed, regardless of whether that club is team1 or team2.

Match events

Events should be listed chronologically under the appropriate team.

Examples:

* Player Name {{goal|54}}
* Player Name {{goal|54|pen.}}
* Player Name {{yel|33}}
* Player Name {{sent off|0|86}}

The event lists are displayed without normal list bullets.

Additional event templates or inline images may be used in events1 and events2 as needed.

Match report

Enter only the URL:

| report = https://www.hattrick.org/Club/Matches/Match.aspx?matchID=700538146&SourceSystem=Hattrick

It will display as:

Match report

To use another label:

| reportlabel = Report

Example

{{Football box collapsible
| round = Week 3
| date = 14 August 2022
| time = 18:00
| team1 = [[Nashville FC]]
| score = 1–1
| team2 = [[Hourmen]]
| events1 =
* Matthew Dozier {{yel|33}}
* Phil Roof {{goal|54|pen.}}
| report = https://www.hattrick.org/Club/Matches/Match.aspx?matchID=700538146&SourceSystem=Hattrick
| events2 =
* Augusto Botero {{goal|39}}
| stadium = Dudley Field
| attendance = 7,308
| result = D
| competition = default
}}
14 August 2022 Week 3 Nashville FC 1–1 Hourmen Dudley Field
18:00 Template:Plainlist Match report Template:Plainlist Attendance: 7,308