Creates a new instance.
Usage:
const filelink = new mwbot.FileWikilink('File:Foo');
The title of the file that the wikilink transcludes.
Optional
params: string[]Optional parameters for the file link (e.g., ['thumb', '300px', ...]
).
[[wikilink]]
,
use Wikilink instead.
This interface defines the static members of the
FileWikilink
class. For instance members, see FileWikilink (defined separately due to TypeScript limitations).FileWikilink
is a class that serves to parse[[File:...]]
markups into an object structure, which is accessible via Mwbot.FileWikilink. Note that wikilinks with a non-file title are treated differently by the Wikilink class, and those with an invalid title by the RawWikilink class.Example