Module:Sports series/doc: Difference between revisions

Content deleted Content added
Line 298:
|-
 
|style="text-align:center;vertical-align:top"|{{TOC tab|suffixprefix}}
|style="background-color:#fff"|Adds a custom suffix afterChanges the ordinalformat forof the leg score column headings. DefaultInstead isof using "<codeordinal> leg", now the format will be "<nowikiprefix>leg </nowikinumber>". 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 <number></code>. If {{para|leg''N''}} is set, this will replace the ''N''th leg score column heading, overriding the custom suffixprefix.
 
==== Example 7 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|suffixflag=matchn|legs=7|prefix=Game|aggregate=Series
|[[Golden State Warriors]]|3–4|[[Cleveland Cavaliers]]|104–89|110–77|90–120|108–97|97–112|101–115|89–93
}}</pre>
 
; Output
{{#invoke:Sports series|main|bold_winner=y|flag=n|legs=7|prefix=Game|aggregate=Series
|[[Golden State Warriors]]|3–4|[[Cleveland Cavaliers]]|104–89|110–77|90–120|108–97|97–112|101–115|89–93
}}
 
==== Example 8 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|flag=n|legs=7|prefix=Game|aggregate=Seriesy
|[[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
Line 311 ⟶ 322:
 
; Output
{{#invoke:Sports series|main|bold_winner=y|suffixprefix=matchy
|[[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
Line 322 ⟶ 333:
|-
 
|style="text-align:center;vertical-align:top"|{{TOC tab|prefixsuffix}}
|style="background-color:#fff"|ChangesAdds a custom suffix after the formatordinal offor the leg score column headings. InsteadDefault ofis using "<ordinalcode> leg", now the format will be "<prefixnowiki> leg<number>". 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 <number/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|prefix}} takes precedence over {{para|suffix}}.
 
==== Example 8 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|flag=n|legs=7|prefix=Game|aggregate=Series
|[[Golden State Warriors]]|3–4|[[Cleveland Cavaliers]]|104–89|110–77|90–120|108–97|97–112|101–115|89–93
}}</pre>
 
; Output
{{#invoke:Sports series|main|bold_winner=y|flag=n|legs=7|prefix=Game|aggregate=Series
|[[Golden State Warriors]]|3–4|[[Cleveland Cavaliers]]|104–89|110–77|90–120|108–97|97–112|101–115|89–93
}}
 
==== Example 9 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|prefixsuffix=ymatch
|[[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
Line 346:
 
; Output
{{#invoke:Sports series|main|bold_winner=y|prefixsuffix=ymatch
|[[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