Template:Js doclink/doc: Difference between revisions
[[mw:]]>Samwilson (templatedata) |
ManfredoDo (talk | contribs) m (1 revision imported: Workaround and Utility Templates) |
(No difference)
|
Latest revision as of 17:52, 12 November 2022
This is a documentation subpage for Template:Js doclink. It contains usage information, categories and other content that is not part of the original Template page. |
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description | String | required |
JS class name | class | no description
| String | optional |
JS method name | method | no description
| String | optional |
Link text | text | no description | String | optional |
See also
- {{class doclink}}
- {{file doclink}}
- {{method doclink}}