Template:Collapsible lists option: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
 
m 1 revision imported
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:


<!------------ (to show all lists) -------------->
<!------------ (to show all lists) -------------->
: {{Unbulleted list
{{block indent|em=2|1={{Unbulleted list
   |style=padding-bottom:0.3em; |list_style=line-height:1.5em;
   |style=padding-bottom:0.3em; |list_style=line-height:1.5em;
   | 1 = {{blue|•}} To set it to display all lists when it appears (i.e. all lists expanded), use:
   | 1 = {{blue|•}} To set it to display all lists when it appears (i.e. all lists expanded), use:
Line 10: Line 10:


<!------------ (to show one list) --------------->
<!------------ (to show one list) --------------->
: {{Unbulleted list
{{Unbulleted list
   |style=padding-bottom:0.3em; |list_style=line-height:1.5em;
   |style=padding-bottom:0.3em; |list_style=line-height:1.5em;
   | 1 = {{blue|•}} To set it to display one particular list while keeping the remainder collapsed (i.e. hidden apart from their headings), use:
   | 1 = {{blue|•}} To set it to display one particular list while keeping the remainder collapsed (i.e. hidden apart from their headings), use:
Line 16: Line 16:
   | 3 = …where ''listname'' is one of the following (do not include any quotemarks):
   | 3 = …where ''listname'' is one of the following (do not include any quotemarks):
   |item4_style=;padding:0.2em 0 0.3em 1.4em;
   |item4_style=;padding:0.2em 0 0.3em 1.4em;
   | 4 = <kbd style="border: none; background: transparent;">{{{listnames<includeonly>|{{color|red|''Required parameter "listnames" missing!''}}</includeonly>}}} </kbd>
   | 4 = <kbd style="border: none;">{{{listnames<includeonly>|{{color|red|''Required parameter "listnames" missing!''}}</includeonly>}}} </kbd>
   | 5 = {{#if:{{{example<includeonly>|</includeonly>}}}
   | 5 = {{#if:{{{example<includeonly>|</includeonly>}}}
           <!--------(optional example)--------->
           <!--------(optional example)--------->
Line 29: Line 29:
     --><includeonly>The list named '''<code>{{{default}}}</code>''' has</includeonly>}} been set to be shown when the template appears.
     --><includeonly>The list named '''<code>{{{default}}}</code>''' has</includeonly>}} been set to be shown when the template appears.
}}
}}
</div><noinclude>{{Documentation}}</noinclude>
}}</div><noinclude>{{Documentation}}</noinclude>
{{no-index-template}}

Latest revision as of 18:21, 8 March 2025

This template includes collapsible lists.

Page Template:Block indent/styles.css has no content.
  • Template:Blue To set it to display all lists when it appears (i.e. all lists expanded), use:
  •  {{

    BASEPAGENAME |expanded=all}}

    or, if enabled, {{ BASEPAGENAME |all}}

      (i.e. omitting "expanded=").
  • Template:Blue To set it to display one particular list while keeping the remainder collapsed (i.e. hidden apart from their headings), use:
  •  {{

    BASEPAGENAME |expanded=listname}}

    or, if enabled, {{ BASEPAGENAME |listname}}

  • …where listname is one of the following (do not include any quotemarks):
  • {{{listnames}}}
  • [optional:]
    For example, {{ BASEPAGENAME |expanded={{{example}}}}} or, if enabled, {{ BASEPAGENAME |{{{example}}}}}
  • [optional:]   [All lists have] / [The list named default has] been set to be shown when the template appears.