Difference between revisions of "Template:Abbr/doc"

From comp.tf
Jump to navigation Jump to search
m
m (Made simpler)
Line 1: Line 1:
 +
This template allows for abbreviations to be explained with tooltips upon hovering over the abbreviation.<br>
 +
More info can be found on the [https://en.wikipedia.org/wiki/Template:Abbr Wikipedia template]
 
==Usage==
 
==Usage==
This template allows for abbreviations to be explained with tooltips upon hovering over said abbreviation.<br>
+
<code><nowiki>{{abbr|</nowiki>'''<nowiki>Abbreviated text</nowiki>'''<nowiki>|</nowiki>'''<nowiki>Meaning</nowiki>'''<nowiki>}}</nowiki></code>
More info can be found on the [https://en.wikipedia.org/wiki/Template:Abbr Wikipedia template]
+
* '''Abbreviated Text''' - the abbreviation, shown as underlined text
===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
 
* '''Meaning''' - the meaning, shown as a tooltip
 
==Example==
 
==Example==
{| class="wikitable" style="width:50%; padding:5px"
+
{| class="wikitable" style="text-align:center"
!You Type
+
! colspan="3" | You type
!You Get
+
! colspan="3" | You get
 
|-
 
|-
|style="text-align:center" | <tt><nowiki>{{abbr|UK|United Kingdom}}</nowiki></tt>
+
| style="border-right:hidden" |
|style="text-align:center" | {{abbr|UK|United Kingdom}}
+
| style="text-align:center" | <code><nowiki>{{abbr|UK|United Kingdom}}</nowiki></code>
 +
| style="border-left:hidden" |
 +
| style="border-right:hidden" |
 +
| style="text-align:center" | {{abbr|UK|United Kingdom}}
 +
| style="border-left:hidden" |
 
|}
 
|}
 
When hovering over the text "{{abbr|UK|United Kingdom}}", the tooltip "United Kingdom" will appear in most browsers.
 
When hovering over the text "{{abbr|UK|United Kingdom}}", the tooltip "United Kingdom" will appear in most browsers.
  
 
[[Category:Template]]
 
[[Category:Template]]

Revision as of 00:32, 1 October 2015

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.