Jump to content

Template:Hatnote: Difference between revisions

From Consumer_Action_Taskforce
mNo edit summary
m Reverted edit by ! (talk) to last revision by NoGoodDeed
Tag: Rollback
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<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?''
From https://en.wikipedia.org/wiki/Template:Hatnote under CC BY-SA 4.0  
== Usage/Example ==
 
Adding this temlpate under a header
This template produces formatted text, following the guideline for a Wikipedia hatnote: <nowiki>{{Hatnote|Example hatnote text.}}</nowiki> &#x2192;
<blockquote>
 
==Header ==
<!-- a construct to show hatnote as expected (using newline) --> {{Hatnote|Example hatnote text.}}
<nowiki>{{Hatnote|Example hatnote text.}}</nowiki>
 
</blockquote>
Broadly speaking, a hatnote should answer a reader's question (maybe preemptively): ''Am I on the right page?''
Produces this result
<blockquote>
==Header ==
{{Hatnote|Example hatnote text.}}
</blockquote>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
<includeonly>{{#invoke:Hatnote|hatnote}}</includeonly>
<includeonly>{{#invoke:Hatnote|hatnote}}</includeonly>

Latest revision as of 06:46, 28 February 2025

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[edit source]

Adding this temlpate under a header

Header[edit source]

{{Hatnote|Example hatnote text.}}

Produces this result

Header[edit source]