此模板基於以下Lua模塊編寫:
This template is used primarily in infoboxes to create a 頓號 delimited collection of items, only adding the 頓號 where needed.
For lists of items, without bullets, use 模板連結:{{plainlist}}.
參數及使用方法
輸入:
{{comma separated entries|甲項|乙項|丙項|丁項|戊項|……}}
效果:
- 甲項、乙項、丙項、丁項、戊項、……
範例
代碼 | 效果 |
---|---|
{{comma separated entries|甲項|乙項|丙項|丁項}} |
甲項、乙項、丙項、丁項 |
{{comma separated entries| |乙項|丙項|丁項}} |
乙項、丙項、丁項 |
{{comma separated entries|甲項| |丙項|丁項}} |
甲項、丙項、丁項 |
{{comma separated entries|甲項|乙項| |丁項}} |
甲項、乙項、丁項 |
{{comma separated entries|甲項|乙項|丙項| }} |
甲項、乙項、丙項 |
{{comma separated entries|甲項| | | }} |
甲項 |
{{comma separated entries| |乙項| | }} |
乙項 |
{{comma separated entries| | |丙項| }} |
丙項 |
{{comma separated entries| | | |丁項}} |
丁項 |
{{comma separated entries| | | | }} |
|
{{comma separated entries|甲項|乙項|丙項|丁項|戊項|己項}} |
甲項、乙項、丙項、丁項、戊項、己項 |
重定向
- 模板連結:{{頓號分隔各項}}
參見
- 模板連結:{{Template:Slight-pause mark list}}(頓號分隔各項,惟項目內強制不換行)
- 模板連結:{{逗號分隔各項}}
- 模板連結:{{br separated entries}} (displays a list with an item per line)
- 模板連結:{{plainlist}} (same as above, but using regular unordered list markup)
- 模板連結:{{flatlist}} (converts a regular unordered list into an inline list separated by interpuncts)
- 模板連結:{{multi-column numbered list}}
- 模板連結:{{pagelist}} (formats a list of internal links as prose, using commas or "and" when appropriate)
- Module:Separated entries, the Lua module used to realize this template.