Module:Cslist/doc: Difference between revisions
Appearance
Content deleted Content added
Added the page to Category:Module documentation pages |
TheThomanski (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
||
{{high-use|1694}} |
{{high-use|1694}} |
||
Module to implement [[Template:Cslist]], which creates a horizontal list similar to [[Template:Hlist]] but using comma separators instead of mid-dots. |
Module to implement [[Template:Cslist]], which creates a horizontal list similar to [[Template:Hlist]] but using comma separators instead of mid-dots. See template documentation for usage. |
||
It can take as many list items as desired, and also an optional {{para|semi}}, which when set to <code>true</code> or <code>yes</code> 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 {{tl|hlist}}. It should not be used in running prose. |
|||
== Examples == |
|||
{| class="wiktable" |
|||
|- |
|||
| <code><nowiki>{{cslist | first item | second item | third item | etc}}</nowiki></code> → {{cslist | first item | second item | third item | etc}} |
|||
|- |
|||
| <code><nowiki>{{cslist | first item | second item | third item | etc |semi=true}}</nowiki></code> → {{cslist | first item | second item | third item | etc |semi=true}} |
|||
|} |
|||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
Latest revision as of 16:19, 12 March 2025
![]() | 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. See template documentation for usage.