Webtags/Parameters: Difference between revisions

150 bytes added ,  07:45, 4 October 2022
m
Line 152: Line 152:


==== Which tag names take date/time output formatting modifiers ====
==== Which tag names take date/time output formatting modifiers ====
In general '''all date/time tags will accept format strings''' with some exceptions. Given the sheer number of Webtags it is deemed not useful to indicate which webtags exactly do not conform to this rule. The user is invited to use the default Webtag for its purpose and then try a modification if it is not satisfactorily.  
In general '''all date/time tags will accept format strings''' with some exceptions. CumulusMX just passes the format string to the datetime formatter, it does not do any of its own formatting and thereore the Microsoft page are the only valid reference:
# [https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings Standard date and time format strings]
# [https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings Custom date and time format strings]


If you think a formatting is in error (e.g. you can't get what you want) please report in the forum: you may have made an error or it is a bug or it needs to be documented specifically.
The user is advised to study those pages, relate to what he wants and experiment before getting to the forum and ask questions.


There are some tag names (e.g. moon rise) that relate to an event that does not happen each Earth day, so those tags have to be able to report "--:--".  Equally, many of the tag names that describe extreme records for this month/year/all-time are not defined until the respective period reaches its second day, so again those tags may output hyphens. When hyphens are output, output modifiers have no effect.
There are some tag names (e.g. moon rise) that relate to an event that does not happen each Earth day, so those tags have to be able to report "--:--".  Equally, many of the tag names that describe extreme records for this month/year/all-time are not defined until the respective period reaches its second day, so again those tags may output hyphens. When hyphens are output, output modifiers have no effect.