Template:Js doclink

From MediaWiki.org
Jump to navigation Jump to search

[1]

Documentation icon Template documentation[view] [edit] [history] [purge]

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

Usage[edit]

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

See also[edit]