Template:Collapsible list/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} {{Template shortcuts|clist}} {{lua|Module:Collapsible list}} This template produces a collapsible list. It is possible to set CSS styles for the..."
 
No edit summary
Line 3:
{{lua|Module:Collapsible list}}
 
This template produces a collapsible list. It is possible to set [[Wikipedia:CSS|CSS]] styles for the "frame" (the {{tag|div}} tags surrounding the list), for the list title, and for the list items. The template supports an unlimited number of list items.
 
This template is typically used in [[Wikipedia:WP:Infobox|infoboxes]] and [[Wikipedia:WP:NAVBOX|navboxes]]; it should not normally be used in regular article content, per [[Wikipedia:MOS:DONTHIDE]].
 
Regarding using this template in infoboxes, MOS:DONTHIDE acknowledges that "a few infoboxes also use pre-collapsed sections for infrequently accessed details. If [such] information ... seems extraneous or trivial enough to inspire pre-collapsing it, consider raising a discussion on the article (or template) talk page about whether it should be [[Wikipedia:What Wikipedia is not#Wikipedia is not an indiscriminate collection of information|included at all]]."
Line 38:
| ''liststyle'' | Custom CSS styling applied to the list (specifically, to the {{tag|ul}} tags delimiting the list).
| ''hlist'' | Include as {{para|hlist|on}}, {{para|hlist|true}}, etc to produce a horizontal rather than vertical list.
| ''bullets'' | Include as {{para|bullets|on}}, {{para|bullets|true}}, etc to place a [[Wikipedia:Bullet (typography)|bullet point]] before each list item.
| Unnamed parameters<br>(first, second, third...) | The list items (in the order in which they will appear). If none are supplied, the template outputs nothing.
}}