Jump to content

Module:Params/doc/examples/Oxford comma

From mediawiki.org
Template documentation

This example template shows how to manage the “and” conjunction and possibly the Oxford comma in lists in which more than two parameters are provided.

Usage

[edit]

For instance, writing

{{module:params/doc/examples/Oxford comma|Latin|English|German|Italian}}

will generate

Foobar see also: Latin, English, German, and Italian

while writing

{{module:params/doc/examples/Oxford comma|German|Italian}}

will generate

Foobar see also: German and Italian

(without comma)