Template:Hatnote: Difference between revisions
Appearance
+docs |
Made it required because if you aren’t requiring it something has gone terribly wrong. |
||
| Line 21: | Line 21: | ||
"label": "Text", | "label": "Text", | ||
"description": "The text you want the hatnote to show.", | "description": "The text you want the hatnote to show.", | ||
"example": "Example text" | "example": "Example text", | ||
"required": true | |||
} | } | ||
}, | }, | ||
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
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?''
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | The text you want the hatnote to show.
| Unknown | required |