Template:Hatnote

From OtherX
Revision as of 14:06, 20 January 2024 by OtherXAdmin (talk | contribs) (Created page with "<includeonly>{{#invoke:Hatnote|hatnote}}</includeonly><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Hatnote/doc. [edit] [history] [purge]
Template:Hatnote invokes function hatnote in Module:Hatnote using Lua.

The hatnote template produces formatted text for the purpose of redirecting the reader to another page if needed.

It adds the hatnote class which indents and italicises the text and the navigation-not-searchable class which excludes the content from search snippets in Special:Search.

Generally the template should not be used directly on articles, instead one of the following templates can be used:

Usage

{{Hatnote|Further reading: [[Stone of Jas]]}}

would produce the following:

{{#if:||==Template data==}}

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

<templatedata> { "params": { "1": { "label": "Text", "description": "Text that will be displayed in the hatnote.", "type": "string", "required": true }, "extraclasses": { "label": "Extra classes",

"description": "Extra classes to be added to the
tags surrounding the hatnote text.",

"type": "line" } }, "description": "Template that produces formatted text for the purpose of redirecting the reader to another page if needed." } </templatedata>

{{#if:||}}