Editing Template:Abbr/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.

Latest revision Your text
Line 1: Line 1:
This template allows for abbreviations to be explained with tooltips upon hovering over the abbreviation.<br />
+
==Usage==
 +
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]
 
More info can be found on the [https://en.wikipedia.org/wiki/Template:Abbr Wikipedia template]
==Usage==
+
===Parameters===
<code><nowiki>{{abbr|</nowiki>'''<nowiki>Abbreviated text</nowiki>'''<nowiki>|</nowiki>'''<nowiki>Meaning</nowiki>'''<nowiki>}}</nowiki></code>
+
* '''Class''' - in this case use the <code>abbr</code> class
* '''Abbreviated Text''' - the abbreviation, shown as underlined text
+
* '''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="text-align:center"
+
{| class="wikitable" style="width:50%; padding:5px"
! style="background-color: #1c1c1c; color: white" colspan="3" | You type
+
!You Type
! style="background-color: #1c1c1c; color: white" colspan="3" | You get
+
!You Get
 
|-
 
|-
| style="border-right:hidden" |
+
|style="text-align:center" | <tt><nowiki>{{abbr|UK|United Kingdom}}</nowiki></tt>
| style="text-align:center" | <code><nowiki>{{abbr|UK|United Kingdom}}</nowiki></code>
+
|style="text-align:center" | {{abbr|UK|United Kingdom}}
| 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.<br /><br />
+
When hovering over the text "{{abbr|UK|United Kingdom}}", 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: {{abbr|$|USD}}, though not an abbreviation, is still a use of Template:Abbr
 
  
[[Category:Template]]
+
[[Category:Template]]</noinclude>

Please note that all contributions to comp.tf may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see comp.tf:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: