Jump to content

Template:Elevation cells/doc

From Wikipedia, the free encyclopedia

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.

Template parameters

ParameterDescriptionTypeStatus
11

elevation

Example
5959
Numberrequired
22

unit. Enter "m" for metres or "ft" for feet.

Auto value
m
Stringoptional
alignalign

text alignment

Example
align=center
Stringoptional