Template:Collapsible lists option/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Andrybak at 17:58, 27 April 2025 (Rewrite – Template:Labor no longer fits as the example here since its refactoring in 2016. See also Special:Diff/1287665258). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

When this template is transcluded, the texts within square brackets will either not appear or be replaced accordingly.

{{Collapsible lists option
| expandedname =  <!--(see below)-->
| listnames =
| example =       <!--(one of the listnames)-->
| default =       <!--("all" or a listname, if either set to be shown)-->
}}

Parameters |expandedname=required, |example=, and |default= are optional.

expandedname=required

[edit source]

By default, template {{Collapsible lists option|listnames=...}} assumes that the template being documented allowed both a positional parameter |1= and a named parameter |expanded= to be used (usually seen by presence of {{{expanded|{{{1|}}}}}} in the wikitext of the template).

If only the named parameter is supported, then use {{Collapsible lists option|expandedname=required|listnames=...}} in the documentation, which will hide the part of documentation which talks about the positional parameter.

See also

[edit source]