Content deleted Content added
S.A. Julio (talk | contribs) →Parameter list: add |
S.A. Julio (talk | contribs) →Parameter list: add |
||
Line 103:
|style="text-align:center;vertical-align:top"|{{TOC tab|legs}}
|style="background-color:#fff"|Determines the number of legs that will be displayed in the table, and how many scores are expected to be passed to each row. The default is <code>2</code>. If set to a negative value (e.g. n, no, 0), the table will display no legs and will be formatted to display the results of single-leg ties (the aggregate column header will then be changed to "Score").
==== Example 1 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|legs=5
|[[Arsenal F.C.|Arsenal]]|ENG|6–8|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1|2–2|0–1|2–2
|[[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.|Paris Saint-Germain]]|FRA|14–11|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1|2–3|4–1|2–3
}}</pre>
; Output
{{#invoke:Sports series|main|bold_winner=y|legs=5
|[[Arsenal F.C.|Arsenal]]|ENG|6–8|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1|2–2|0–1|2–2
|[[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.|Paris Saint-Germain]]|FRA|14–11|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1|2–3|4–1|2–3
}}
==== Example 2 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|legs=n
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER
|[[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.|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP
}}</pre>
; Output
{{#invoke:Sports series|main|bold_winner=y|legs=n
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER
|[[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.|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP
}}
|style="background-color:#fff"|Number
Line 120 ⟶ 155:
|style="text-align:center;vertical-align:top"|{{TOC tab|collapsed}}
|style="background-color:#fff"|To enable, set to a positive value (e.g. y, yes, 1). If set, it collapses the table using [[Help:Collapsing#"mw-collapsed"|mw-collapsed]]. This results in the table being spread across the entire width of the page.
==== Example 3 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|collapsed=y
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
}}</pre>
; Output
{{#invoke:Sports series|main|bold_winner=y|collapsed=y
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
}}
|style="background-color:#fff"|String
Line 127 ⟶ 176:
|style="text-align:center;vertical-align:top"|{{TOC tab|caption}}
|style="background-color:#fff"|Adds a [[MOS:TABLECAPTION|caption]] to the table.
==== Example 4 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|caption=This is a caption
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
}}</pre>
; Output
{{#invoke:Sports series|main|bold_winner=y|caption=This is a caption
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
}}
|style="background-color:#fff"|String
Line 133 ⟶ 196:
|style="text-align:center;vertical-align:top"|{{TOC tab|title}}
|style="background-color:#fff"|Adds a title to the table in the form of a table header spanning all columns, placed above the standard column headings.
==== Example 5 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|title=This is a title
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
}}</pre>
; Output
{{#invoke:Sports series|main|bold_winner=y|title=This is a title
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1
|[[Atlético Madrid]]|ESP|4–5|[[Borussia Dortmund]]|GER|2–1|2–4
}}
|style="background-color:#fff"|String
Line 192 ⟶ 269:
|style="text-align:center;vertical-align:top"|{{TOC tab|leg''N''}}
|style="background-color:#fff"|Adds a custom heading for the
==== Example 6 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|leg1=Game 1|leg2=Game 2
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1
|[[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.|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}</pre>
; Output
{{#invoke:Sports series|main|bold_winner=y|leg1=Game 1|leg2=Game 2
|[[Arsenal F.C.|Arsenal]]|ENG|2–3|[[FC Bayern Munich|Bayern Munich]]|GER|2–2|0–1
|[[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.|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}
|style="background-color:#fff"|String
Line 198 ⟶ 292:
|style="text-align:center;vertical-align:top"|{{TOC tab|heading''N''}}
|style="background-color:#fff"|Adds a custom heading spanning all columns above the
==== Example 7 ====
; Usage
<pre>{{#invoke:Sports series|main|type=NT|legs=n|h_a=y|bold_winner=y|heading1=Semi-finals|heading3=Final
|POL|5–1|EST
|WAL|4–1|FIN
|WAL|0–0 {{aet}} {{pso|4–5}}|POL
}}</pre>
; Output
{{#invoke:Sports series|main|type=NT|legs=n|h_a=y|bold_winner=y|heading1=Semi-finals|heading3=Final
|POL|5–1|EST
|WAL|4–1|FIN
|WAL|0–0 {{aet}} {{pso|4–5}}|POL
}}
|style="background-color:#fff"|String
|