Content deleted Content added
S.A. Julio (talk | contribs) add |
S.A. Julio (talk | contribs) add examples |
||
Line 147:
|style="text-align:center;vertical-align:top"|{{TOC tab|generate_links}}
|style="background-color:#fff"|To enable, set to a positive value (e.g. y, yes, 1). Automatically generates wikilinks around match scores, linking to anchors in the format of "[Team 1] v [Team 2]" for the first leg and single-leg ties, and "[Team 2] v [Team 1]" for the second leg. If the first and/or second team from a tie is missing, the text within the anchor will default to "Team 1" and/or "Team 2", respectively. A link will be placed around the match score (or match date for future fixtures), excluding any text in parentheses, unless a link is already present around the score, in which case no change will be made.
==== Example 3 ====
; Usage
<pre>{{#invoke:Sports series|main|generate_links=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
|[[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 FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}</pre>
; Output
{{#invoke:Sports series|main|generate_links=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
|[[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 FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}
|style="background-color:#fff"|String
Line 172 ⟶ 190:
|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
; Usage
<pre>{{#invoke:Sports series|main|collapsed=y
Line 198 ⟶ 216:
|style="background-color:#fff"|Adds a [[MOS:TABLECAPTION|caption]] to the table.
==== Example
; Usage
<pre>{{#invoke:Sports series|main|caption=This is a caption
Line 218 ⟶ 236:
|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
; Usage
<pre>{{#invoke:Sports series|main|title=This is a title
Line 275 ⟶ 293:
This feature is useful when transcluding content to country-related articles, for example [[2024–25 in German football]]. However, note that if a module is being transcluded via [[Help:Labeled section transclusion|labeled section transclusion]], template parameters cannot be passed.
==== Example 7 ====
; Usage
<pre>{{#invoke:Sports series|main|show_country=ENG
|[[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 FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}</pre>
; Output
{{#invoke:Sports series|main|show_country=ENG
|[[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 FC|Paris Saint-Germain]]|FRA|6–4|[[FC Barcelona|Barcelona]]|ESP|2–3|4–1
}}
|style="background-color:#fff"|String
Line 330 ⟶ 366:
|style="background-color:#fff"|Adds a custom heading for the ''N''th leg column (e.g. {{para|leg1}} for the first leg column, {{para|leg3}} for the third leg column, etc.). Default is <code><ordinal> leg</code> (e.g. <code>1st leg</code> for the first leg column, <code>3rd leg</code> for the third leg column, etc.).
==== Example
; Usage
<pre>{{#invoke:Sports series|main|leg1=Game 1|leg2=Second Leg
Line 354 ⟶ 390:
|style="background-color:#fff"|Changes the format of the leg score column headings. Instead of using "<ordinal> leg", now the format will be "<leg_prefix> ''N''". Any string can be specified through the parameter to add as a custom prefix. However, when set only to a positive value (e.g. y, yes, 1), the output will default to <code>Leg ''N''</code>. If {{para|leg''N''}} is set, this will replace the ''N''th leg score column heading, overriding the custom prefix.
==== Example
; Usage
<pre>{{#invoke:Sports series|main|flag=n|legs=7|leg_prefix=Game|aggregate=Series
Line 365 ⟶ 401:
}}
==== Example
; Usage
<pre>{{#invoke:Sports series|main|leg_prefix=y
Line 389 ⟶ 425:
|style="background-color:#fff"|Adds a custom suffix after the ordinal for the leg score column headings. Default is <code><nowiki>leg</nowiki></code>. If {{para|leg''N''}} is set, this will replace the ''N''th leg score column heading, overriding the custom suffix. In addition, {{para|leg_prefix}} takes precedence over {{para|leg_suffix}}.
==== Example
; Usage
<pre>{{#invoke:Sports series|main|leg_suffix=match
Line 413 ⟶ 449:
|style="background-color:#fff"|Adds a custom heading spanning all columns above the ''N''th row of the table (e.g. {{para|heading1}} for above the first row, {{para|heading20}} for above the twentieth row, etc.).
==== Example
; Usage
<pre>{{#invoke:Sports series|main|flag=n|legs=n|h_a=y|heading1=Semi-finals|heading3=Final
|