Jump to content

From Noumenapedia
Revision as of 10:03, 9 September 2026 by Deleatur yhe (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Hatnote group/doc

__EXPECTED_UNCONNECTED_PAGE__

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Hatnote group in articles based on its TemplateData.

TemplateData for Hatnote group

Groups multiple hatnotes onto a single line.
Hatnote group content1
Two or more hatnote template invocations, and nothing else.