Readonly
titleThe title of the page that the wikilink links to.
This property is read-only. To update it, use setTitle.
Gets the display text of the wikilink. If no display text is set, the title text is returned.
Note that interlanguage links (which appear in the sidebar) are not resolved in terms of how they are displayed there.
The display text as a string.
Checks whether this wikilink has a display text (the part after |
).
A boolean indicating whether the wikilink has a display text.
Sets the display text of the wikilink.
The display text. To unset it, pass an empty string or null
.
The current instance for chaining.
Sets a new title to the instance.
A 'File:...'
title (without a leading colon) is not allowed as the title
argument. For file titles, use toFileWikilink instead.
The new title to set.
Optional
verbose: booleanWhether to log errors. (Default: false
)
A boolean indicating whether the new title was set.
Strigifies the instance.
Optional
options: WikilinkOutputConfigOptions to format the output.
The wikilink as a string.
Creates a new FileWikilink instance, inheriting the current instance's properties.
The file title to set.
Optional
verbose: booleanWhether to log errors. (Default: false
)
A new FileWikilink instance on success; otherwise, null
.
The instance members of the
Wikilink
class. For static members, see WikilinkStatic (defined separately due to TypeScript limitations).