Template:Ift/doc

From Recidemia
< Template:Ift
Revision as of 18:26, 20 March 2012 by User (talk | contribs) (1 revision: 1)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template is under contruction.

Use

This template creates a measurement formatted in international feet (of exactly 0.3048 meter) followed by the same measurement formatted in meters.

The syntax of this template is:

{{ift|var1|d=|p=|s=}}

where:

  • var1 is a real number representing the measurement in metres (may not contain a thousands separator), # for sea level, or NA if not available.
  • d is an optional integer representing the number of decimal places to display (default=0)
  • p is an optional prefix to display before each number, e.g. about , ~, >, < (default is no prefix)
  • s is an optional style parameter:
    • s= yields regular style (default)
    • s='' yields italic style
    • s=''' yields bold style
    • s='''''' yields bold italic style

Example

The use of this template is illustrated in the sortable table below:

Peak Wikitext Elevation
Mount McKinley {{ift|6193.5}} 20,320 ft (6193.5 m)
Mount Saint Elias {{ift|5488.8}} 18,008 ft (5488.8 m)
Mount Foraker {{ift|5303.5}} 17,400 ft (5303.5 m)

See also