Template:Hatnote/doc: Difference between revisions
Content deleted Content added
→Function: Added hat note |
m 165 revisions imported from wikipedia:Template:Hatnote/doc |
||
(18 intermediate revisions by 13 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{High-use| 369726 }}
{{Never substitute}}
{{lua|Module:Hatnote}}
Line 9 ⟶ 8:
{{hatnote|Example hatnote text.}}
Broadly speaking, a hatnote should answer a
{{TOC limit}}
Line 21 ⟶ 20:
== Usage ==
; Basic usage:
{{hatnote|''text''}}
Line 29 ⟶ 27:
== Parameters ==
This template accepts the following parameters:
* <code>1</code>
* <code>extraclasses</code>
* <code>selfref</code>
* <code>category</code>
== Example ==
* <code><nowiki>{{hatnote|Example hatnote text}}</nowiki></code> → {{hatnote|Example hatnote text}}
== Errors ==
If no hatnote text is supplied, the template will output the following message:
* {{hatnote|category=no}}
Line 56 ⟶ 51:
== Technical details ==
The HTML code produced by this template looks like this:
*
The code is produced by [[Module:Hatnote]].
==See also==
* {{tl|For}}
{{Hatnote templates}}
Line 93 ⟶ 90:
}
</templatedata>
{{Collapse bottom}}<includeonly>{{
[[Category:Hatnote templates| ]]
[[Category:Cross-reference templates]]
|