Optional
hierarchiesObject mapping canonical template titles to arrays of TemplateParameterHierarchies.
Example:
const hierarchies = {
// Overwrite `1=` with `user=` for ParsedTemplate instances of `Template:Foo_bar`
'Template:Foo_bar': [['1', 'user']],
// Overwrite `2=` with `type=` for RawTemplate instances of `{{{1}}}`
'{{{1}}}': [['2', 'type']]
};
mwbot.Wikitext.parseTemplates({ hierarchies });
Optional
templateA predicate function to filter parsed templates. Only templates that satisfy this function will be included in the results.
The template object.
true
if the template should be included, otherwise false
.
Optional
titleA predicate function to filter templates by title. Only templates whose titles satisfy this function will be included in the results.
Configuration options for Wikitext.parseTemplates.