Template:Cslist/sandbox
< Template:Cslist
Jump to navigation
Jump to search
Revision as of 15:28, 18 September 2020 by imported>Izno (←Created page with '<templatestyles src="Cslist/styles.css" />{{#invoke:Cslist/sandbox |makelist}}<noinclude> {{documentation}} </noinclude>')
| This is the template sandbox page for Template:Cslist (diff). See also the companion subpage for test cases. |
Script error: No such module "Uses TemplateStyles".
| This template uses Lua: |
The "cslist" (comma-separated list) template allows editors to create a horizontal list similar to Template:Hlist, but using comma separators instead of mid-dots.
The template allows an optional |semi=, which when set to true or yes will use a semicolon as separator instead of a comma.
It calls Module:Cslist to process an arbitrary number of list items and generate the list.
Note: the unordered list which is generated is good for accessibility, and is intended for use only in tables and infoboxes as an alternative to {{hlist}}. It should not be used in article prose.
Examples
{{cslist | first item | second item | third item | etc}} →
|
{{cslist | first item | second item | third item | etc |semi=true}} →
|
See also
| The above documentation is transcluded from Template:Cslist/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |