This template creates a link to the auto-generated Javascript API documentation at https://doc.wikimedia.org/
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
Template parameters[Edit template data]
This template prefers inline formatting of parameters.
Parameter | Description | Type | Status |
---|
1 | 1 | no description
| String | required |
---|
JS class name | class | no description - Example
- mw.user
| String | optional |
---|
JS method name | method | no description - Example
- getId
| String | optional |
---|
Link text | text | no description
| String | optional |
---|