Template:Hatnote: Difference between revisions
Created page with "<includeonly>{{#invoke:Hatnote|hatnote}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly><div style=" | ||
{{ | border:1px solid #f9f9f9; | ||
background:#f9f9f9; | |||
padding:0.4em; | |||
margin:0.1em auto 1em auto; | |||
max-width:100%; | |||
box-sizing:border-box; | |||
color:#54595d; | |||
"> | |||
<div style="padding-left:1.5em;"> | |||
<small>''{{{1}}}''</small></div></div></includeonly><noinclude> | |||
{{Documentation}} | |||
[[Category:Hatnote templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 15:29, 26 September 2026
Template documentation
This page provides documentation for the parent template. It is not meant to be transcluded directly into standard encyclopedia articles.
Editors can experiment in this template's sandbox and testcases pages, if they exist.
Please add categories and interwiki links to the bottom of this subpage.
The Hatnote template is used to place a short navigation note at the very top of an article or section. It is typically used to point readers to disambiguation pages or other highly related articles if they arrived at the current page by mistake.
Usage
[edit source]To use this template, simply place it at the top of an article (below the short description but above the infobox and the lead section) and provide the text as the first unnamed parameter.
{{Hatnote|Your text goes here.}}
Examples
[edit source]Basic usage:
{{Hatnote|For other uses, see [[Guitar (disambiguation)]].}}
Multiple links:
{{Hatnote|For the record label, see [[Rumi Haitami Production]]. For the online encyclopedia, see [[Mippedia]].}}
Styling
[edit source]This template uses inline CSS to mimic the standard Wikipedia hatnote style:
font-style: italic;to italicize the text.padding-left: 1.6em;to provide a slight indentation.font-size: 90%;to make it slightly smaller than the main article body text.