Template:Dablink/doc

From Saintapedia
< Template:Dablink
Revision as of 07:59, 13 September 2024 by Tom (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

Using {{dablink|text}} 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 summarise a topic, explaining its boundaries.

Other disambiguation templates

This template might not be the desired template for your applications. The other primary template we use for providing links at the top of a page is Template:About. Dablink is the most flexible since it only accepts one parameter and that parameter can be any free text including wikitext.

Usage and purpose

This template is primarily used to add disambiguation links (dab is Wikipedia shorthand for "disambiguation") to the top of article pages. It places an HTML div- / div block around the material given 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 Wikipedia:Otheruses templates (example usage) for a list.

Contrary to what its name may imply, the template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal Wikipedia markup.

Example

{{Dablink|This page is about Use1. For information about Use2, see [[Page2]]}}

Template contents

<div class="dablink"></div>