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. The game parameter, |game=yes or |game=y, changes "1st leg, 2nd leg" to "Game 1, Game 2". The replay parameter, |replay=yes or |replay=y, changes "1st leg, 2nd leg" to "Match, Replay" and "Agg." to "Score/Agg." where applicable.

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")
|game = ("yes" or "y")
|replay = ("yes" or "y")
|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 Lisbon2–4Template 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 leg3rd leg4th legNotes
Testing Lisbon2–4Template United 1–0 1–2 0–0 0–2 Referee needs glasses

Example 3: 4 games

edit
{{TwoLeg start
|legs = 4
|team-width = 
|team1 = Home
|score-width = 
|team2 = Away
|game = yes
|extra = Notes
}}
Home Agg.Tooltip Aggregate score Away Game 1 Game 2Game 3Game 4Notes
Testing Lisbon2–4Template United 1–0 1–2 0–0 0–2 Blind as a bat

Example 4: 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 legNotes
Testing Lisbon2–2Template United 1–0 1–2 Testing Lisbon progress on away goals

Example 5: 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 legPlayoff
Testing Lisbon2–2Template United 2–0 0–2 1–0

Example 6: Replay matches

edit
{{TwoLeg start
|legs = 2
|team-width = 
|team1 = Home
|score-width = 
|team2 = Away
|replay = yes
}}
Home Score/Agg.Tooltip Aggregate score Away Match Replay
Testing Lisbon2–4Template United 1–1 1–3
Template F.C.1–0Testing City