Difference between revisions of "Template:Cslist/doc"
Jump to navigation
Jump to search
imported>Jonesey95 (update and copy edit.) |
imported>Ahecht |
||
| Line 24: | Line 24: | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| − | + | [[Category:List formatting and function templates]] | |
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 15:23, 25 May 2020
Script error: No such module "Uses TemplateStyles".
| This is a documentation subpage for Template:Cslist. It contains usage information, categories and other content that is not part of the original template page. |
| 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