Template: Gadget-state/doc
m code instead of tt tag |
m 1 revision imported |
(No difference)
|
Latest revision as of 18:35, 4 March 2024
This template uses Lua: |
Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured;
Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Tracked.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.
Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Tracked.tab.
See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Tracked.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.
Template:Strong for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
Retrieve the state of a gadget (default/non-default), …
Usage
{{Gadget-state |1= |2= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 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 | |
2 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
Example
{{Gadget-state|type=defaultState|gadget=Gadget-RotateLink}}
renders as:
true
Localization
This template is not intended to be localized.