Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Hatnote: Difference between revisions

Template page
templatewiki>Rodejong
+Cat
Β 
Created page with "<includeonly><div class="hatnote searchaux {{{class|}}}">{{{1}}}</div></includeonly><noinclude> {{documentation}} <!-- Put categories/interwiki on the documentation page --> </noinclude>"
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>

Revision as of 07:06, 28 June 2025

Documentation[view] [edit] [history] [purge]

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.

[view] [edit] [history] [purge]The above documentation is transcluded from Template:Hatnote/doc.
Contents