mw.widgets.TitleOptionWidget(config)

new mw.widgets.TitleOptionWidget(config) #

Creates a mw.widgets.TitleOptionWidget object.

Parameters:

Name Type Description
config Object

Configuration options

Properties
Name Type Attributes Description
data string

Label to display

url string

URL of page

showImages boolean <optional>

Whether to attempt to show images

imageUrl string <optional>

Thumbnail image URL with URL encoding

description string <optional>

Page description

missing boolean <optional>

Page doesn't exist

redirect boolean <optional>

Page is a redirect

disambiguation boolean <optional>

Page is a disambiguation page

query string <optional>

Matching query string to highlight

compare function <optional>

String comparison function for query highlighting

Source:
Creates a mw.widgets.TitleOptionWidget object.

Extends