Module:Sports series/doc: Difference between revisions

Content deleted Content added
update documentation
Line 1:
{{Module rating|beta<!-- Values: pre-alpha • alpha • beta • release • protected • semiprotected -- If a rating not needed/relevant, delete this template call -->}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
This is a module for generating match results for a sports series, such as a [[two-legged tie]]. However, the module can support single-leg ties up to an unlimited number of legs. The template supports domestic and international club matches, as well as national teamfootball matches. While deisgneddesigned for [[association football]], it can be used for any sport that features a series between teams.
 
== Usage ==
Line 10:
 
<pre>{{#invoke:Sports series|main
|first_clubfirst_team|first_association|aggregate|second_clubsecond_team|second_association|first_leg|second_leg
}}</pre>
 
=== DomesticNational team or domestic club football ===
For two-legged ties in national team or domestic club football, five parameters are expected to be passed for each row. This includes each club's name, the aggregate score and the score of both legs. The parameter {{para|flag|n}} must be passed to disable the country flag parameter.
 
<pre>{{#invoke:Sports series|main|flag=n
|first_clubfirst_team|aggregate|second_clubsecond_team|first_leg|second_leg
}}</pre>
 
=== National team football ===
For two-legged ties in national team football, five parameters are expected to be passed for each row. This includes each national team's name/code, the aggregate score and the score of both legs.
 
; Men
<pre>{{#invoke:Sports series|main|type=NT
|first_nation|aggregate|second_nation|first_leg|second_leg
}}</pre>
 
; Women
<pre>{{#invoke:Sports series|main|type=WNT
|first_nation|aggregate|second_nation|first_leg|second_leg
}}</pre>
 
Line 41 ⟶ 28:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}</pre>
 
Line 49 ⟶ 36:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}
 
Line 69 ⟶ 56:
}}
 
=== Men's nationalNational team football ===
; Usage
<pre>{{#invoke:Sports series|main|typeflag=NTn
|{{fb-rt|UKR}}|3–1|{{fb|SVN}}|2–0|1–1
|{{fb-rt|SWE}}|4–3|{{fb|DEN}}|2–1|2–2
|{{fb-rt|BIH}}|1–3|{{fb|IRL}}|1–1|0–2
|{{fb-rt|NOR}}|1–3|{{fb|HUN}}|0–1|1–2
}}</pre>
 
; Output
{{#invoke:Sports series|main|typeflag=NTn
|{{fb-rt|UKR}}|3–1|{{fb|SVN}}|2–0|1–1
|{{fb-rt|SWE}}|4–3|{{fb|DEN}}|2–1|2–2
|{{fb-rt|BIH}}|1–3|{{fb|IRL}}|1–1|0–2
|{{fb-rt|NOR}}|1–3|{{fb|HUN}}|0–1|1–2
}}
 
=== Women's national team football ===
; Usage
<pre>{{#invoke:Sports series|main|type=WNT
|SRB|2–3|ISL|1–1|1–2
|HUN|Match 2|BEL|1–5|27 Aug
|BIH|Match 3|SWE|0–5|28 Aug
|CRO|0–8|NOR|0–3|0–5
}}</pre>
 
; Output
{{#invoke:Sports series|main|type=WNT
|SRB|2–3|ISL|1–1|1–2
|HUN|Match 2|BEL|1–5|27 Aug
|BIH|Match 3|SWE|0–5|28 Aug
|CRO|0–8|NOR|0–3|0–5
}}
 
Line 111 ⟶ 81:
! Description
! Type
 
|-
 
|style="text-align:center;vertical-align:top"|{{TOC tab|type}}
|style="background-color:#fff"|Determines the type of competition to be featured. Valid values are <code>club</code> (default, for club competitions) or <code>NT</code> (for national team competitions).
 
Using <code>WNT</code> instead of <code>NT</code> allows for the default flag template being changed to {{tl|fbw}} without setting {{para|flag}}. Using <code>MNT</code> acts as an alias for <code>NT</code>. Note that while the documentation will make mention of what setting {{para|type|NT}} does to the output, it will be equally true for also setting it to <code>WNT</code> or <code>MNT</code>.
|style="background-color:#fff"|String
 
|-
 
