Template:Elevation cells/doc
This is a documentation subpage for Template:Elevation cells. It may contain usage information, categories and other content that is not part of the original template page. |
This template calls {{convert}} to generate two table cells for elevation in metres and feet. The template accepts two unnamed parameters, the elevation and either "m" to indicate that the specified elevation is in metres or "ft" for elevation in feet. The unit is optional and defaults to "m" if not given.
Examples:
{{elevation_cells|5959|m}} → style="text-align:right;" data-sort-value="7003595900000000000"|5,959
|style="text-align:right;" data-sort-value="7003595900000000000"|19,551
{{elevation_cells|5959}} → style="text-align:right;" data-sort-value="7003595900000000000"|5,959 |style="text-align:right;" data-sort-value="7003595900000000000"|19,551
{{elevation_cells|20310|ft}} → style="text-align:right;" data-sort-value="7003619048800000000"|20,310 |style="text-align:right;" data-sort-value="7003619048800000000"|6,190
NOTE: When invoking the template twice on the same source line (for example, first call for elevation and second call for prominence), only separate the second call with one "|" and not two "||". See the testcases for examples.
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | elevation
| Number | required |
2 | 2 | unit. Enter "m" for metres or "ft" for feet.
| String | optional |