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)
Line 3: Line 3:
 
|title = [[Widget (GUI)|Widget]]s
 
|title = [[Widget (GUI)|Widget]]s
 
|listclass = hlist
 
|listclass = hlist
 +
|state = {{{state|autocollapse}}}
  
 
|group1 = Command input
 
|group1 = Command input
Line 94: Line 95:
 
* [[WIMP (computing)|WIMP]]
 
* [[WIMP (computing)|WIMP]]
 
* [[Zoomable user interface]]
 
* [[Zoomable user interface]]
}}<noinclude>
+
}}<noinclude>{{doc|content=
  
[[Category:Software templates|{{PAGENAME}}]]
+
{{collapsible options}}
 +
[[Category:Software navbox templates|{{PAGENAME}}]]
  
 
<templatedata>
 
<templatedata>
 
{
 
{
"params": {},
+
"params": {
 +
"state": {
 +
"type": "line",
 +
"autovalue": "autocollapse"
 +
}
 +
},
 
"description": "List of the types of widgets available in Graphical User Interfaces"
 
"description": "List of the types of widgets available in Graphical User Interfaces"
 
}
 
}
 
</templatedata>
 
</templatedata>
</noinclude>
+
}}</noinclude>

Revision as of 06:07, 19 October 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