Difference between revisions of "Template:Abbr/doc"

From Discworld MUD Wiki
Jump to: navigation, search
(Doc page for template from wikipedia, even though it's not working because the <> tags are quoted when trying to use the template...)
 
(remove broken offwiki links)
(5 intermediate revisions by 4 users 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 ===
Line 17: Line 17:
  
 
appears as {{abbr|MSLP|Mean Sea Level Pressure}}. When hovering over the text, <span style="border: black 1px solid;padding:2px;background-color:#fffbe7;font-size:.9em">Mean Sea Level Pressure</span> will appear as a tooltip.
 
appears as {{abbr|MSLP|Mean Sea Level Pressure}}. When hovering over the text, <span style="border: black 1px solid;padding:2px;background-color:#fffbe7;font-size:.9em">Mean Sea Level Pressure</span> will appear as a tooltip.
 +
 +
== See also==
 +
*[[Template:Abbrl]] - like Abbr but also wikilinks to the abbreviated name.
 +
*[[Template:Abbrlink]] - like Abbr but also wikilinks to the expanded name.

Revision as of 17: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 Mean Sea Level Pressure . When hovering over the text, Mean Sea Level Pressure will appear as a tooltip.

See also