Difference between revisions of "Template:GUI widgets"
Jump to navigation
Jump to search
Template documentation
imported>Рассилон (Category:Software templates → Category: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
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}}
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| State | state | no description
| Line | optional |
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |