Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Adaris
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Documentation
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Uses TemplateStyles|Template:Hatnote/styles.css}} This template produces formatted text, following the guideline for a '''hatnote'''. :<code><nowiki>{{hatnote|Example hatnote text.}}</nowiki></code> →<br/><!-- a construct to show hatnote as expected (using newline) --> {{hatnote|Example hatnote text.}} Broadly speaking, a hatnote should answer a readers' question (maybe preemptively): ''Am I on the right page?'' == Function == This template is primarily used to add a correctly formatted ''hatnote'' to a page. Often, but not always, this is a ''disambiguation link'' at the top of article pages. It places an HTML <code>div-</code> / <code>div</code> block around the text entered as its only argument, which provides standardized formatting (contents are indented and italicized in most displays); it also isolates the contained code to make sure that it is interpreted correctly. This template is also used as the "meta-template" for additional specialized disambiguation link templates. The template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal [[Help:Wiki markup|Wikipedia markup]]. == Usage == {{((}}hatnote{{!}}''text''{{))}} == Parameters == This template accepts the following parameters: * <code>1</code> - the hatnote text (required) == Example == * <code><nowiki>{{hatnote|Example hatnote text}}</nowiki></code> → {{hatnote|Example hatnote text}} == Technical details == The HTML code produced by this template looks like this: * <code>{{#tag:syntaxhighlight|{{^(}}div role="note" class="hatnote"{{)^}}|lang=html|inline=1|style= border:0 }}''hatnote text''{{#tag:syntaxhighlight|{{^(}}/div{{)^}}|lang=html|inline=1|style= border:0 }}</code> {{TemplateData header|noheader=1}} <templatedata> { "description": { "en": "Template for creating a standard hatnote. A hatnote is a short note placed at the top of an article or section to direct users to related pages", "cs": "Šablona pro vytvoření standardní hatnote. Hatnote je krátká poznámka umístěná v horní části článku nebo sekce, která uživatele nasměruje na související stránky" }, "format": "inline", "params": { "1": { "aliases": [ "text" ], "label": "Text", "description": { "en": "This field should contain the text that will be displayed in the hatnote.", "cs": "Toto pole by mělo obsahovat text, který se zobrazí v hatnote." }, "type": "string", "required": true, "example": { "en": "Insert text here.", "cs": "Sem vložte text." } }, "extraclasses": { "label": { "en": "Extra classes", "cs": "Extra třídy" }, "description": { "en": "Comma-separated list of CSS class names", "cs": "Seznam názvů tříd CSS oddělených čárkami" }, "type": "string" } }, "paramOrder": [ "1", "extraclasses" ] } </templatedata> <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Hatnote templates| ]] }}</includeonly>
Summary:
Please note that all contributions to Adaris are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Adaris:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:((
(
edit
)
Template:))
(
edit
)
Template:)^
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Hatnote
(
edit
)
Template:Hatnote/styles.css
(
edit
)
Template:Plainlink
(
edit
)
Template:TemplateData header
(
edit
)
Template:Uses TemplateStyles
(
edit
)
Template:^(
(
edit
)
Module:List
(
edit
)
Module:Message box
(
edit
)
Module:TNT
(
edit
)
Module:TableTools
(
edit
)
Module:Uses TemplateStyles
(
edit
)
Module:Uses TemplateStyles/config
(
edit
)
Module:Yesno
(
edit
)
This page is a member of a hidden category:
Category:Pages with script errors