Difference between revisions of "Template:Abbr"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
− | <abbr title="{{#tag:nowiki|{{{2|}}}}}">{{#switch: {{{3|}}} | + | <abbr {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{{2|}}}}}">{{#switch: {{{3|}}} |
− | + | | u | unicode | Unicode = {{Unicode|{{{1|}}}}} | |
− | + | | i | IPA = {{IPA|{{{1|}}}}} | |
− | + | | {{{1|}}} }}</abbr><noinclude> | |
+ | {{Documentation}}[[Category:Source Wikipedia]][[Category:Templates]] | ||
+ | </noinclude> |
Latest revision as of 20:22, 2 August 2015
(view - edit) Documentation
This template allows for abbreviations to be explained with tooltips upon hovering over the abbreviation.
More info can be found on the Wikipedia template
Usage
{{abbr|Abbreviated text|Meaning}}
- Abbreviated Text - the abbreviation, shown as underlined text
- Meaning - the meaning, shown as a tooltip
Example
You type | You get | ||||
---|---|---|---|---|---|
{{abbr|UK|United Kingdom}}
|
UK |
When hovering over the text "UK", the tooltip "United Kingdom" will appear in most browsers.
Note that the template is not limited to only abbreviations, how it is used is all up to the user. For example: $, though not an abbreviation, is still a use of Template:Abbr