Interface TemplateConfig

The config object to be passed to Template.constructor.

Hierarchy

Properties

Properties

fullName?: string

Full string that should fit into the first slot of the template ({{fullName}}), excluding double braces. May contain whitespace characters ({{ fullName }}) and/or expressions that are not part of the template name ({{ <!--name-->fullName }}, {{ {{{|safesubst:}}}fullName }}, {{ fullName \n}}).

hierarchy?: string[][]

Argument hierarchies.

Module-invoking templates may have nested parameters; for example, {{#invoke:module|user={{{1|{{{user|}}}}}}}} can be transcluded as {{template|user=value|1=value}}. In this case, |1= and |user= should be regarded as instantiating the same template argument, and any non-empty |user= argument should override the |1= argument if any. To specify this type of argument hierarchies, pass [['1', 'user'], [...]]. Then, |1= will be overridden by |user= any time when an argument registration takes place and the operation detects the presence of a lower-hierarchy argument in the Template instance.

Generated using TypeDoc