Webtags/Parameters: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
968 bytes removed ,  12:31, 2 October 2022
m
Line 139: Line 139:


'''Note:''' Truncation by MX converts real numbers to integers. There is no option to truncate to one decimal place, Airports are expected to report air field level (QFE), and sea level (QNH), pressures truncated to one decimal place rather than rounded.
'''Note:''' Truncation by MX converts real numbers to integers. There is no option to truncate to one decimal place, Airports are expected to report air field level (QFE), and sea level (QNH), pressures truncated to one decimal place rather than rounded.
==== Two Output (format modifier) parameters for decimal places ====
Depending on tag name and release you are using, there may be two ways to control decimal places:
* <tt><#tag_name dp=i></tt> and
* <tt><#tag_name tc=y></tt>
===== Truncation of unwanted decimal places =====
<tt>tc=y</tt> is the truncation parameter, the attribute '''tc''' takes the value 'y' to remove decimal places by truncation. e.g. <#MoonAge tc=y>.
[[File:Badge vMx.png]]This output format modifier is only available in MX:
* If you are using an early release of MX, you will need to research whether this is available for particular tag names
* Later releases of MX implement this for any tag that by default outputs decimal places.
Note, truncation by MX converts real numbers to integers. There is no option to truncate to one decimal place, Airports are expected to report air field level (QFE), and sea level (QNH), pressures truncated to one decimal place rather than rounded.


== Multiple Output Format Modifier parameters for times and dates ==
== Multiple Output Format Modifier parameters for times and dates ==

Navigation menu