साँचा:Abbr/doc

मुक्त ज्ञानकोश विकिपीडिया से
< साँचा:Abbr
imported>Addbot द्वारा परिवर्तित १८:१२, १५ अगस्त २०१३ का अवतरण (Bot: Migrating interwiki links, now provided by Wikidata on d:q5412927)
(अन्तर) ← पुराना अवतरण | वर्तमान अवतरण (अन्तर) | नया अवतरण → (अन्तर)
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }} साँचा:tl is an abbreviation template. It works similarly to the HTML <abbr> or <acronym> tags.

Usage

{{abbr}} takes two unnamed parameters, in order:

  1. The short form, which shows as text on the page
  2. The long form, which the short form is an abbreviation for

Many web browsers (such as Firefox, Google Chrome, Internet Explorer, Opera, Safari) show the long form as a tooltip when a user hovers over the text. However, this behavior is not guaranteed and should not be relied on.

There is an option for a third parameter: adding "unicode" (or "u") applies साँचा:tl to the text of parameter 1. This may resolve rendering issues with browsers which do not apply the proper font to the text. Other fonts/languages may be added to the code as needed. If the third parameter is not defined, it will be ignored.

The template also has two named parameters:

  • |class=
  • |id=

which create the corresponding HTML attributes on the abbr element.

The former can be used in microformats.

Examples

With two parameters

{{abbr|MSLP|Mean Sea Level Pressure}}

appears as साँचा:abbr. When hovering over the text, something like Mean Sea Level Pressure appears as a tooltip in many (but not all) browsers. Popular screen readers, used by visually impaired readers, display the long form in a different way.

With three parameters

{{abbr|pȅći • пе̏ћи|to say|unicode}}

appears as साँचा:abbr. Compare साँचा:abbr without the Unicode formatting.

With named parameters

{{abbr|UK|United Kingdom|class=country-name|id=foobar}}

appears as साँचा:abbr.

Accessibility concerns

This template is intended for use with abbreviations; it is not intended to be a tool for generating tooltips. The Web Content Accessibility Guidelines contain guidelines for using the <abbr> element generated by this template; see section H28: Providing definitions for abbreviations by using the abbr and acronym elements.

Redirects

The following template names redirect to this one:

See also