|style="text-align:center;vertical-align:top"|{{TOC tab|flag}}
|style="background-color:#fff"|Determines the [[Wikipedia:WikiProject Flag Template|flag icon template]] which will be used in the table. The default for {{para|type|club}} is {{tl|fbaicon}}, the default for {{para|type|NT}} is {{tl|fb}}, and the default for {{para|type|WNT}} is {{tl|fbw}}. If set to a negative value (e.g. n, no, 0), no flags will be displayed for {{para|type|club}} (this will have no impact if {{para|type|NT}}). For {{para|type|NT}},If the textflag "-rt"template ispassed always added tothrough the endparameter ofdoes thenot template name for the first team columnexist, allowing for the flagmodule towill be aligneddefault to the right side of the cell{{tl|flagicon}}.
 
For {{para|type|club}}, flags are displayed next to club names, while for {{para|type|NT}} the national team codes/names are wrapped into the national team flag template. To support national team flag templates that use the first parameter to pass a special value (e.g. for youth team templates, such as {{tl|fbu}} which passes the age level), use a "+" in between the template name and the first parameter value (e.g. {{para|flag|fbu+17}} generates code for <code><nowiki>{{fbu|17|<country>}}</nowiki></code>).
 
If the flag template passed through the parameter does not exist, the module will revert to the default values for {{para|type|club}} or {{para|type|NT}}.
|style="background-color:#fff"|String
 
Line 141 ⟶ 99:
|[[Atlético Madrid]]|ESP|10–11|[[Borussia Dortmund]]|GER|2–1|2–4|2–1|2–4|2–1
|[[Real Madrid CF|Real Madrid]]|ESP|11–11 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1|3–3|1–1|3–3 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|14–11|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1|2–3|4–1|2–3
}}</pre>
 
Line 149 ⟶ 107:
|[[Atlético Madrid]]|ESP|10–11|[[Borussia Dortmund]]|GER|2–1|2–4|2–1|2–4|2–1
|[[Real Madrid CF|Real Madrid]]|ESP|11–11 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1|3–3|1–1|3–3 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|14–11|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1|2–3|4–1|2–3
}}
 
Line 158 ⟶ 116:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{aet}} {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP
}}</pre>
 
Line 166 ⟶ 124:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{aet}} {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP
}}
 
Line 298 ⟶ 256:
 
|style="text-align:center;vertical-align:top"|{{TOC tab|fill_blanks}}
|style="background-color:#fff"|To enable, set to a positive value (e.g. y, yes, 1). Adds a placeholder flag icon to the space next to a team's name when flag parameters are present in the table, but the parameter for a given team is left blank (for {{para|type|club}}) or does not contain a flag (for {{para|type|NT}}). This will have no impact if {{para|flag|falsen}}.
|style="background-color:#fff"|String
 
Line 354 ⟶ 312:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}</pre>
 
Line 362 ⟶ 320:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}
 
Line 389 ⟶ 347:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}</pre>
 
Line 397 ⟶ 355:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}
 
Line 413 ⟶ 371:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}</pre>
 
