Difference between revisions of "Template:Epi/kmomi/doc"
< Template:Epi | kmomi
Jump to navigation
Jump to search
imported>Jimp |
imported>Buaidh (Add parameter r.) |
||
| Line 4: | Line 4: | ||
The syntax of this template is: | The syntax of this template is: | ||
| − | <nowiki>{{epi/kmomi|var1|a=|d=|l=|p=|s=}}</nowiki> | + | <nowiki>{{epi/kmomi|var1|a=|d=|l=|p=|r=|s=}}</nowiki> |
where: | where: | ||
*var1 is a real number representing the measurement in kilometres (may not contain a [[thousands separator]]), or NA if not available | *var1 is a real number representing the measurement in kilometres (may not contain a [[thousands separator]]), or NA if not available | ||
| Line 16: | Line 16: | ||
**l=2 yields a double-line display (default) | **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) | *p is an optional prefix to display before each number, e.g. about , ~, >, < (default is no prefix) | ||
| + | *r is an optional integer representing the number of rows to span (default=1) | ||
*s is an optional style parameter: | *s is an optional style parameter: | ||
**s= yields regular style (default) | **s= yields regular style (default) | ||
Revision as of 16:22, 26 September 2014
| This is a documentation subpage for Template:Epi/kmomi. It contains usage information, categories and other content that is not part of the original template page. |
Use
This subtemplate is used by {{epi}}. It creates one sortable cell of a sortable table displaying a measurement formatted in kilometres followed with the same measurement formatted in international miles (of exactly 1609.344 metres).
The syntax of this template is:
{{epi/kmomi|var1|a=|d=|l=|p=|r=|s=}}
where:
- var1 is a real number representing the measurement in kilometres (may not contain a thousands separator), 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)
- r is an optional integer representing the number of rows to span (default=1)
- 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
- This template invokes Template:Nk and Template:Rnd.
- This template is invoked by Template:Epi.
- This template is compatible with Template:Epi/moft.
- Template:Epi/miokm functions the same as this template except miles are displayed first for United States data.