Usage

edit

This template is used to create the start of a results table for association football matches that spanned multiple legs. The headers for the team names can be adjusted using the team1 and team2 parameters. The number of legs for the matches can be set by the legs parameter. The extra parameter can be used to add a further column at the end of the table for notes etc.

Use {{TwoLegResult}} to show the results of each match. When using {{TwoLegResult}}, you must use {{table end}} after the results to close the table that is started by this template.

Parameters

edit
{{TwoLeg start
|collapsed = (makes the table hide as collapsed - default is off)
|title = (adds a named header to the table - default is off)
|legs = (default is two legs)
|team-width = (default is 250px)
|team1 = (default is "Team 1")
|score-width = (default is 80px)
|team2 = (default is "Team 2")
|extra = (gives an extra column with given name - default is off)
}}

Example 1: Basic usage

edit
{{TwoLeg start
|team1 = Home
|team2 = Away
}}
Home Agg.Tooltip Aggregate score Away 1st leg 2nd leg
Testing Lisbon 2–4 Template United 1–0 1–4

Example 2: 4 legs

edit
{{TwoLeg start
|legs = 4
|team-width = 
|team1 = Home
|score-width = 
|team2 = Away
|extra = Notes
}}
Home Agg.Tooltip Aggregate score Away 1st leg 2nd leg 3rd leg 4th leg Notes
Testing Lisbon 2–4 Template United 1–0 1–2 0–0 0–2 Referee needs glasses

Example 3: Collapsed table

edit
{{TwoLeg start
|collapsed = y
|title = First round of the Test Cup
|legs = 2
|team-width = 
|team1 = Home
|score-width = 
|team2 = Away
|extra = Notes
}}
First round of the Test Cup
Home Agg.Tooltip Aggregate score Away 1st leg 2nd leg Notes
Testing Lisbon 2–2 Template United 1–0 1–2 Testing Lisbon progress on away goals

Example 4: Playoff leg

edit
{{TwoLeg start
|legs = 2
|team-width = 
|team1 = Home
|score-width = 
|team2 = Away
|extra = Playoff
}}
Home Agg.Tooltip Aggregate score Away 1st leg 2nd leg Playoff
Testing Lisbon 2–2 Template United 2–0 0–2 1–0