Interface ArgumentHierarchy

Hierarchy

Properties

Properties

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