Module:Cslist/doc: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
Added the page to Category:Module documentation pages |
||
Line 18: | Line 18: | ||
<!-- Categories below this line, please; interwikis at Wikidata --> |
<!-- Categories below this line, please; interwikis at Wikidata --> |
||
}}</includeonly> |
}}</includeonly><noinclude> |
||
[[Category:Module documentation pages]] |
|||
</noinclude> |
Revision as of 21:00, 29 August 2024
![]() | This Lua module is used on approximately 2,500 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
Module to implement Template:Cslist, which creates a horizontal list similar to Template:Hlist but using comma separators instead of mid-dots.
It can take as many list items as desired, and also an optional |semi=
, which when set to true
or yes
will use a semicolon as separator in place of the comma.
Note: the unordered list which is generated is good for accessibility, but really is only useful in tables and infoboxes as an alternative to using {{hlist}}. It should not be used in running prose.
Examples
{{cslist | first item | second item | third item | etc}} →
|
{{cslist | first item | second item | third item | etc |semi=true}} →
|