Zum Inhalt springen

Vorlage:Hatnote/doc: Unterschied zwischen den Versionen

Reverted 5 edits by 107.127.60.37 (talk): Rvt text corruption
Keine Bearbeitungszusammenfassung
(Reverted 5 edits by 107.127.60.37 (talk): Rvt text corruption)
Zeile 1: Zeile 1:
== Function ==
{{Documentation subpage}}
This template is primarily used to add a correctly formattedl to a page. Often, but noaround 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.
{{High-use| 369726 }}
 
{{Never substitute}}
This template is also used as the "meta-template" for additional specialized disambiguation link template for a list.
{{lua|Module:Hatnote}}
 
The template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal [[Wikipedia:Cheatsheet|Wikipedia markup]].
 
 
 
 
 
 
 
 
 
 


This template produces formatted text, following the guideline for a '''[[WP:HATNOTE|Wikipedia hatnote]]'''.
:<code><nowiki>{{hatnote|Example hatnote text.}}</nowiki></code> &rarr;<br><!-- a construct to show hatnote as expected (using newline) -->
{{hatnote|Example hatnote text.}}


Broadly speaking, a hatnote should answer a reader's question (maybe preemptively): ''Am I on the right page?''


{{TOC limit}}


== 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; see [[:Category:Hatnote templates]] for a list.


The template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal [[Wikipedia:Cheatsheet|Wikipedia markup]].


== Usage ==
; Basic usage:
&#123;{hatnote|''text''}}


; All parameters:
&#123;{hatnote|''text''|extraclasses=''extra classes''|selfref=''yes''|category=''no''}}


== Parameters ==
([[:Category:Hatnote templates with errors]]). This has an effect only if the <!--"first-positional parameter", not "first positional parameter", if you value the readers' time ... but better yet --> leftmost parameter (the hatnote text) is omitted.
This template accepts the following parameters:
* <code>1</code> – the hatnote text (required)
* <code>extraclasses</code> – any extra CSS classes to be added, for example, the {{tl|see also}} template adds the classes "{{para|extraclasses|boilerplate seealso}}".
* <code>selfref</code> – If set to "yes", "y", "true" or "1", adds the CSS class "selfref". This is used to denote self-references to Wikipedia. See [[Template:Selfref]] for more information.
* <code>category</code> – If set to "no", "n", "false", or "0", suppresses the error tracking category ([[:Category:Hatnote templates with errors]]). This has an effect only if the <!--"first-positional parameter", not "first positional parameter", if you value the readers' time ... but better yet --> leftmost parameter (the hatnote text) is omitted.


== Example ==
== Example ==
Anonymer Benutzer