Difference between revisions of "Template:Abbr/doc"

From Discworld MUD Wiki
Jump to: navigation, search
(Undo revision 16402 by 83.64.161.242 (Talk) Spam removed)
(remove broken offwiki links)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
  
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{tl|abbr}} is an '''abbreviation''' template. It works similarly to the [[HTML]] [[HTML element#General phrase elements|&lt;abbr>]] or [[HTML element#General phrase elements|&lt;acronym>]] tags.
+
{{tl|abbr}} is an '''abbreviation''' template. It works similarly to the [[HTML]] &lt;abbr> or &lt;acronym> tags.
  
 
== Usage ==
 
== Usage ==
 
<nowiki>{{abbr}}</nowiki> takes two unnamed parameters, in order:
 
<nowiki>{{abbr}}</nowiki> takes two unnamed parameters, in order:
 
#The ''short form'', which shows as text on the page.
 
#The ''short form'', which shows as text on the page.
#The ''long form'', which many [[web browser]]s show as a [[tooltip]] when a user [[Mouseover|hovers over]] the text.
+
#The ''long form'', which many web browsers show as a tooltip when a user Mouseover|hovers over the text.
  
 
=== Example ===
 
=== Example ===

Latest revision as of 16:54, 25 July 2012

 

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