You are not currently logged in. Are you accessing the unsecure (http) portal? Click here to switch to the secure portal. |
Template:Gadget-state
Retrieve the state of a gadget (default/non-default), …
Usage
{{Gadget-state|type=|gadget=}}
Example: {{Gadget-state|type=defaultState|gadget=Gadget-RotateLink}}
→ true
Parameters
Parameter name | Description | Default value | required or optional?
|
---|---|---|---|
type | Which information to obtain. Valid values are defaultState (returns boolean), deprecationState (returns boolean), alsoActivates (returns the name of the gadget that is activated when using the gadget provided by the gadget-parameter). | empty | required |
gadget | Information about which gadget to obtain. Valid values are all gadget names, e.g. Gadget-RotateLink | empty | required |
Additional information
The template is intended to be used in the following namespaces: the MediaWiki namespace
The template is intended to be used by the following user groups: no user group specified
Localization
This template is not intended to be localized.
The above documentation is transcluded from Template:Gadget-state/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |