Webtags (preserving history): Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
Line 61: Line 61:


Please note that where this article makes reference to other pages in the Wiki, the information shown there might be specific to Cumulus 1, as there are differences between the user interface for Cumulus 1 and MX flavours of this software, and the Wiki was originally written before MX existed, so not all pages have been updated.
Please note that where this article makes reference to other pages in the Wiki, the information shown there might be specific to Cumulus 1, as there are differences between the user interface for Cumulus 1 and MX flavours of this software, and the Wiki was originally written before MX existed, so not all pages have been updated.
=== Output Parameter Differences between Cumulus 1 and Cumulus MX (Cumulus 3): ===
=== Input Parameter Differences between Cumulus 1 and Cumulus MX (Cumulus 3) ===
 
MX makes much more usage of these parameters. For example in the moon tags.
 
The biggest difference is that for Cumulus 1 there are a select number of special web tags where decimal point is forced, these are called [[#No Commas|No Commas and have a 'RC' prefix to indicate Remove Commas]]. For MX for any web tag that returns a purely numerical value in all circumstances (so excludes monthly and other tags that may return hyphens), you can add the parameter <tt>rc=y</tt> and that will force any number held internally with a comma between integer and decimal parts to change that comma into a full stop. Commas are used when decimal commas are part of the locale that Cumulus (1 or MX) is running with. However, if you use a script language like JavaScript (possibly to implement Ajax), that language  insists all numerical values use decimal point.
 
 
=== Output Parameter Differences between Cumulus 1 and Cumulus MX (Cumulus 3) ===


*Cumulus MX (when running on Windows) uses the '''.NET''' date and time format characters that are not exactly the same as the '''Delphi''' ones that Cumulus 1 uses.  For Cumulus MX see [http://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx this Microsoft site] for format selectors. The differences come about because Delphi is case-insensitive, and .NET is case sensitive, so .NET can use upper and lower case for different items, where Delphi has to use different letters. If Cumulus MX is running on Linux or Mac OS X, then it uses '''Mono''' for date and time formatting, but the same case sensitive rules apply as for .NET.
*Cumulus MX (when running on Windows) uses the '''.NET''' date and time format characters that are not exactly the same as the '''Delphi''' ones that Cumulus 1 uses.  For Cumulus MX see [http://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx this Microsoft site] for format selectors. The differences come about because Delphi is case-insensitive, and .NET is case sensitive, so .NET can use upper and lower case for different items, where Delphi has to use different letters. If Cumulus MX is running on Linux or Mac OS X, then it uses '''Mono''' for date and time formatting, but the same case sensitive rules apply as for .NET.