Template:Hello Internet glossary: Difference between revisions

From Podpedia
Content added Content deleted
m (Fixed Formatting)
m (Fixed Formatting)
Line 5: Line 5:
|state = {{{state|autocollapse}}}
|state = {{{state|autocollapse}}}
|listclass = hlist
|listclass = hlist

|group1 = Corners
|group1 = Corners
|groupstyle = color: black; background: lightgray; padding: 0.25em 1em; line-height: 1.5em;
|groupstyle = color: black; background: lightgray; padding: 0.25em 1em; line-height: 1.5em;

Revision as of 00:56, 25 October 2017

Initial visibility

To set the template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Hello Internet glossary|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Hello Internet glossary|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Hello Internet glossary|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter is not set, the template's initial visibility is taken from the |default= parameter in the template. For this template, that currently evaluates to autocollapse.