Difference between revisions of "Template:Epi/moft/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jimp
imported>Jimp
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
===Use===
 
===Use===
This subtemplate is used by {{tl|Epr}}.  It creates one [[Help:Sorting|sortable cell]] of a sortable table displaying a measurement formatted in [[metre]]s followed with the same measurement formatted in [[international feet]] (of exactly 0.3048 metre).
+
This subtemplate is used by {{tl|Epi}}.  It creates one [[Help:Sorting|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 metres).
  
 
The syntax of this template is:
 
The syntax of this template is:
Line 7: Line 7:
 
where:
 
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.
 
*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 is an optional align<br />
 +
ment parameter:
 
**a=left yields left alignment
 
**a=left yields left alignment
 
**a=center yields center alignment (default)
 
**a=center yields center alignment (default)

Revision as of 06:10, 5 September 2011

Use

This subtemplate is used by {{Epi}}. It 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 metres).

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 align

ment 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

See also