Jump to content

Template:Hatnote: Difference between revisions

From Consumer Rights Wiki
NoGoodDeed (talk | contribs)
m fix typo
Made it required because if you aren’t requiring it something has gone terribly wrong.
 
(4 intermediate revisions by 4 users not shown)
Line 11: Line 11:
{{Hatnote|Example hatnote text.}}
{{Hatnote|Example hatnote text.}}
</blockquote>
</blockquote>
[[Category:Templates]]
[[Category:Styling templates]]
</noinclude>
</noinclude>
<includeonly>{{#invoke:Hatnote|hatnote}}</includeonly>
<includeonly>{{#invoke:Hatnote|hatnote}}</includeonly>
<noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Text",
"description": "The text you want the hatnote to show.",
"example": "Example text",
"required": true
}
},
"description": "This template produces formatted text, following the guideline for a Wikipedia hatnote. Broadly speaking, a hatnote should answer a reader's question (maybe preemptively): ''Am I on the right page?''"
}
</templatedata>
</noinclude>

Latest revision as of 05:47, 23 October 2025

This template produces formatted text, following the guideline for a Wikipedia hatnote. Broadly speaking, a hatnote should answer a reader's question (maybe preemptively): Am I on the right page?

Usage/Example

[edit source]

Adding this temlpate under a header

[edit source]

{{Hatnote|Example hatnote text.}}

Produces this result

Header

[edit source]


This template produces formatted text, following the guideline for a Wikipedia hatnote. Broadly speaking, a hatnote should answer a reader's question (maybe preemptively): ''Am I on the right page?''

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Text1

The text you want the hatnote to show.

Example
Example text
Unknownrequired