Difference between revisions of "Template:Abbr"

From comp.tf
Jump to navigation Jump to search
(Added text/explaination)
m
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
   | u | unicode | Unicode = {{Unicode|{{{1|}}}}}
 
   | u | unicode | Unicode = {{Unicode|{{{1|}}}}}
 
   | i | IPA = {{IPA|{{{1|}}}}}
 
   | i | IPA = {{IPA|{{{1|}}}}}
   | {{{1|}}} }}</abbr>
+
   | {{{1|}}} }}</abbr><noinclude>
<noinclude>
+
{{Documentation}}[[Category:Source Wikipedia]][[Category:Templates]]
==Usage==
+
</noinclude>
This template allows for abbreviations to be explained with tooltips upon hovering over said abbreviation.<br>
 
More info can be found on the [https://en.wikipedia.org/wiki/Template:Abbr Wikipedia template]
 
===Parameters===
 
* '''Class''' - in this case use the <code>abbr</code> class
 
* '''Abbreviated Text''' - the abbreviation, shown as text
 
* '''Meaning''' - the meaning, shown as a tooltip
 
==Example==
 
{| class="wikitable" style="width:50%; padding:5px"
 
!You Type
 
!You Get
 
|-
 
|style="text-align:center" | <tt><nowiki>{{abbr|UK|United Kingdom}}</nowiki></tt>
 
|style="text-align:center" | {{abbr|UK|United Kingdom}}
 
|}
 
When hovering over the text "{{abbr|UK|United Kingdom}}", the tooltip "United Kingdom" will appear in most browsers.
 
 
 
[[Category:Template]]</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