Template:Gadget-state

Protected This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection.
Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:Gadget-state/doc.
Category:Main message boxesCategory:Lua-based templates

Retrieve the state of a gadget (default/non-default), …

Usage


{{Gadget-state |1= |2= }}

Template parameters

ParameterDescriptionDefaultStatus
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).emptyrequired
2
gadget
Information about which gadget to obtain. Valid values are all gadget names, e.g. Gadget-RotateLinkemptyrequired

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.

Category:Templates not requiring internationalization Category:Helper templates
Category:Helper templates
Category:Helper templates Category:Lua-based templates Category:Main message boxes Category:Templates not requiring internationalization