Difference between revisions of "Template:GUI widgets"

From blackwiki
Jump to navigation Jump to search
imported>Рассилон
(Category:Software templatesCategory:Software navbox templates, {{{state|autocollapsed}}} parameter, inline documentation)
imported>Kriomet
(replace "light switch" with "toggle switch")
 
Line 23: Line 23:
 
* [[Date picker]]
 
* [[Date picker]]
 
* [[Grid view]]
 
* [[Grid view]]
* [[Checkbox#Light_switch|Light switch]]
+
* [[Toggle switch (widget)|Toggle switch]]
 
* [[List box]]
 
* [[List box]]
 
* [[List builder]]
 
* [[List builder]]

Latest revision as of 00:13, 24 December 2020

Template documentation

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{GUI widgets|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{GUI widgets|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{GUI widgets|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 in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

List of the types of widgets available in Graphical User Interfaces

Template parameters

ParameterDescriptionTypeStatus
Statestate

no description

Auto value
autocollapse
Lineoptional