Difference between revisions of "Template:Hatnote"

From Second Life Wiki
Jump to navigation Jump to search
(The class "dablink" doesn't exist any longer in the CSS. Instead, I've replicated what the automatic 'Redirect' tab uses, which is similar to what Wikipedia does.)
(Added some notes/explanations and made an attempt at properly formatting the hatnote just as Wikipedia does it (it might require some polishing))
Line 1: Line 1:
<div id="contentSub"><span class="mw-redirectedfrom">{{{1}}}</span></div>
<noinclude>
<noinclude>
{{documentation}}
== Template ==
</noinclude><includeonly><div id="contentSub"><span role="note" class="mw-redirectedfrom hatnote navigation-not-searchable">{{{1}}}</span></div></includeonly><noinclude>
== Syntax ==
 
<nowiki>{{Hatnote|TEXT}}</nowiki>
 
Adds a [https://en.wikipedia.org/wiki/Wikipedia:Hatnote hatnote], a short note placed at the very top of an [[wikipedia:Article|article]] or a [[wikipedia:Section|section]].
 
== Usage ==
 
See [https://en.wikipedia.org/wiki/Wikipedia:Hatnote hatnote], although here there is just one template, not a plethora of subtemplates.
 
== Origin ==
 
Very likely, a 2006-ish version of the Wikipedia's own hatnotes. Things have substantially changed since then, and the old <code>dablink</code> class doesn't exist any longer.
</noinclude>
</noinclude>

Revision as of 16:02, 11 August 2022

Template

Syntax

{{Hatnote|TEXT}}

Adds a hatnote, a short note placed at the very top of an article or a section.

Usage

See hatnote, although here there is just one template, not a plethora of subtemplates.

Origin

Very likely, a 2006-ish version of the Wikipedia's own hatnotes. Things have substantially changed since then, and the old dablink class doesn't exist any longer.