Template:Series

From Wikipedia, the free encyclopedia

Other Sister Projects sharing this template or one like it

Metawiki
Our umbrella organization, Metawiki has this template: [[m:template:|]]



Wikipedia
Wikipedia has this template: Series


Commons
The sister project Commons has this template: Series


Wikibooks logo
Wikibooks has the similar template:
Wikiquote
The sister project Wikiquote has this template: Series


Wikisource
The sister project Wikisource has this template: Series


Wiktionary
The sister project Wiktionary has this template: Series


Wikinews
The sister project Wikinews has this template: Series


Wikispecies
Wikispecies has this template: Series


Wikiversity
The sister project Wikiversity has this template: Series






Usage:
This template generates a comma separated list of zero to ten items.

{{series
|type=or / and (text to print before last item in list)
|item1|item2|item3...|item10}}

Examples:
Is your favorite color red{{series |type=or|blue|yellow|green}}?
Is your favorite color red, blue, yellow or green?

My favorite colors are red{{series |type=and|blue}}.
My favorite colors are red and blue.

Is your favorite color red{{series |type=irrelevant}}?
Is your favorite color red?

The primary intent is for this template to be passed conditional parameters in a form similar to:
{{series |type=and|{{{first|}}}|{{{second|}}}|{{{third|}}}...|{{{tenth|}}}}}

If some of these passed parameters are blank then the series template will ignore them. This can allow other templates to generate comma separated lists of variable length.