တမ်းပလိတ်:Tooltip/doc
ဤစာမျက်နှာမှာ တမ်းပလိတ်:Tooltip တမ်းပလိတ်အတွက် အသုံးပြုပုံ လက်စွဲ (documentation) ၏ စာမျက်နှာခွဲ (subpage) တစ်ခုဖြစ်သည်။ ဤစာမျက်နှာတွင် မူရင်း တမ်းပလိတ် page ၌ တစိတ်တပိုင်းအဖြစ် မပါဝင်သည့် အသုံးပြုပုံပြုနည်းနှင့် သက်ဆိုင်သည့် သတင်းအချက်များ၊ ကဏ္ဍများ နှင့် အခြားအချက်အလက်များ ပါဝင်သည်။ |
{{abbr}} is an abbreviation template. It works similarly to the HTML <abbr> or <acronym> tags.
Usage
[ပြင်ဆင်ရန်]{{abbr}} takes two unnamed parameters, in order:
- The short form, which shows as text on the page.
- The long form, which the short form is an abbreviation for.
Many web browsers 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 {{unicode}} 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.
Example with two parameters
[ပြင်ဆင်ရန်]{{abbr |MSLP |Mean Sea Level Pressure }}
appears as MSLP. 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.
Example with three parameters
[ပြင်ဆင်ရန်]{{abbr |pȅći • пе̏ћи |to say |unicode }}
appears as pȅći • пе̏ћи. Compare pȅći • пе̏ћи without the Unicode formatting.
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
[ပြင်ဆင်ရန်]- Template:Abbrlink - wikilinks the content too.
- Template:R-phrase - Generate the abbreviation for an EU R-phrase with a tooltip of the full text and a link to the description in List of R-phrases