Creates a new instance.
Usage:
const func = new mwbot.ParserFunction('#hook:');
The function hook. This must end with a colon character.
Optionalparams: string[]Parameters of the parser function.
Verifies the given string as a parser function hook.
Usage:
const verifiedHook = mwbot.ParserFunction.verify('#hook:');
A potential parser function hook as a string. This must end with a colon character.
An object representing the canonical function hook and the matched function hook, or null.
This interface defines the static members of the
ParserFunctionclass. For instance members, see ParserFunction (defined separately due to TypeScript limitations).ParserFunctionis a class that serves to parse{{#func:}}markups into an object structure, which is accessible via Mwbot.ParserFunction. Note that{{template}}markups are treated differently by the Template class.Example