Difference between revisions of "Template:Moft/doc"

From Self-sufficiency
Jump to: navigation, search
(See also)
 
m (1 revision: Conversion templates from wikipedia)
 
(No difference)

Latest revision as of 09:02, 19 September 2010

Use

This template creates one sortable cell of a sortable table displaying a measurement formatted in metres followed with the same measurement formatted in international feet (of exactly 0.3048 metre).

The syntax of this template is:

{{moft|var1|a=|d=|l=|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.
  • a is an optional alignment parameter:
    • a=left yields left alignment
    • a=center yields center alignment (default)
    • a=right yields right alignment
  • d is an optional integer representing the number of decimal places to display (default=0)
  • l is an optional lines parameter:
    • l=1 yields a single-line display
    • l=2 yields a double-line display (default)
  • 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 Everest {{moft|8848}} !B9909120532762 8848 m
29,029 feet
K2 {{moft|8611}} !B9909392042653 8611 m
28,251 feet
Kangchenjunga {{moft|8586}} !B9909421117512 8586 m
28,169 feet

See the Table of elevation extremes by country‎ for an example.

See also