Changes
Not 8 parameters
{{Documentation subpage}}
{{Lua|Module:Separated entries}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Outputs each of the parameters separated by commas or, between the first and last, the word " and ", preceded by a comma (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]].
== Usage ==
<tt><nowiki>{{</nowiki>{{BASEPAGENAME}}|''first''|''second''|''third''| ... }}</tt>
The named parameters are:
:<tt>'''after'''</tt>: The text to follow the final item. This might be a semicolon, for example. The default is to have no following text. This is not used if the list is empty (has no items).
:<tt>'''and'''</tt>: The text to use where by default ", and " is written. This may be overridden if there is a preference for a comma before the "and", or where it makes sense to write it in a language other than English, for example.
:<tt>'''comma'''</tt>: The text to use between items except the last and one-before-last. If not specified, the default is ",&nbsp;".
:Any of the named parameters can be set empty; this differs from them not being present (i.e. use the default).
== Examples ==
More examples are given in the [[{{FULLBASEPAGENAME}}/testcases|test cases]].
{| class="wikitable"
! Input !! Output
|-
| {{tlc|{{BASEPAGENAME}}}} || {{{{BASEPAGENAME}}|}}
|-
| {{tlc|{{BASEPAGENAME}}|A}} || {{{{BASEPAGENAME}}|A}}
|-
| {{tlc|{{BASEPAGENAME}}|A|B}} || {{{{BASEPAGENAME}}|A|B}}
|-
| {{tlc|{{BASEPAGENAME}}|A|B|C}} || {{{{BASEPAGENAME}}|A|B|C}}
|-
| {{tlc|{{BASEPAGENAME}}|A|B|C|D}} || {{{{BASEPAGENAME}}|A|B|C|D}}
|}
== See also ==
* [[Template:And list]]
* [[Template:Separated entries]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia metatemplates]]
</includeonly>
{{Lua|Module:Separated entries}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Outputs each of the parameters separated by commas or, between the first and last, the word " and ", preceded by a comma (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]].
== Usage ==
<tt><nowiki>{{</nowiki>{{BASEPAGENAME}}|''first''|''second''|''third''| ... }}</tt>
The named parameters are:
:<tt>'''after'''</tt>: The text to follow the final item. This might be a semicolon, for example. The default is to have no following text. This is not used if the list is empty (has no items).
:<tt>'''and'''</tt>: The text to use where by default ", and " is written. This may be overridden if there is a preference for a comma before the "and", or where it makes sense to write it in a language other than English, for example.
:<tt>'''comma'''</tt>: The text to use between items except the last and one-before-last. If not specified, the default is ",&nbsp;".
:Any of the named parameters can be set empty; this differs from them not being present (i.e. use the default).
== Examples ==
More examples are given in the [[{{FULLBASEPAGENAME}}/testcases|test cases]].
{| class="wikitable"
! Input !! Output
|-
| {{tlc|{{BASEPAGENAME}}}} || {{{{BASEPAGENAME}}|}}
|-
| {{tlc|{{BASEPAGENAME}}|A}} || {{{{BASEPAGENAME}}|A}}
|-
| {{tlc|{{BASEPAGENAME}}|A|B}} || {{{{BASEPAGENAME}}|A|B}}
|-
| {{tlc|{{BASEPAGENAME}}|A|B|C}} || {{{{BASEPAGENAME}}|A|B|C}}
|-
| {{tlc|{{BASEPAGENAME}}|A|B|C|D}} || {{{{BASEPAGENAME}}|A|B|C|D}}
|}
== See also ==
* [[Template:And list]]
* [[Template:Separated entries]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia metatemplates]]
</includeonly>