Difference between revisions of "Template:Abbr"

From Discworld MUD Wiki
Jump to: navigation, search
(Have a dotted line :))
(add background-color and color to tooltip)
Line 1: Line 1:
<span title="{{#tag:nowiki|{{{2}}}}}" style="border-bottom:1px dotted">{{{1}}}</span><noinclude>
<span title="{{#tag:nowiki|{{{2}}}}}" style="border-bottom:1px dotted;padding:2px;background-color:#fffbe7;color:black;">{{{1}}}</span><noinclude>

Revision as of 23:04, 16 March 2010




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


{{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.


 |Mean Sea Level Pressure

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

See also