Template:Js doclink

From Bonkipedia
Revision as of 04:24, 11 May 2018 by [[mw:]]>Samwilson
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[1]

Template documentation


This template creates a link to the auto-generated Javascript API documentation at https://doc.wikimedia.org/

Usage

Link to a class or method, with optional custom link text.

{{js doclink|OO.ui.MenuSelectWidget}}OO.ui.MenuSelectWidget

{{js doclink|OO.ui.MenuSelectWidget|text=a widget}}a widget

{{js doclink|OO.ui.MenuSelectWidget|method=getElementWindow}}OO.ui.MenuSelectWidget.getElementWindow()

{{js doclink|OO.ui.MenuSelectWidget|method=getElementWindow|text=some method}}some method

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Js doclink

Link to API documentation at docs.wikimedia.org

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

no description

Stringrequired
JS class nameclass

no description

Example
OO.ui.LabelWidget
Stringoptional
JS method namemethod

no description

Example
getValue()
Stringoptional
Link texttext

no description

Stringoptional

See also