Template:Elevation cells/sandbox
style="text-align:right;" data-sort-value="5000000000000000000"|0
|style="text-align:right;" data-sort-value="5000000000000000000"|0
This is the template sandbox page for Template:Elevation cells (diff). See also the companion subpage for test cases. |
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. The values are right aligned by default. To center align the values, specify "align=center".
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
{{elevation_cells|5959|m|align=center}} → style="text-align:center;" data-sort-value="7003595900000000000"|5,959 |style="text-align:center;" data-sort-value="7003595900000000000"|19,551
See the testcases for examples.
Convert elevation data for table cells.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | elevation
| Number | required |
2 | 2 | unit. Enter "m" for metres or "ft" for feet.
| String | optional |
align | align | text alignment
| String | optional |