Webtags (preserving history): Difference between revisions

m
=== Output (format modifier) indicating remove commas ===
 
"rc=y" is a '''new parameter for MX''', the attribute '''rc''' takes the value 'y' to replace any commas defined by the locale with full stops to separate integer and decimal parts of the output value. It iswas initially only implemented on a few new web tags (#MoonPercent, #MoonPercentAbs, #MoonAge) for MX versions up to and including 3.5.3. AtFrom theversion time3.6.6 ofonly writing it is planned thatcan all web tags that can output real numbers willcan implementnow anuse alternative syntax of <tt><#tag_name rc=y></tt> fromto replace all commas in the nextoutput versionby a full stop (don't worry, MX does not use a comma for separating off thousands, so it is the decimal comma that becomes a decimal full stop like character when this remove comma specifier is used.
 
 
Why would you want to remove decimal commas? Well because the JavaScript language cannot understand decimal commas, and MX has several scripts written in this language, equally some third party alternative web pages rely on ajax to update them (and Ajax uses JavaScript).
 
=== Output (format modifier) parameters for times and dates ===
5,838

edits