Difference between revisions of "Template:Abbr"

From Discworld MUD Wiki
Jump to: navigation, search
(Abbr template from wikipedia, hope this is the way to add it)
 
(didn't work)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<abbr title="{{#tag:nowiki|{{{2}}}}}">{{{1}}}</abbr><noinclude>{{tfd|Tooltip}}
+
<span title="{{#tag:nowiki|{{{2}}}}}" style="border-bottom:1px dotted;">{{{1}}}</span><noinclude>[[Category:Templates]]{{Documentation}}</noinclude>
{{Documentation}}
+
</noinclude>
+

Latest revision as of 19:54, 16 June 2011

{{{1}}}

[edit]

Documentation
 

{{abbr}} is an abbreviation template. It works similarly to the HTML <abbr> or <acronym> tags.

Usage

{{abbr}} takes two unnamed parameters, in order:

  1. The short form, which shows as text on the page.
  2. The long form, which many web browsers show as a tooltip when a user Mouseover|hovers over the text.

Example

{{abbr
 |MSLP
 |Mean Sea Level Pressure
}}

appears as MSLP. When hovering over the text, Mean Sea Level Pressure will appear as a tooltip.

See also