Template:Js doclink
Appearance
From mediawiki.org
This template creates a link to MediaWiki Core's auto-generated Javascript API documentation at https://doc.wikimedia.org/mediawiki-core/master/js/
Usage
[edit ]Link to a class or method, with optional custom link text.
{{js doclink|mw.user}} → mw.user
{{js doclink|mw.user|text=a widget}} → a widget
{{js doclink|mw.user|method=getId}} → mw.user.getId()
{{js doclink|mw.user|method=getId|text=some method}} → some method
TemplateData
[edit ]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
[edit ]- {{Class doclink }}
- {{File doclink }}
- {{Method doclink }}
The above documentation is transcluded from Template:Js doclink/doc. (edit | history)
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.