Difference between revisions of "Template:Frequency/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
(→‎Usage: paras)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(13 intermediate revisions by 7 users not shown)
Line 6: Line 6:
 
== Usage ==
 
== Usage ==
  
<code><pre><nowiki>{{Frequency|value=102.4|type=MHz}}</code></nowiki></pre>
+
Use:
 +
 
 +
<nowiki>{{Frequency
 +
| [value]
 +
| [type]
 +
}}</nowiki>
 +
 
 +
For example:
 +
 
 +
:<nowiki>{{Frequency|102.4|MHz}}</nowiki>
  
 
renders as:
 
renders as:
  
{{Frequency|value=102.4|type=MHz}}
+
:{{Frequency|102.4|MHz}}
  
 
The units may be linked:
 
The units may be linked:
  
<code><pre><nowiki>{{Frequency|value=102.4|type=[[MHz]]}}</code></nowiki></pre>
+
:<nowiki>{{Frequency|102.4|[[MHz]]}}</nowiki>
  
 
renders as:
 
renders as:
  
{{Frequency|value=102.4|type=[[MHz]]}}
+
:{{Frequency|102.4|[[MHz]]}}
 +
 
 +
== Limitations ==
 +
 
 +
The template is not yet ready for use with frequency ranges such as 92.5-96.1 MHz.
  
 
== Microformat ==
 
== Microformat ==
The template uses the draft "[http://microformats.org/wiki/measure hMeasure]" microformat as discussed at [http://pigsonthewing.wordpress.com/2010/07/24/measurement-microformat-for-radio-station-frequencies/]
+
The template uses the draft "[http://microformats.org/wiki/measure hMeasure]" microformat as discussed at [http://pigsonthewing.org.uk/measurement-microformat-for-radio-station-frequencies/].
 +
 
 +
this uses the HTML classes:
 +
*hmeasure
 +
**num (for "''num''ber value")
 +
**unit
  
 
== See also ==
 
== See also ==
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
+
[[Category:Radio formatting templates]]
</includeonly>
+
[[Category:Television templates]]
 +
}}</includeonly>

Latest revision as of 05:13, 25 April 2020

Template for radio/ TV frequencies.

Usage

Use:

{{Frequency | [value] | [type] }}

For example:

{{Frequency|102.4|MHz}}

renders as:

102.4 MHz

The units may be linked:

{{Frequency|102.4|[[MHz]]}}

renders as:

102.4 MHz

Limitations

The template is not yet ready for use with frequency ranges such as 92.5-96.1 MHz.

Microformat

The template uses the draft "hMeasure" microformat as discussed at [1].

this uses the HTML classes:

  • hmeasure
    • num (for "number value")
    • unit

See also