Template:Collapsible list/Documentation

Template page
Revision as of 00:25, 8 February 2022 by Flagrama (talk | contribs) (doc for simplified collapsible list)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template creates a collapsible area.

Parameters

Unnamed

There is one unnamed parameter to use. For instance {{collapsible list|one}} will result in:

List
one
Named parameters

These parameters are all technically optional, but it is suggested that you at least give the title parameter.

  • title: The title of the list. Default is "List".
  • framestyle: CSS styling for the entire list container. Default is "border:none; padding:0;".
  • titlestyle: CSS styling for the title element. Default is "background:transparent;font-size:12px".
  • liststyle: CSS styling for the list itself. Default is "text-align:left;".

Examples

Standalone template
{{collapsible list
|one
|title=Example list
|framestyle=padding:3px;border:1px solid black;
|titlestyle=background-color:pink;padding:2px;text-align:center;
|liststyle=text-align:left;color:blue;margin-left:10px;
}}
Example list
one


Within another element
{{Collapsible List|one}}
Example table
List
one