Template:Cslist: Difference between revisions
Template page
More actions
Created page with "<templatestyles src="Cslist/styles.css" />{{#invoke:Cslist |makelist}}<noinclude> {{documentation}}<!-- Please place categories and language links on the /doc page, not here! --> </noinclude>" |
No edit summary |
||
Line 1: | Line 1: | ||
<templatestyles src="Cslist/styles.css" />{{#invoke:Cslist |makelist}}<noinclude> | <templatestyles src="Template:Cslist/styles.css" />{{#invoke:Cslist |makelist}}<noinclude> | ||
{{documentation}}<!-- Please place categories and language links on the /doc page, not here! --> | {{documentation}}<!-- Please place categories and language links on the /doc page, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 22:16, 15 March 2025
This template uses TemplateStyles: |
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}} →
|