Webtags/Parameters: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
1,031 bytes removed ,  12:31, 2 October 2022
m
Line 146: Line 146:
* <tt><#tag_name tc=y></tt>  
* <tt><#tag_name tc=y></tt>  


===== Rounding to a number of decimal places =====
Use <tt>dp=i</tt> (the value '''i''' following the attribute '''dp''' is an integer, it represents how many decimal places you want for the output you see):
* [[File:Badge v1.png]]Cumulus 1.x.y: only <tt><#latitude dp=i></tt>  and <tt><#longitude dp=i></tt> are able to be output with "i" denoting number of decimal places, e.g. <#latitude dp=5> gives "59.24250".
* [[File:Badge vMx.png]] Depends on MX release:
*# From beta releases (3.0.0) onwards, <tt><#latitude dp=i></tt>  and <tt><#longitude dp=i></tt> were able to be output with "i" decimal places
*#* But this output modification parameter could not be applied to any other tags in the MX beta.
*# MX when it came out of beta, added this output modification parameter usage in the moon tags <#MoonPercent> and <#MoonPercentAbs>).
*#* Specifically, <#MoonAge> gives "11" but <#MoonAge dp=3> gives "11.234"
*# From release 3.10.5 (which did a big rewrite of web tag handling) any tag names that output as real numbers
===== Truncation of unwanted decimal places =====
===== Truncation of unwanted decimal places =====


Navigation menu