This template uses Lua: |
This template is used on approximately 40,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Outputs each of the parameters separated by commas and, between the second last and last, the word " and " (this can be changed with the and= parameter). Any number of parameters may be specified.
It is intended for use by other templates to output a suitably formatted list when the number of parameters varies. Named parameters, except for those specified below, are discarded.
White space in parameters is discarded. To include white space, use a character entity reference or numeric character reference.
((Enum|first|second|third| ... ))
The named parameters are:
More examples are given in the test cases.
Input | Output |
---|---|
((Enum)) |
|
((Enum|A)) |
A |
((Enum|A|B)) |
A and B |
((Enum|A|B|C)) |
A, B and C |
((Enum|A|B|C|D)) |
A, B, C and D |