Template:Hatnote: Difference between revisions
m minor formating |
Made it required because if you aren’t requiring it something has gone terribly wrong. |
||
| (5 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> {{Hatnote|From https://en.wikipedia.org/wiki/Template:Hatnote under CC BY-SA 4.0 }} 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?'' | <noinclude> {{Hatnote|From https://en.wikipedia.org/wiki/Template:Hatnote under CC BY-SA 4.0 }} 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 == | == Usage/Example == | ||
Adding this temlpate under a header | Adding this temlpate under a header | ||
| Line 11: | Line 11: | ||
{{Hatnote|Example hatnote text.}} | {{Hatnote|Example hatnote text.}} | ||
</blockquote> | </blockquote> | ||
[[Category: | [[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> | |||