Line 421 ⟶ 379:
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
|[[Real Madrid CF|Real Madrid]]|ESP|4–4 {{pen|4–3}}|[[Manchester City F.C.|Manchester City]]|ENG|3–3|1–1 {{aet}}
|[[Paris Saint-Germain F.C.FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}
 
Line 433 ⟶ 391:
==== Example 10 ====
; Usage
<pre>{{#invoke:Sports series|main|typeflag=NTn|legs=n|h_a=y|heading1=Semi-finals|heading3=Final
|{{fb-rt|POL}}|5–1|{{fb|EST}}
|{{fb-rt|WAL}}|4–1|{{fb|FIN}}
|{{fb-rt|WAL}}|0–0 {{aet}} {{pso|4–5}}|{{fb|POL}}
}}</pre>
 
; Output
{{#invoke:Sports series|main|typeflag=NTn|legs=n|h_a=y|heading1=Semi-finals|heading3=Final
|{{fb-rt|POL}}|5–1|{{fb|EST}}
|{{fb-rt|WAL}}|4–1|{{fb|FIN}}
|{{fb-rt|WAL}}|0–0 {{aet}} {{pso|4–5}}|{{fb|POL}}
}}
 
Line 453 ⟶ 411:
Please note that in order to display a row in the table, at least one cell of said row must have value that is not empty or whitespace. Otherwise, the module will not create a row for that line and all others below it.
 
=== Team names/country codes ===
For {{para|type|club}}, theThe country codes supplied for each club are by default wrapped into {{tl|fbaicon}}, based on Wikipedia's [[Wikipedia:WikiProject Flag Template|country data]] system of templates, and displayed next to each team.
 
For {{para|type|NT}}, the national team names/codes supplied are by default wrapped into {{tl|fb}} and {{tl|fb-rt}}, based on Wikipedia's [[Wikipedia:WikiProject Flag Template|country data]] system of templates.
 
=== Leg and aggregate scores ===
Line 534 ⟶ 490:
 
; Usage 3 (for nil)
<pre>{{#invoke:Sports series|main|typeflag=NTn|legs=3|leg3=Play-off
|{{fb-rt|LUX}}|5–6|{{fb|DEN}}|3–3|2–2|0–1
|{{fb-rt|ESP+|1945}}|7–1|{{fb|IRL}}|5–1|2–0|nil
|{{fb-rt|FRA}}|2–5|{{fb|HUN}}|1–3|1–2|nil
|{{fb-rt|SWE}}|2–4|{{fb|URS}}|1–1|1–3|nil
}}</pre>
 
; Output 3 (for nil)
{{#invoke:Sports series|main|typeflag=NTn|legs=3|leg3=Play-off
|{{fb-rt|LUX}}|5–6|{{fb|DEN}}|3–3|2–2|0–1
|{{fb-rt|ESP+|1945}}|7–1|{{fb|IRL}}|5–1|2–0|nil
|{{fb-rt|FRA}}|2–5|{{fb|HUN}}|1–3|1–2|nil
|{{fb-rt|SWE}}|2–4|{{fb|URS}}|1–1|1–3|nil
}}
 
=== Simplified anchor links ===
Pages utilizing this module often include a wikilink with an [[WP:ANCHOR|anchor]] to the scores of the legs of a tie, linking to full match summaries. When using anchored wikilinks, the page title can be omitted if the anchor appears on the same page. However, such links generally do not function properly when transcluded to other articles.
 
Typically, when using anchored wikilinks, the page title can be omitted if the anchor appears on the same page. However, such links generally do not function properly when transcluded to other articles.
If the aggregate and/or leg parameters contain an anchored wikilink that omits the page title (for example, <code><nowiki>[[#A vs B|2–2]]</nowiki></code>), this module will automatically insert the page title during transclusion to ensure proper linking. For proper functionality, the "sports series" module code must originate from the same page that contains the anchors.
 
However, for this module, if any parameter contains an anchored wikilink that omits the page title (for example, <code><nowiki>[[#A vs B|2–2]]</nowiki></code>), the module will automatically insert the page title during transclusion to ensure proper linking. For proper functionality, the "sports series" module code must originate from the same page that contains the anchors.
 
=== Quasi-parameters ===
 
==== Plus sign (+) for flagcountry templatescodes/youthflag levelvariants ====
SomeTo youthallow national team flag templates, such as {{tl|fbu}}, have an additional parameter to passfor the ageuse levelof to be linked within to template. Toflag accomodatevariants, this module supports within the {{para|flag}}country code parameter the use of a plus sign (+) in between the country name of the flag template/code and the age level. For example, {{para|flag|fbu+17}} will generate a flag template in the formname of <code><nowiki>{{fbu|17|<country>}}</nowiki></code>. This only applies for {{para|type|NT}}. If the portion before the plus sign is a negative value (e.g. n, no, 0), the default flag template ({{tl|fb}}) will be usedvariant.
 
; Usage
<pre>{{#invoke:Sports series|main|type=NT|flag=fbu+17
|LUX|5–6|DEN|3–3|2–2
|ESP|7–1|IRL|5–1|2–0
|FRA|2–5|HUN|1–3|1–2
|SWE|2–4|NOR|1–1|1–3
}}</pre>
 
; Output
{{#invoke:Sports series|main|type=NT|flag=fbu+17
|LUX|5–6|DEN|3–3|2–2
|ESP|7–1|IRL|5–1|2–0
|FRA|2–5|HUN|1–3|1–2
|SWE|2–4|NOR|1–1|1–3
}}
 
==== Plus sign (+) for country codes/flag variants ====
To allow for the use of flag variants, this module supports within country parameters (the country code parameter for {{para|type|club}}, or the national team name/code parameter for {{para|type|NT}}), the use of a plus sign (+) in between the country name/code and the name of the flag variant.
 
; Usage 1
<pre>{{#invoke:Sports series|main|type=NT
|MLT+1943|5–6|GRE+old|3–3|2–2
}}</pre>
 
; Output 1
{{#invoke:Sports series|main|type=NT
|MLT+1943|5–6|GRE+old|3–3|2–2
}}
 
; Usage 2
<pre>{{#invoke:Sports series|main
|[[Atlético Madrid]]|ESP+1945|4–5|[[Borussia Dortmund]]|GER+empire|2–1|2–4
}}</pre>
 
; Output 2
{{#invoke:Sports series|main
|[[Atlético Madrid]]|ESP+1945|4–5|[[Borussia Dortmund]]|GER+empire|2–1|2–4
}}
 
==== Asterick (*) for strings instead of national teams ====
By default, when {{para|type|NT}} is set, the team parameters wrap into a flag template. However, it may be desired to pass a plan string to the template without a flag icon, for example as placeholder text for a team that will advance from a prior round. In this case, starting the team parameter with an asterick (*), followed by the text to be displayed, will result in the text showing in that team's cell instead of being wrapped into a flag template. If {{para|fill_blanks}} is set to a positive value (e.g. y, yes, 1), a placeholder flag will also be displayed.
 
; Usage 1
<pre>{{#invoke:Sports series|main|type=NT
|FRA|2–5|HUN|1–3|1–2
|SWE||*Winner QF1||
}}</pre>
 
; Output 1
{{#invoke:Sports series|main|type=NT
|FRA|2–5|HUN|1–3|1–2
|SWE||*Winner QF1||
}}
; Usage 2
<pre>{{#invoke:Sports series|main|type=NT|fill_blanks=y
|FRA|2–5|HUN|1–3|1–2
|SWE||*Winner QF1||
}}</pre>
 
; Output 2
{{#invoke:Sports series|main|type=NT|fill_blanks=y
|FRA|2–5|HUN|1–3|1–2
|SWE||*Winner QF1||
}}
 
==== Three apostrophes (<nowiki>'''</nowiki>) for manual bolding ====
While the template automatically bolds winning teams (unless {{para|bold_winner|n}}), in some situations the module will be unable to determine the winner. Or, some users may find it undesirable to have the module bold the winner automatically. In these cases, manual bolding can be used to indicate the winning team of a tie. This iscan simplebe to do for {{para|type|club}},done by placing the three apostrophes before and after the name of the team. Additionally, the module supports using three apostrophes around both sides of the national team name/code for {{para|type|NT}}. If {{para|bold_winner}} is not disabled, the team that is manually bolded will override the winning team as determined by the module. If {{para|color_winner}} is also set, the cell of the team that is manually bolded will also be colored.
 
This may be used in conjunction with the [[#Two apostrophes ('') for manual coloring|below method]] by using five apostrophes on either side of a team to bold and color the cell.
Line 632 ⟶ 535:
 
; Usage 1
<pre>{{#invoke:Sports series|main|typeflag=NTn|bold_winner=n
|{{fb-rt|LUX}}|5–6|'''{{fb|DEN}}'''|3–3|2–3
|'''{{fb-rt|ESP}}'''|7–1|{{fb|IRL}}|5–1|2–0
|{{fb-rt|FRA}}|2–5|'''{{fb|HUN}}'''|1–3|1–2
|{{fb-rt|SWE}}|2–4|'''{{fb|NOR}}'''|1–1|1–3
}}</pre>
 
; Output 1
{{#invoke:Sports series|main|typeflag=NTn|bold_winner=n
|{{fb-rt|LUX}}|5–6|'''{{fb|DEN}}'''|3–3|2–3
|'''{{fb-rt|ESP}}'''|7–1|{{fb|IRL}}|5–1|2–0
|{{fb-rt|FRA}}|2–5|'''{{fb|HUN}}'''|1–3|1–2
|{{fb-rt|SWE}}|2–4|'''{{fb|NOR}}'''|1–1|1–3
}}
 
; Usage 2 (third row overrides automatic bolding)
<pre>{{#invoke:Sports series|main|typeflag=NTn
|{{fb-rt|SWE}}|2–4|{{fb|NOR}}|1–1|1–3
|{{fb-rt|LUX}}|5–5 ([[Away goals rule|a]])|'''{{fb|DEN}}'''|3–3|2–2
|{{fb-rt|ESP}}|7–1|'''{{fb|IRL}}'''|5–1|2–0
}}</pre>
 
; Output 2 (third row overrides automatic bolding)
{{#invoke:Sports series|main|typeflag=NTn
|{{fb-rt|SWE}}|2–4|{{fb|NOR}}|1–1|1–3
|{{fb-rt|LUX}}|5–5 ([[Away goals rule|a]])|'''{{fb|DEN}}'''|3–3|2–2
|{{fb-rt|ESP}}|7–1|'''{{fb|IRL}}'''|5–1|2–0
}}
 
==== Two apostrophes (<nowiki>''</nowiki>) for manual coloring ====
While the template allows for automatic coloring of the cells of winning teams via {{para|color_winner|y}}, in some situations (such as matches tied on away goals) the module will be unable to determine the winner. Or, some users may find it undesirable to use {{para|color_winner}} to color the winner automatically. In these cases, manual coloring can be used to indicate the winning team of a tie. This iscan simplebe to do for {{para|type|club}},done by placing the two apostrophes before and after the name of the team. Additionally, the module supports using two apostrophes around both sides of the national team name/code for {{para|type|NT}}. If {{para|color_winner}} is set, the cell of team that is manually colored will override the winning team as determined by the module. If {{para|bold_winner}} is not disabled, the cell of the team that is manually colored will also be bolded.
 
This may be used in conjunction with the [[#Three apostrophes (''') for manual bolding|above method]] by using five apostrophes on either side of a team to color and bold the cell.
Line 671 ⟶ 574:
 
; Usage 1
<pre>{{#invoke:Sports series|main|typeflag=WNTn|bold_winner=n
|{{fbw-rt|LUX}}|5–6|''{{fbw|DEN}}''|3–3|2–3
|''{{fbw-rt|ESP}}''|7–1|{{fbw|IRL}}|5–1|2–0
|{{fbw-rt|FRA}}|2–5|''{{fbw|HUN}}''|1–3|1–2
|{{fbw-rt|SWE}}|2–4|''{{fbw|NOR}}''|1–1|1–3
}}</pre>
 
; Output 1
{{#invoke:Sports series|main|typeflag=WNTn|bold_winner=n
|{{fbw-rt|LUX}}|5–6|''{{fbw|DEN}}''|3–3|2–3
|''{{fbw-rt|ESP}}''|7–1|{{fbw|IRL}}|5–1|2–0
|{{fbw-rt|FRA}}|2–5|''{{fbw|HUN}}''|1–3|1–2
|{{fbw-rt|SWE}}|2–4|''{{fbw|NOR}}''|1–1|1–3
}}
 
; Usage 2 (third row overrides automatic coloring)
<pre>{{#invoke:Sports series|main|typeflag=WNTn|color_winner=y|bold_winner=n
|{{fbw-rt|SWE}}|2–4|{{fbw|NOR}}|1–1|1–3
|{{fbw-rt|LUX}}|5–5 ([[Away goals rule|a]])|''{{fbw|DEN}}''|3–3|2–2
|{{fbw-rt|ESP}}|7–1|''{{fbw|IRL}}''|5–1|2–0
}}</pre>
 
; Output 2 (third row overrides automatic coloring)
{{#invoke:Sports series|main|typeflag=WNTn|color_winner=y|bold_winner=n
|{{fbw-rt|SWE}}|2–4|{{fbw|NOR}}|1–1|1–3
|{{fbw-rt|LUX}}|5–5 ([[Away goals rule|a]])|''{{fbw|DEN}}''|3–3|2–2
|{{fbw-rt|ESP}}|7–1|''{{fbw|IRL}}''|5–1|2–0
}}
 
; Usage 3
<pre>{{#invoke:Sports series|main|typeflag=WNTn|legs=0|bold_winner=n
|{{fbw-rt|LUX}}|5–6|''{{fbw|DEN}}''
|''{{fbw-rt|ESP}}''|7–1|{{fbw|IRL}}
|{{fbw-rt|FRA}}|''2–2''|{{fbw|HUN}}
}}</pre>
 
; Output 3
{{#invoke:Sports series|main|typeflag=WNTn|legs=0|bold_winner=n
|{{fbw-rt|LUX}}|5–6|''{{fbw|DEN}}''
|''{{fbw-rt|ESP}}''|7–1|{{fbw|IRL}}
|{{fbw-rt|FRA}}|''2–2''|{{fbw|HUN}}
}}