Module:Params/doc/examples/Oxford comma: Difference between revisions
From Kenshi Wiki
More actions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
|{{#invoke:params|sequential|squeezing|setting|i/l|, |{{#ifexpr:{{#invoke:params|sequential|squeezing|count}} > 2|,}} and |trimming_values|for_each|[[$@]]}} | |{{#invoke:params|sequential|squeezing|setting|i/l|, |{{#ifexpr:{{#invoke:params|sequential|squeezing|count}} > 2|,}} and |trimming_values|for_each|[[$@]]}} | ||
|{{Error|{{tl|Foobar see also}} requires at least one page name}} | |{{Error|{{tl|Foobar see also}} requires at least one page name}} | ||
}}}}</includeonly><noinclude>{{Documentation|heading=[[File:Test Template Info-Icon - Version (2).svg|50px|alt=|link=]] Template documentation}} | }}}}</includeonly><noinclude>{{Documentation|heading=[[File:Test Template Info-Icon - Version (2).svg|50px|alt=|link=]] Template documentation}} | ||
[[Category:Module data pages]] | |||
</noinclude> | |||
Latest revision as of 23:55, 14 March 2025
This example template shows to manage the “and” conjunction and possibly the Oxford comma in lists in which more than two parameters are provided.
Usage
For instance, writing
{{module:params/doc/examples/Oxford comma|Latin|English|German|Italian}}will generate
while writing
{{module:params/doc/examples/Oxford comma|German|Italian}}will generate
(without comma)