Β |
Β |
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
| <div style="margin-left:2em; margin-right: 2em;>''{{{1}}}''</div> | | <includeonly><div class="hatnote searchaux {{{class|}}}">{{{1}}}</div></includeonly><noinclude> |
| <noinclude>
| | {{documentation}} |
| This is a general purpose template for all kind of [https://en.wikipedia.org/wiki/Wikipedia:Hatnote hatnotes]. '''Hatnotes''' are a small annotation above a page or a section that can help the reader navigate. It's used for example to clarify what a section is about and link to other pages the reader may want to read.
| | <!-- Put categories/interwiki on the documentation page --> |
| Β | |
| == Example usage ==
| |
| Β | |
| <pre><nowiki>
| |
| === Heading ===
| |
| {{hatnote|This section is about headings in text, for the human body part see [[Head|Head]]. <br> For the the first level heading see the main article [[Headline]].</br> H1 redirects here, for the car see [[Hyundai#H1|Hyundai H1]].}} | |
| The first sentence of the section is here.
| |
| </nowiki></pre> | |
| Β | |
| === Heading ===
| |
| {{hatnote|This section is about headings in text, for the human body part see [[Head|Head]]. <br> For the the first level heading see the main article [[Headline]].</br> H1 redirects here, for the car see [[Hyundai#H1|Hyundai H1]].}}
| |
| The first sentence of the section is here.
| |
| <templatedata> | |
| { | |
| "params": {
| |
| "1": {
| |
| "label": "content",
| |
| "description": "the content of the note",
| |
| "example": "For the xxx see [[yyy]]."
| |
| }
| |
| },
| |
| "description": "Adds a annotation for the reader about the content that follows. Usually used after a heading."
| |
| } | |
| </templatedata> | |
| [[Category:Notice templatesβ]]
| |
| </noinclude> | | </noinclude> |
Usage
{{Hatnote|text, usually for disambiguation purposes}}
- produces
text, usually for disambiguation purposes
Note: Since the text displayed by this template has already been italicized, it is no longer necessary to italicize it.