Module:Sports series/doc: Difference between revisions

Content deleted Content added
Usage: add
adjust parameter names
Line 323:
|-
 
|style="text-align:center;vertical-align:top"|{{TOC tab|prefixleg_prefix}}
|style="background-color:#fff"|Changes the format of the leg score column headings. Instead of using "<ordinal> leg", now the format will be "<prefixleg_prefix> <number>''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 <number>''N''</code>. If {{para|leg''N''}} is set, this will replace the ''N''th leg score column heading, overriding the custom prefix.
 
==== Example 7 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|flag=n|legs=7|prefixleg_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|prefixleg_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
}}
Line 339:
==== Example 8 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|prefixleg_prefix=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
Line 347:
 
; Output
{{#invoke:Sports series|main|bold_winner=y|prefixleg_prefix=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
Line 358:
|-
 
|style="text-align:center;vertical-align:top"|{{TOC tab|suffixleg_suffix}}
|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|prefixleg_prefix}} takes precedence over {{para|suffixleg_suffix}}.
 
==== Example 9 ====
; Usage
<pre>{{#invoke:Sports series|main|bold_winner=y|suffixleg_suffix=match
|[[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 371:
 
; Output
{{#invoke:Sports series|main|bold_winner=y|suffixleg_suffix=match
|[[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