Difference between revisions of "Template:Epi/doc"
Jump to navigation
Jump to search
imported>Buaidh (This template creates up to three consecutive sortable cells in a table row displaying the topographic elevation, topographic prominence, and topographic isolation of a topographic summit. This template has several format) |
imported>Buaidh (*e is an optional integer representing the number of decimal places to display in the metric elevation (default=d)) |
||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
| − | This template creates | + | This template creates three consecutive [[Help:Sorting|sortable cells]] in a table row displaying the [[topographic elevation]], [[topographic prominence]], and [[topographic isolation]] of a [[topographic summit]]. This template has several format options. |
==Use== | ==Use== | ||
The syntax of this template is: | The syntax of this template is: | ||
| − | <nowiki>{{epi|var1|var2|var3|a=|d=|l=|m=|r=|s=|date=}}</nowiki> | + | <nowiki>{{epi|var1|var2|var3|a=|d=|e=|l=|m=|r=|s=|date=}}</nowiki> |
where: | where: | ||
*var1 is a real number representing the [[topographic elevation]] in metres, or NA if not available | *var1 is a real number representing the [[topographic elevation]] in metres, or NA if not available | ||
| Line 14: | Line 14: | ||
**a=right yields right alignment | **a=right yields right alignment | ||
*d is an optional integer representing the number of decimal places to display (default=0) | *d is an optional integer representing the number of decimal places to display (default=0) | ||
| + | *e is an optional integer representing the number of decimal places to display in the metric elevation (default=d) | ||
*l is an optional lines parameter: | *l is an optional lines parameter: | ||
**l=1 yields single-line display | **l=1 yields single-line display | ||
Revision as of 17:28, 28 September 2015
| This is a documentation subpage for Template:Epi. It contains usage information, categories and other content that is not part of the original template page. |
This template creates three consecutive sortable cells in a table row displaying the topographic elevation, topographic prominence, and topographic isolation of a topographic summit. This template has several format options.
Use
The syntax of this template is:
{{epi|var1|var2|var3|a=|d=|e=|l=|m=|r=|s=|date=}}
where:
- var1 is a real number representing the topographic elevation in metres, or NA if not available
- var2 is a real number representing the topographic prominence in metres, >500, or NA if not available
- var3 is a real number representing the topographic isolation in kilometres, 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)
- e is an optional integer representing the number of decimal places to display in the metric elevation (default=d)
- l is an optional lines parameter:
- l=1 yields single-line display
- l=2 yields double-line display (default)
- m is an optional metric parameter:
- m=1 yields measurement in SI units followed by United States customary units (default)
- m=2 yields measurement in United States customary units followed by SI units
- 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
- date is the optional date of data update
Examples
The use of this template is illustrated in the sortable table below:
| Peak | Wikitext | Elevation | Prominence | Isolation |
|---|---|---|---|---|
| Mount Everest | {{epi|8848|8848|40008|date=March 9, 2012}} | 8848 m 29,029 ft |
8848 m 29,029 ft |
40,008 km 24,860 mi |
| K2 | {{epi|8614|4020|1315.8|date=March 9, 2012}} | 8614 m 28,261 ft |
4020 m 13,189 ft |
1,316 km 818 mi |
| Kangchenjunga | {{epi|8586|3922|123.99|date=March 9, 2012}} | 8586 m 28,169 ft |
3922 m 12,867 ft |
124 km 77 mi |
See also Mountain peaks of North America and the List of Ultras in Canada.
See also
- This template has four subtemplates: Template:Epi/ftom, Template:Epi/kmomi, Template:Epi/miokm and Template:Epi/moft, which it invokes.
- This template also invokes Template:Ntsh, and Template:Rnd.
- This template is compatible with Template:Cmt, Template:Cmtr, and Template:Coord.
- See the List of mountain peaks of North America for an example.