සැකිල්ල:comma-conj-list
- පහත දැක්වෙන උපදෙස්, සැකිල්ල:comma-conj-list/documentation හි පිහිටා ඇත. සැකිල්ල:comma-conj-list/documentation]]. [සංස්කරණය]
- ප්රයෝජනවත් සබැඳි: උප පිටු ලැයිස්තුව • සබැඳි • යළි යොමු • transclusions • errors (parser/module) • sandbox
Usage
සංස්කරණයThis is a meta-template, intended to be used by other templates that need to create a comma-separate list with a conjunction before the last item.
To use it, specify a conjunction using conj=and or conj=or, and list one or more items to be grouped into list of the form "X, Y, and Z". For example, this:
- {{comma-conj-list|conj=and|X|Y|Z}}
produces this:
- X, Y, and Z
If conj= is missing or blank, or if conj=,, then the last two items are separated by a comma and no conjunction. For example, this:
- {{comma-conj-list|conj=,|X|Y|Z}}
produces this:
- X, Y, Z
Unit tests
සංස්කරණයUnit tests (+/-)
- tests with regular conjunctions:
- tests with conj= missing or blank or ,: