| This template uses Lua: |
This template applies Module:Hatnote group to merge hatnotes it is given as input; this has the net effect of making them formatted inline relative to one another. For example:
<syntaxhighlight lang="wikitext">
</syntaxhighlight>
would normally display as:
but, when wrapped in this template:
<syntaxhighlight lang="wikitext">
</syntaxhighlight>
displays as
Technically, it changes the hatnotes by converting their <div> wrappers into <span> wrappers, wrapping the group in a new hatnote <div>, and migrating classes appropriately. Classes are migrated to the appropriate <span>, unless every hatnote in the group includes that class, in which case the class will be migrated to the new <div> wrapper. Input text that is not either a hatnote template (which will be processed) or a category (which will be emitted normally) is ignored. For example:
<syntaxhighlight lang="wikitext">
</syntaxhighlight>
would normally be rendered to:
<syntaxhighlight lang="html">
</syntaxhighlight>
but, when wrapped in this template, becomes:
<syntaxhighlight lang="html">
</syntaxhighlight>
TemplateData
TemplateData for Hatnote group
| ⧼templatedata-doc-param-name⧽ | ⧼templatedata-doc-param-desc⧽ | ⧼templatedata-doc-param-type⧽ | ⧼templatedata-doc-param-status⧽ | |
|---|---|---|---|---|
| Hatnote group content | 1 | Two or more hatnote template invocations, and nothing else. | ⧼templatedata-doc-param-type-string⧽ | ⧼templatedata-doc-param-status-required⧽ |