Template:Calc alt dif

From Mount Wiki

Jump to: navigation, search
[edit] Template documentation

Contents

What it does

This function calculates the altitude difference between two objects/pages that have an Elevation property (hence, semantics should be used on both objects/pages). Altitude difference is given as a flat number without a unit.

Usage

The syntax is

{{Calc_alt_dif
|Page1
|Page2
}}

{{Calc_alt_dif|Matterhorn|Zermatt}} will give the altitude difference between the value of the Elevation property of Matterhorn and the value of the Elevation property of Zermatt. This altitude difference is 2870 m.

Calling Elevation property values

The Elevation value on each of the two pages is called using semantic queries (for example: {{#show:Matterhorn|?Elevation}}, this specific example would return 4,478 m14,691.601 ft
2.783 miles
).

Mathematical functions and semantics

This template should only be used to calculate the difference between two pages with semantic properties. To calculate the difference between two 'raw' altitudes (i.e. no semantic properties), use the {{#expr}} syntax.

Personal tools
Writing an article
Social links
Translate
Sponsors