Template:Hatnote/doc: Difference between revisions
Template page
More actions
←Created page with '{{Documentation subpage}} ==Usage== Using {{tlx|Hatnote|''text''}} formats text into the standard stylistic for a Wikipedia hatnote. ...' |
use {{TemplateBox}}, uses TemplateStyles |
||
| Line 1: | Line 1: | ||
{{ | {{Uses TemplateStyles|Template:Hatnote/styles.css}} | ||
{{TemplateBox | |||
|1 = 1 | |||
|1label-en= content | |||
|1d-en = The content of the hatnote | |||
|1aliases = <!-- List of aliases, separated by / (a slash) --> | |||
|1type = content | |||
|1def = <!-- default value for the parameter --> | |||
|1stat = required | |||
= | |name = Hatnote | ||
|desc-en = This template formats text into the standard stylistic for a [[:en:Wikipedia:Hatnote|Wikipedia hatnote]]. That produces a short note placed at the top of an article to provide disambiguation of closely related terms or summarize a topic, explaining its boundaries. | |||
|desc-td-en = This template formats text into the standard stylistic for a Wikipedia hatnote. That produces a short note placed at the top of an article to provide disambiguation of closely related terms or summarize a topic, explaining its boundaries. | |||
= | |usage-notes = 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 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 [[:en:Wikipedia:Otheruses templates (example usage)]] for a list. | This template is also used as the "meta-template" for additional specialized disambiguation link templates; see [[:en:Wikipedia:Otheruses templates (example usage)]] for a list. | ||
The template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal [[:en:Wikipedia:Cheatsheet|Wikipedia markup]]. | The template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal [[:en:Wikipedia:Cheatsheet|Wikipedia markup]]. | ||
|namespace = | |||
=== | |usergroup = | ||
|shorthand = dablink | |||
|mustbesubst = | |||
== | |setscats = | ||
|placement = top | |||
|example = text | |||
|example-value = | |||
|relieson = | |||
|seealso = | |||
|print = | |||
|type = | |||
|i18n-method = - | |||
|i18n-desc = | |||
|i18n-subpage = | |||
|i18n-mediawiki-msg = | |||
|useTemplateData = only | |||
}} | |||